/* ==========================================================================
   이슈나잇 (ISSUENIGHT) — 인터넷신문
   디자인 원본: design/issuenight-news.dc.html
   토큰·리셋·.ph·.pager·.btn-dark 는 base.css 에 있다. 이 파일보다 먼저 불러온다.
   ========================================================================== */

/* ---------- 3. 레이아웃 ---------- */
.page {
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.wrap-wide {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- 5. 유틸리티 바 ---------- */
.utilbar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--fill-3);
  font-size: 12.5px;
  color: var(--muted);
}

.utilbar > .wrap {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.utilbar a { color: var(--muted); }
.utilbar a:hover { color: var(--accent); }
.utilbar__links { display: flex; gap: 18px; align-items: center; }
.utilbar__login { color: var(--ink); font-weight: 600; }

/* ---------- 6. 마스트헤드 ---------- */
.masthead {
  padding-top: 26px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-size: 44px;
}
.wordmark .dot { display: none; }
.wordmark:hover { color: var(--ink); }

.masthead__tagline {
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: .02em;
}

/* 시장 지표 위젯 */
.market {
  display: flex;
  border: 1px solid var(--line-soft);
  justify-self: end;
  flex-wrap: wrap;
  max-width: 100%;
}

.market__cell { padding: 10px 18px; border-right: 1px solid var(--line-soft); }
.market__cell:last-child { border-right: 0; }

.market__name {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .04em;
}

.market__row { display: flex; align-items: baseline; gap: 6px; }

.market__val { font-size: 17px; font-weight: 600; color: var(--ink); }

.market__chg { font-size: 12px; font-weight: 600; }
.market__chg--up   { color: var(--accent); }
.market__chg--down { color: var(--blue); }

/* ---------- 7. 내비게이션 ---------- */
.gnb {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.gnb > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

.gnb__menu {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnb__link {
  display: block;
  padding: 14px 0;
  font-size: 15.5px;
  font-weight: 500;
  white-space: nowrap;
}

.gnb__link[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  margin-bottom: -1px;
}

.gnb__link--pick {
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 1px;
}
.gnb__link--pick em { font-style: normal; color: var(--accent); }

.gnb__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fill-2);
  padding: 7px 12px;
  width: 190px;
  align-self: center;
  border: 0;
}
.gnb__search input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  outline: none;
}
.gnb__search input::placeholder { color: var(--muted-3); }

.icon-search {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--muted-2);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

/* 하위 페이지의 축약 헤더 */
.subhead {
  padding-top: 20px;
  padding-bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.subhead .wordmark { font-size: 30px; }
.subhead__where { font-size: 13px; color: var(--muted-2); padding-bottom: 3px; }

.gnb--sub .gnb__link { font-size: 15px; padding: 13px 0; }
.gnb--sub > .wrap { justify-content: flex-start; }

/* ---------- 8. 속보 티커 ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: #fffdfd;
}

.ticker > .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 46px;
  overflow: hidden;
}

.ticker__label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.ticker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.ticker__items {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  color: var(--ink-3);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
}
.ticker__sep { color: var(--line-faint); }

/* ---------- 9. 섹션 제목 ---------- */
.shead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--ink);
}

.shead h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
}

.shead__more { font-size: 12px; color: var(--muted-2); }
.shead__note { font-size: 11.5px; color: var(--muted-2); }
.shead--sm h2 { font-size: 18px; }
.shead--md h2 { font-size: 19px; }
.shead--lg h2 { font-size: 22px; }

/* ---------- 10. 메인: 상단 그리드 ---------- */
.top {
  padding-top: 24px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.ad-label {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--faint);
  font-weight: 600;
}

.ad-rail {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
}
.ad-rail .ph { width: 100px; height: 100px; }

.top__center { grid-column: 2; }
.top__aside  { grid-column: 3; }

/* 리드 기사 */
.lead__title {
  text-align: center;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}

.lead__body {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}

.lead__photo { width: 100%; height: 400px; background: #0d0f12; }

/* 리드 사진은 잘리지 않는다 — 세로 포스터도 전체를 보여준다.
   빈 여백은 같은 사진을 흐리게 깐 배경으로 채워 letterbox 가 의도로 읽힌다.
   ::before 는 원래 점선 자리표시인데, 사진이 들어오면 흐린 배경으로 재사용한다.
   --photo-src 는 dom.js paintPhotos() 가 리드에만 심는다. */
.lead__photo > img { object-fit: contain; }
.lead__photo:has(> img)::before {
  display: block;
  border: 0;
  opacity: 1;
  z-index: 0;
  background-image: var(--photo-src);
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(.55);
  transform: scale(1.18);   /* 블러가 가장자리에서 비쳐 보이지 않게 살짝 확대 */
}

.lead__side { display: flex; flex-direction: column; }

.lead__points {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -.015em;
}

.lead__summary {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

.lead__links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.lead__links a {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

.dots { margin-top: 16px; display: flex; gap: 6px; align-items: center; }
.dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d5d4cf;
  display: inline-block;
}
.dots span[data-active="true"] { background: var(--accent); }

/* 헤드라인 3단 */
.hl3 {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hl3 .ph { width: 100%; height: 170px; }
.hl3 a {
  display: block;
  margin-top: 11px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
}

/* 우측 상단 사진 카드 */
.rtcards { display: flex; flex-direction: column; gap: 20px; }
.rtcards .ph { width: 100%; height: 180px; }
.rtcards a {
  display: block;
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.015em;
}

/* 센터 하단: 사진 + 헤드라인 묶음 */
.midrows { display: flex; flex-direction: column; }

.midrow {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.midrow:first-child { padding-top: 0; }
.midrow:last-of-type { border-bottom: 0; padding-bottom: 0; }

.midrow .ph { width: 100%; height: 150px; }

.midrow__cap {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.midrow__list { display: flex; flex-direction: column; }
.midrow__list a {
  padding: 9px 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
}

/* 가로 광고 */
.ad-wide { margin-top: 28px; }
.ad-wide .ad-label { margin-bottom: 7px; }
.ad-wide .ph { width: 100%; height: 110px; }

/* 기획·연속보도 */
.series { margin-top: 30px; }
.series__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.series__grid .ph { width: 100%; height: 160px; }
.series__kicker {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.series__title {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
}

/* 국제 / 문화 2단 */
.duo {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.duo__top {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.duo__top .ph { flex: 0 0 110px; min-width: 0; height: 74px; }
.duo__top a {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.duo__list { margin-top: 12px; display: flex; flex-direction: column; }
.duo__list a {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- 11. 사이드바 ---------- */
.side { display: flex; flex-direction: column; gap: 28px; }

.side__photo { margin-top: 13px; width: 100%; height: 180px; }
.side__photo-cap {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-4);
}

/* 칼럼 */
.column-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.column-item:last-child { border-bottom: 0; }
.column-item__body { flex: 1; }
.column-item__kicker {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
}
.column-item__title {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.column-item .ph { width: 44px; height: 44px; flex: 0 0 44px; }

/* 광고 (사이드 사각) */
.ad-rect .ph { width: 100%; height: 250px; }
.ad-rect .ad-label { margin-bottom: 7px; }

/* 많이 본 뉴스 */
.ranklist { display: flex; flex-direction: column; }
.ranklist a {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ranklist a:last-child { border-bottom: 0; }
.ranklist__num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--muted-2);
  flex: 0 0 18px;
}
.ranklist a:nth-child(-n+3) .ranklist__num { color: var(--accent); }
.ranklist__text { font-size: 14.5px; font-weight: 500; line-height: 1.5; }

.ranklist--sm a { padding: 12px 0; gap: 11px; }
.ranklist--sm .ranklist__num { flex: 0 0 16px; font-size: 15px; }

/* 날씨 */
.weather { border: 1px solid var(--line); padding: 18px; }
.weather__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.weather__head h3 { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.weather__time { font-size: 11.5px; color: var(--muted-2); }

.weather__now {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.weather__temp {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 800;
  line-height: .9;
  color: var(--ink);
}
.weather__temp sup { font-size: 22px; vertical-align: baseline; }
.weather__desc { font-size: 13px; color: var(--ink-4); line-height: 1.6; }

.weather__cities {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.weather__city { font-size: 11.5px; color: var(--muted-2); }
.weather__ct   { font-size: 14px; font-weight: 600; }

/* 뉴스레터 */
.newsletter { background: var(--fill-2); padding: 20px; }
.newsletter__eyebrow {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .08em;
  font-weight: 600;
}
.newsletter__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}
.newsletter__form { margin-top: 14px; display: flex; gap: 8px; }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 11px;
  font-size: 13px;
}
.newsletter__form input::placeholder { color: var(--muted-3); }


/* ---------- 12. 뉴스데스크 (다크 / 영상 벨트) ---------- */
.newsdesk { background: var(--dark); padding: 40px 0; }

.newsdesk__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark-line);
}
.newsdesk__titles { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.newsdesk__head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.newsdesk__when { font-size: 13px; color: var(--muted-2); }
.newsdesk__more { font-size: 13px; color: var(--dark-text); }
.newsdesk__more:hover { color: #fff; }

.belt-viewport {
  margin-top: 22px;
  overflow: hidden;
  margin-left: -20px;
  margin-right: -20px;
  padding: 0 20px;
}

@keyframes belt {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}

.belt {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: belt 64s linear infinite;
}
.belt-viewport:hover .belt,
.belt-viewport:focus-within .belt { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .belt { animation: none; }
  .belt-viewport { overflow-x: auto; }
}

.vcard { width: 360px; flex: 0 0 360px; }
.vcard__frame {
  position: relative;
  width: 360px;
  height: 203px;
  background: #000;
  overflow: hidden;
}
.vcard__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.vcard__empty {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--dark-line-2);
  font-size: 13px;
  color: var(--muted-2);
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 21px;
  background: var(--yt);
  border-radius: 5px;
  flex: 0 0 auto;
}
.yt-badge i {
  display: block;
  width: 0; height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.yt-badge--lg { width: 40px; height: 28px; border-radius: 6px; }
.yt-badge--lg i {
  border-left-width: 11px;
  border-top-width: 6.5px;
  border-bottom-width: 6.5px;
}

.vcard__title {
  margin-top: 12px;
  height: 46px;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--dark-text-3);
  line-height: 1.45;
}

.newsdesk__foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.channel { display: flex; align-items: center; gap: 13px; }
.channel__name { font-size: 15px; font-weight: 600; color: #fff; }
.channel__meta { font-size: 12.5px; color: var(--muted-2); }

.newsdesk__actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  border: 1px solid var(--dark-line-2);
  color: var(--dark-text);
  padding: 9px 16px;
  font-size: 13.5px;
}
.btn-ghost:hover { color: #fff; border-color: var(--dark-text); }
.btn-yt {
  background: var(--yt);
  color: #fff;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
}
.btn-yt:hover { color: #fff; filter: brightness(1.08); }

/* ---------- 13. 정치 / 경제 / 사회 3단 ---------- */
.sec3 {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.sec3 .ph { margin-top: 16px; width: 100%; height: 170px; }
.sec3__title {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.015em;
}
.sec3__sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.sec3__list { margin-top: 16px; display: flex; flex-direction: column; }
.sec3__list a {
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- 14. 포토뉴스 ---------- */
.photonews { background: var(--fill-2); padding: 36px 0; }
.photonews__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.photonews__head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}
.photonews__more { font-size: 12.5px; color: var(--muted); }

.photonews__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.photonews__grid .ph { width: 100%; height: 180px; background: var(--fill-4); }
.photonews__grid a {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- 15. 오피니언 ---------- */
.opinion { padding-top: 40px; padding-bottom: 44px; }
.opinion__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.opinion__item { display: flex; gap: 16px; }
.opinion__item .ph { width: 64px; height: 64px; flex: 0 0 64px; }
.opinion__kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
}
.opinion__title {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.45;
}
.opinion__by { margin-top: 8px; font-size: 13px; color: var(--muted-2); }

/* ---------- 16. 푸터 ---------- */
.footer { background: var(--ink); padding: 34px 0; }
.footer > .wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .wordmark { font-size: 24px; color: #fff; }
.footer .wordmark:hover { color: #fff; }

.footer__info {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted-2);
}
.footer__copy { margin-top: 14px; font-size: 12px; color: var(--dark-muted); }
.footer__info a { color: #cfd3da; text-decoration: none; }
.footer__info a:hover { color: #fff; text-decoration: underline; }
/* 등록 전 임시값 표식 — 실제 등록번호·주소가 나오면 이 span 을 지우고 값을 넣는다.
   런칭(색인 허용) 전까지 반드시 실값으로 교체할 것. */
.footer__todo { color: #b9975b; font-style: italic; }
.footer__reg { color: var(--dark-muted); }

.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.footer__col a { font-size: 12.5px; color: var(--muted-2); }
.footer__col a:hover { color: #fff; }

/* 축약 푸터 */
.footer-slim { background: var(--ink); padding: 26px 0; }
.footer-slim > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-slim .wordmark { font-size: 19px; color: #fff; }
.footer-slim .wordmark:hover { color: #fff; }
.footer-slim__copy { font-size: 12px; color: var(--dark-muted); }

/* ---------- 17. 섹션 페이지 ---------- */
.secbanner { background: var(--fill-2); }
.secbanner__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--dark-4);
}
.secbanner__inner .ph {
  position: absolute;
  inset: 0;
  background: var(--dark-4);
  color: var(--dark-muted);
}
.secbanner__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(100deg,
    rgba(21,24,29,.94) 0%,
    rgba(21,24,29,.86) 34%,
    rgba(21,24,29,.28) 70%,
    rgba(21,24,29,0) 100%);
}
.secbanner__text {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 56px;
  pointer-events: none;
}
.secbanner__eyebrow { display: flex; align-items: center; gap: 10px; }
.secbanner__rule {
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--accent);
}
.secbanner__label {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--dark-text);
  font-weight: 600;
}
.secbanner h1 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1;
}
.secbanner__desc { font-size: 14px; color: var(--dark-text-2); }

.seclayout {
  padding-top: 32px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.seclead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 1fr);
  gap: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.seclead .ph { width: 100%; height: 280px; }
.seclead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.seclead__kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.seclead__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.seclead__sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-4);
  text-wrap: pretty;
}
.seclead__meta { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }

.artlist { display: flex; flex-direction: column; }
.artrow {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.artrow:last-child { border-bottom: 0; }
.artrow .ph { height: 132px; }
.artrow__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.artrow__links a {
  padding: 7px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
}


/* 모바일 무한 스크롤이 켜지면 페이지네이션을 감춘다.
   JS 가 켤 때만 붙는 속성이라, 스크립트가 없으면 페이저가 그대로 남는다. */
[data-infinite="on"] .pager { display: none; }

.infinite { margin-top: 4px; }
.infinite[hidden] { display: none; }

.infinite__sentinel { height: 1px; }

.infinite__status {
  padding: 22px 0 6px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted-2);
}

.infinite__status--end {
  color: var(--muted-3);
  font-size: 13px;
}

/* 불러오기가 실패했을 때만. 눌러서 다시 시도할 수 있다는 걸 보이게 한다. */
.infinite__status--retry {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 없는 섹션을 열었을 때. 레이아웃은 두고 알맹이만 바꾼다. */
.artlist__empty {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}

.infinite__spinner {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: infinite-spin .7s linear infinite;
}

@keyframes infinite-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .infinite__spinner { animation-duration: 2s; }
}

.sidecard { border: 1px solid var(--line); padding: 18px; }
.sidecard__eyebrow {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .08em;
  font-weight: 600;
}
.sidecard .ph { margin-top: 12px; width: 100%; height: 120px; }
.sidecard__title {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}
.sidecard__desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.subcard { background: var(--fill-2); padding: 18px; }
.subcard__title { font-size: 13px; font-weight: 700; }
.subcard__desc {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.subcard .btn-dark--block { margin-top: 13px; }

/* ---------- 18. 기사 상세 ---------- */
.artlayout {
  padding-top: 26px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}

.article { max-width: 760px; }

.breadcrumb { font-size: 12.5px; color: var(--muted-2); }

.article__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: pretty;
}

.article__standfirst {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-4);
  font-weight: 500;
  text-wrap: pretty;
}

.byline {
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.byline__who { display: flex; align-items: center; gap: 12px; }
.byline__who .ph { width: 38px; height: 38px; flex: 0 0 38px; }
.byline__name { font-size: 13.5px; font-weight: 600; }
.byline__mail { margin-left: 6px; font-weight: 500; color: var(--muted-2); text-decoration: none; }
.byline__mail:hover { color: var(--accent); text-decoration: underline; }
.byline__time { font-size: 12px; color: var(--muted-2); }

.byline__tools { display: flex; gap: 8px; align-items: center; }
.tool {
  border: 1px solid var(--line);
  background: none;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-4);
  cursor: pointer;
}
.tool:hover { border-color: var(--ink); color: var(--ink); }
.tool[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.article__figure { margin-top: 26px; }
.article__figure .ph { width: 100%; height: 420px; }

/* 기사 대표·본문 사진은 원본 비율 그대로 — 위아래 잘림 없음. 사진이 들어오면
   고정 높이를 풀어 자연 높이로 둔다(빈 자리표시일 때만 위 고정 높이가 남는다).
   ⚠ 본문 규칙 `.article__body .article__figure .ph{320px}`(클래스 3개)를 이기려면
   본문 선택자도 같은 클래스 수 + :has 로 구체도를 맞춰야 한다. */
.article__figure .ph:has(> img),
.article__body .article__figure .ph:has(> img) { height: auto; }
.article__figure .ph > img,
.article__body .article__figure .ph > img { height: auto; object-fit: contain; }
.article__figure figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.6;
}

.article__body {
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
  letter-spacing: -.005em;
}
.article__body p { margin: 0 0 20px; }
.article__body p:last-child { margin-bottom: 0; }

/* 본문 글자 크기 조절 */
.article__body.is-lg { font-size: 19px; line-height: 2; }
.article__body.is-xl { font-size: 21px; line-height: 2.05; }

.pullquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--fill-2);
  border-left: 3px solid var(--accent);
}
.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
}

/* 본문 블록 — 관리자에서 ## 소제목 · - 목록 으로 쓴 것이 여기로 온다.
   기존 디자인에는 없던 요소라 지면 톤에 맞춰 새로 정한다. */
.article__subhead {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ink);
}
.article__body > .article__subhead:first-child { margin-top: 0; }

.article__list { margin: 0 0 20px; padding-left: 22px; }
.article__list li { margin-bottom: 8px; }
.article__list li:last-child { margin-bottom: 0; }

.article__body hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 본문 안의 사진. 대표 사진보다 낮게 잡는다. */
.article__body .article__figure { margin: 28px 0; }
.article__body .article__figure .ph { height: 320px; }

/* 이미지 갤러리 — 여러 장 나란히(2·3단 그리드). 포스터는 원본 비율 그대로 보여준다. */
.article__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  align-items: start;
}
.article__gallery[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article__body .article__gallery .article__figure { margin: 0; }
.article__body .article__gallery .ph { height: auto; }        /* 고정 높이 해제 */
.article__body .article__gallery .ph > img { height: auto; }  /* 자르지 않고 원본 비율 */
.article__gallery-cap {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .article__gallery { grid-template-columns: minmax(0, 1fr); }
}

/* 정정·반론보도 고지. 언론중재법 대응에서 기사 하단에 붙는다.
   본문과 확실히 구분돼야 해서 테두리를 두른다. */
.correction-notice {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--accent);
  background: #fffafa;
}
.correction-notice p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.correction-notice p:last-of-type { margin-bottom: 0; }
.correction-notice__meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

/* 없는 기사. 빈 페이지 대신 평소 레이아웃 안에서 알린다. */
.notfound { padding: 80px 20px; text-align: center; }
.notfound__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}
.notfound__body { margin-top: 12px; font-size: 15px; color: var(--muted); }
.notfound__link {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.notfound__link:hover { background: #000; color: #fff; }

.tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.tags a {
  background: var(--fill-2);
  padding: 7px 13px;
  font-size: 13px;
  color: var(--ink-4);
}
.tags a:hover { background: var(--fill-4); color: var(--ink); }

.reporter {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.reporter .ph { width: 56px; height: 56px; flex: 0 0 56px; }
.reporter__name { font-size: 14.5px; font-weight: 700; }
.reporter__bio {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.related { margin-top: 40px; }
.related__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.related__item { display: flex; gap: 14px; }
.related__item .ph { flex: 0 0 110px; height: 74px; }
.related__item a {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.vod { margin-top: 14px; width: 100%; height: 170px; background: var(--dark-3); color: var(--dark-muted); }
.vod-title {
  display: block;
  margin-top: 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.vod-dur { margin-top: 6px; font-size: 12px; color: var(--muted-2); }

/* ---------- 19. 반응형 ---------- */
@media (max-width: 1360px) {
  .top { grid-template-columns: minmax(0, 1fr) 320px; }
  .ad-rail { display: none; }
  .top__center { grid-column: 1; }
  .top__aside  { grid-column: 2; }
}

@media (max-width: 1080px) {
  .top,
  .seclayout,
  .artlayout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .top__center, .top__aside { grid-column: 1; }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .article { max-width: none; }
  .sec3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .sec3 > *:last-child { grid-column: 1 / -1; }
  .photonews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opinion__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gnb__search { width: 160px; }
}

@media (max-width: 860px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 16px;
  }
  .masthead__spacer { display: none; }
  .market { justify-self: center; }

  .lead__title { font-size: 30px; }
  .lead__body { grid-template-columns: minmax(0, 1fr); }
  .lead__photo { height: 280px; }

  .hl3 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .series__grid { grid-template-columns: minmax(0, 1fr); }
  .sec3 { grid-template-columns: minmax(0, 1fr); }
  .sec3 > *:last-child { grid-column: auto; }

  .seclead { grid-template-columns: minmax(0, 1fr); }
  .seclead__title { font-size: 26px; }
  .secbanner__inner { height: 170px; }
  .secbanner h1 { font-size: 34px; }
  .secbanner__text { padding: 0 24px; }

  .article__title { font-size: 30px; }
  .article__standfirst { font-size: 16.5px; }
  .article__figure .ph { height: 260px; }
  .article__body { font-size: 16.5px; line-height: 1.9; }
  .pullquote p { font-size: 18px; }
  .related__grid { grid-template-columns: minmax(0, 1fr); }

  .footer > .wrap { flex-direction: column; gap: 28px; }
  .footer__cols { gap: 36px; }
}

@media (max-width: 640px) {
  .side { grid-template-columns: minmax(0, 1fr); }
  .midrow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .artrow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .artrow .ph { height: 190px; }
  .photonews__grid { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .gnb > .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  .gnb__menu {
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .gnb__menu::-webkit-scrollbar { display: none; }
  .gnb__search { width: 100%; margin-bottom: 12px; }

  .ticker > .wrap { gap: 12px; }
  .newsdesk__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vcard, .vcard__frame { width: 280px; flex-basis: 280px; }
  .vcard__frame { height: 158px; }
  .byline { flex-direction: column; align-items: flex-start; }
  .weather__cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  /* 모바일 입력창 16px — iOS 가 폰트 16px 미만 입력창을 탭하면 페이지를 자동 확대(줌)한다 */
  .gnb__search input, .newsletter__form input { font-size: 16px; }
}

/* ---------- 18. 문서 페이지 (약관·정책·회사소개·정정요청) ----------
   본문 3쪽과 같은 base.css/style.css 를 쓰되, 긴 글을 읽기 좋은 단일 컬럼. */
.docmast { border-bottom: 1px solid var(--line); }
.docmast__inner {
  max-width: var(--wrap, 1180px);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.docmast .wordmark { font-size: 26px; color: var(--ink); }
.docmast__home { font-size: 13px; color: var(--muted); text-decoration: none; }
.docmast__home:hover { color: var(--accent); }

.doc { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; }
.doc__kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.doc__title {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.doc__updated { font-size: 12.5px; color: var(--muted-2); }
.doc__todo {
  margin: 20px 0;
  padding: 12px 16px;
  border: 1px solid #e6d3a8;
  background: #fbf6ea;
  border-radius: 8px;
  font-size: 13px;
  color: #7a5c1e;
  line-height: 1.7;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.doc h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.doc p, .doc li { font-size: 15px; line-height: 1.85; color: #2b2f36; }
.doc ul, .doc ol { margin: 8px 0 8px 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--accent); }
.doc__table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc__table th, .doc__table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc__table th { background: var(--fill-2); font-weight: 700; white-space: nowrap; }
.doc__contact {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--fill-2);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.9;
}

/* 본문 사진 출처(크레딧) — 캡션 옆/아래 작은 글씨 */
.article__credit { color: var(--muted-2); font-weight: 600; }

@media (max-width: 640px) {
  .doc__title { font-size: 24px; }
  .doc { padding: 28px 18px 48px; }
}

/* ==========================================================================
   19. 신문형 상단 편성 (리드 + hl3 분야 헤드라인 + '지금 주목할 뉴스')
   왼쪽 광고 레일(160) / 가운데 신문형 리드+분야 헤드라인 3단 / 오른쪽 주목 뉴스.
   리드 사진은 위 .lead__photo 흐린 배경 규칙을 그대로 써서 잘리지 않는다.
   ========================================================================== */
/* 광고칸은 승인·유치 전까지 숨긴다 — 빈 광고 프레임은 애드센스 심사에 불리하고
   방문자에게 미완성으로 보인다. 나중에 광고가 오면 아래 3줄을 되살리고
   .top 을 '160px minmax(0,1fr) 300px' 3열로 바꾸면 왼쪽 레일이 돌아온다. */
.top { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.top .ad-rail { display: none; }
.top .top__center { grid-column: 1; }
.top .top__aside { grid-column: 2; }
.top .ad-rail .ph { width: 160px; height: 600px; }

.newspaper-lead .lead__body { display: block; margin: 0; }
.newspaper-lead .lead__photo { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lead-section { color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-align: center; margin: 16px 0 8px; }
.newspaper-lead .lead__title { font-size: 32px; line-height: 1.4; letter-spacing: -.03em; text-align: center; text-wrap: balance; }

.hl3 { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); gap: 20px; }
.hl3 article { padding-right: 16px; border-right: 1px solid var(--line); }
.hl3 article:last-child { border-right: 0; padding-right: 0; }
.hl3 .news-category { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .03em; margin-bottom: 6px; }
.hl3 a { display: block; margin-top: 0; font-size: 17px; line-height: 1.55; font-weight: 600; }

.rail-heading { font-family: var(--serif); font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.top__aside .rtcards { display: flex; flex-direction: column; gap: 16px; }
.top__aside .rtcards .ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.top__aside .rtcards article { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.top__aside .rtcards article:last-child { border-bottom: 0; padding-bottom: 0; }
.top__aside .rtcards a { display: block; margin-top: 9px; font-size: 16px; line-height: 1.5; font-weight: 600; }

/* ≤1360: 기존 미디어쿼리가 ad-rail 을 숨기고 center→1·aside→2 로 옮긴다.
   신문형 grid 도 2열(center + aside)로 맞춰 리드가 넓은 칸을 쓰게 한다. */
@media (max-width: 1360px) {
  .top { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1080px) {
  .top { grid-template-columns: minmax(0, 1fr); }
  .top .ad-rail { grid-column: 1; grid-row: auto; position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .top .ad-rail .ph { width: 100%; max-width: 728px; height: 90px; }
  .top .top__center, .top .top__aside { grid-column: 1; }
  .top__aside .rtcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top__aside .rtcards article { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .newspaper-lead .lead__title { font-size: 25px; }
  .hl3 { grid-template-columns: 1fr; }
  .hl3 article { border-right: 0; padding-right: 0; }
  .top__aside .rtcards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   20. 실시간 (/realtime/ · /realtime/yesterday/) — 뉴시스 '실시간' 꼴
   큰 제목 '실시간' 옆 '오늘 | 어제' · 기사마다 왼쪽 썸네일(없으면 칸 없이) · 굵은 제목 ·
   요약 두 줄 · '기자 | 2026.10.22 21:20:30' · 오른쪽 '많이 본 기사'(.ranklist 그대로).
   메뉴 맨 앞 '실시간' 은 빨간 점으로 다른 섹션과 구분한다(속보 티커 점과 같은 색).
   ========================================================================== */
.gnb__link--realtime { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.gnb__link--realtime::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
/* 홈 메뉴는 검색칸과 한 줄을 나눈다. '실시간' 한 칸이 늘어 1240px 폭(웹폰트 실측)에서 이슈픽이 둘째 줄로
   밀리고 검색칸이 내려앉았다 → 칸 사이를 20→16px(모바일과 같은 값)로 좁혀 한 줄을 지킨다.
   하위 쪽(.gnb--sub)은 검색칸이 없어 여유가 커서 그대로 둔다. */
@media (min-width: 641px) {
  .gnb:not(.gnb--sub) .gnb__menu { gap: 16px; }
}

.rtlayout {
  padding-top: 28px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.rthead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.rthead__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.rthead__tabs { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.rthead__tabs a { color: var(--muted-2); font-weight: 500; }
.rthead__tabs a:hover { color: var(--ink); }
.rthead__tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.rthead__sep { color: var(--line); }
.rthead__date { margin-left: auto; font-size: 13px; color: var(--muted-2); }

.rtnotice {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: #fffafa;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.rtnotice[hidden] { display: none; }

.rtlist { list-style: none; margin: 0; padding: 0; }
.rtitem {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rtitem--nophoto { grid-template-columns: minmax(0, 1fr); }
.rtitem__thumb { display: block; }
.rtitem__thumb .ph { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.rtitem__body { min-width: 0; }
.rtitem__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.rtitem__sum {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rtitem__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.rtitem__bar { color: var(--line); }
.rtitem__time { font-variant-numeric: tabular-nums; }

.rtlist__empty {
  padding: 48px 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted-2);
}
.rtlist__empty a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rtlist__more { padding: 18px 0 0; font-size: 13px; color: var(--muted-2); }

/* 문서 페이지(약관 등) 머리띠: '실시간 · ← 홈으로' */
.docmast__links { display: flex; align-items: center; gap: 16px; }

@media (max-width: 1080px) {
  .rtlayout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .rtlayout { padding-top: 20px; }
  .rthead__title { font-size: 26px; }
  .rthead__date { margin-left: 0; width: 100%; }
  .rtitem { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .rtitem--nophoto { grid-template-columns: minmax(0, 1fr); }
  .rtitem__title { font-size: 16px; }
  .rtitem__sum { font-size: 13.5px; margin-top: 6px; }
  .rtitem__meta { margin-top: 8px; font-size: 12px; }
}
