/*
 * 기사형 새 위젯 8종 — App\Core\NewsWidgets (오피니언·칼럼 · 사설 · 기획·연재 · 기자 소개 · 이슈 키워드 · 탭 뉴스 · 영상 쇼츠 · 실시간 속보).
 * 색·선·모서리는 그 언론사 값을 따른다(--tn-red · --tn-ink · --tn-line · --tn-radius). 칸 폭에 맞춰 바뀐다(@container nw).
 * 부품에는 data-wd 이름(title · meta · thumb · item · list · badge · excerpt · box · head)을 달아 디자인 공방의 요소별 편집이 그대로 먹는다.
 */

.tn-nw {
    --nw-accent: var(--wd-accent, var(--tn-red, #e6003c));
    --nw-ink: var(--tn-ink, #111827);
    --nw-soft: var(--tn-ink-soft, var(--tn-muted, #5b6472));
    --nw-faint: var(--tn-ink-faint, #9aa1ad);
    --nw-line: var(--tn-line, #e5e7eb);
    --nw-surface: var(--tn-soft, #f5f6f8);
    --nw-radius: var(--tn-radius, 8px);
    container: nw / inline-size;
    color: var(--nw-ink);
}
.tn-nw a { color: inherit; text-decoration: none; }
.tn-nw a:hover .tn-nw-title { color: var(--nw-accent); }
.tn-nw ol,
.tn-nw ul { margin: 0; padding: 0; list-style: none; }
.tn-nw .tn-nw-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; line-height: 1.42; letter-spacing: -0.02em; word-break: keep-all; transition: color .15s ease; }
.tn-nw .tn-nw-meta { display: block; margin-top: 4px; color: var(--nw-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.tn-nw .tn-nw-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 6px 0 0; color: var(--nw-soft); font-size: 14px; line-height: 1.6; }
.tn-nw .tn-nw-empty { margin: 0; padding: 18px; border: 1px dashed var(--nw-line); border-radius: var(--nw-radius); color: var(--nw-soft); font-size: 13px; line-height: 1.6; text-align: center; }
.tn-nw .tn-wd-kicker { display: block; width: fit-content; margin-bottom: 4px; color: var(--nw-accent); font-size: 12px; font-weight: 800; line-height: 1.3; }
.tn-nw .tn-wd-thumb { display: block; overflow: hidden; border-radius: var(--nw-radius); background: var(--nw-surface); aspect-ratio: 16 / 9; }
.tn-nw .tn-wd-thumb img,
.tn-nw .tn-wd-thumb .tn-wd-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 얼굴(사진이 없으면 이름 첫 글자) */
.tn-nw-face { display: inline-grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--nw-accent) 12%, var(--nw-surface)); color: var(--nw-accent); }
.tn-nw-face img { width: 100%; height: 100%; object-fit: cover; }
.tn-nw-face b { font-size: 21px; font-weight: 800; }
.tn-nw-face.is-big { width: 76px; height: 76px; }
.tn-nw-face.is-big b { font-size: 28px; }

/* 1) 오피니언·칼럼 — 글 왼쪽, 얼굴 오른쪽, 사이 줄 */
.tn-nw-op + .tn-nw-op { border-top: 1px solid var(--nw-line); }
.tn-nw-op-link { display: flex; align-items: center; gap: 14px; padding: 11px 0; }
.tn-nw-op-text { flex: 1 1 auto; min-width: 0; }
.tn-nw-op .tn-nw-title { font-size: 16px; }
@container nw (min-width: 640px) {
    .tn-nw-opinions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .tn-nw-op + .tn-nw-op { border-top: 0; }
    .tn-nw-op { border-bottom: 1px solid var(--nw-line); }
}

/* 2) 사설 — 첫 사설은 크게 + 요약, 나머지는 줄 */
.tn-nw-ed { padding: 12px 0; border-bottom: 1px solid var(--nw-line); }
.tn-nw-ed:last-child { border-bottom: 0; }
.tn-nw-ed > a { display: flex; gap: 8px; align-items: baseline; }
.tn-nw-ed-tag { flex: 0 0 auto; padding: 1px 7px; border: 1px solid var(--nw-accent); border-radius: 3px; color: var(--nw-accent); font-size: 11.5px; font-weight: 800; line-height: 1.5; }
.tn-nw-ed .tn-nw-title { font-size: 15px; }
.tn-nw-ed.is-lead { padding-top: 4px; }
.tn-nw-ed.is-lead .tn-nw-title { font-size: 19px; line-height: 1.38; -webkit-line-clamp: 3; }
.tn-nw-ed .tn-nw-meta { margin-left: 50px; }
.tn-nw .tn-nw-ed.is-lead .tn-nw-meta { margin-left: 0; } /* 첫 사설은 요약 아래 — 요약과 같은 줄에서 시작 */

/* 3) 기획·연재 — 묶음마다 한 칸, 위에 대표색 선 */
.tn-nw-series { display: grid; grid-template-columns: repeat(var(--nw-cols, 4), minmax(0, 1fr)); gap: 22px; }
.tn-nw-series-col { display: grid; align-content: start; gap: 9px; padding-top: 12px; border-top: 3px solid var(--nw-accent); min-width: 0; }
.tn-nw-series-name { color: var(--nw-accent) !important; font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.tn-nw-series-lead .tn-nw-title { font-size: 17px; -webkit-line-clamp: 3; }
.tn-nw-series-more { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--nw-line); }
.tn-nw-series-more a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; color: var(--nw-soft); font-size: 13.5px; line-height: 1.5; }
.tn-nw-series-more a:hover { color: var(--nw-accent); }
.tn-nw-series-text { display: grid; align-content: start; gap: 9px; min-width: 0; }
/* 묶음 하나 — 사진 왼쪽, 제목·요약·목록 오른쪽 */
.tn-nw-series.is-single .tn-nw-series-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 26px; row-gap: 12px; }
.tn-nw-series.is-single .tn-nw-series-name { grid-column: 1 / -1; }
.tn-nw-series.is-single .tn-nw-series-col:not(:has(> .tn-nw-series-thumb)) { grid-template-columns: minmax(0, 1fr); }
.tn-nw-series.is-single .tn-nw-series-lead .tn-nw-title { font-size: 21px; line-height: 1.38; }
.tn-nw-series.is-single .tn-nw-series-more { gap: 8px; padding-top: 12px; }
.tn-nw-series.is-single .tn-nw-series-more a { font-size: 14.5px; }
@container nw (max-width: 720px) {
    .tn-nw-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
    .tn-nw-series.is-single { grid-template-columns: minmax(0, 1fr); }
    .tn-nw-series.is-single .tn-nw-series-col { grid-template-columns: minmax(0, 1fr); }
}
@container nw (max-width: 420px) {
    .tn-nw-series { grid-template-columns: minmax(0, 1fr); }
    .tn-nw-series-thumb { display: none; }
}

/* 4) 기자 소개 — 카드 줄, 넘치면 옆으로 */
.tn-nw-reporters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tn-nw-rep { display: grid; align-content: start; gap: 10px; padding: 16px 14px; border: 1px solid var(--nw-line); border-radius: var(--nw-radius); background: var(--tn-bg, #fff); text-align: center; }
.tn-nw-rep-who { display: grid; justify-items: center; gap: 8px; }
.tn-nw-rep-name strong { font-size: 15px; font-weight: 800; }
.tn-nw-rep-name small { color: var(--nw-faint); font-size: 12px; }
.tn-nw-rep-latest { padding-top: 10px; border-top: 1px solid var(--nw-line); }
.tn-nw-rep-latest .tn-nw-title { font-size: 13.5px; font-weight: 600; color: var(--nw-soft); }

/* 5) 이슈 키워드 — 순위 붙은 알약 */
.tn-nw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-nw-tags a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 8px; border: 1px solid var(--nw-line); border-radius: 999px; background: var(--tn-bg, #fff); transition: border-color .15s ease, background .15s ease; }
.tn-nw-tags a:hover { border-color: var(--nw-accent); background: color-mix(in srgb, var(--nw-accent) 6%, transparent); }
.tn-nw-tags em { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--nw-surface); color: var(--nw-soft); font-size: 11.5px; font-style: normal; font-weight: 800; }
.tn-nw-tags li:nth-child(-n+3) em { background: var(--nw-accent); color: #fff; }
.tn-nw-tags .tn-nw-title { font-size: 14px; font-weight: 700; -webkit-line-clamp: 1; }

/* 6) 탭 뉴스 — 라디오 + 라벨(스크립트 없이), 다섯 탭까지 */
.tn-nw-tab-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tn-nw-tablist { display: flex; gap: 0; overflow-x: auto; border-bottom: 2px solid var(--nw-ink); scrollbar-width: none; }
.tn-nw-tablist::-webkit-scrollbar { display: none; }
.tn-nw-tablist label { flex: 0 0 auto; margin: 0; padding: 9px 16px; color: var(--nw-soft); font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tn-nw-tablist label:hover { color: var(--nw-ink); }
.tn-nw-tabpanel { display: none; }
.tn-nw-tab-input:nth-of-type(1):checked ~ .tn-nw-tabpanels > .tn-nw-tabpanel:nth-child(1),
.tn-nw-tab-input:nth-of-type(2):checked ~ .tn-nw-tabpanels > .tn-nw-tabpanel:nth-child(2),
.tn-nw-tab-input:nth-of-type(3):checked ~ .tn-nw-tabpanels > .tn-nw-tabpanel:nth-child(3),
.tn-nw-tab-input:nth-of-type(4):checked ~ .tn-nw-tabpanels > .tn-nw-tabpanel:nth-child(4),
.tn-nw-tab-input:nth-of-type(5):checked ~ .tn-nw-tabpanels > .tn-nw-tabpanel:nth-child(5) { display: grid; }
.tn-nw-tab-input:nth-of-type(1):checked ~ .tn-nw-tablist > label:nth-child(1),
.tn-nw-tab-input:nth-of-type(2):checked ~ .tn-nw-tablist > label:nth-child(2),
.tn-nw-tab-input:nth-of-type(3):checked ~ .tn-nw-tablist > label:nth-child(3),
.tn-nw-tab-input:nth-of-type(4):checked ~ .tn-nw-tablist > label:nth-child(4),
.tn-nw-tab-input:nth-of-type(5):checked ~ .tn-nw-tablist > label:nth-child(5) { color: #fff; background: var(--nw-ink); }
.tn-nw-tab-input:focus-visible ~ .tn-nw-tablist { outline: 2px solid var(--nw-accent); outline-offset: 2px; }
.tn-nw-tabpanel { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
.tn-nw-tabpanel li { border-bottom: 1px solid var(--nw-line); }
.tn-nw-tabpanel li > a { display: grid; gap: 4px; padding: 11px 0; }
.tn-nw-tabpanel .tn-nw-title { font-size: 15px; -webkit-line-clamp: 1; }
.tn-nw-tabpanel li:first-child .tn-nw-title { font-size: 17px; -webkit-line-clamp: 2; }
.tn-nw-tab-thumb { margin-bottom: 6px; }
@container nw (min-width: 620px) {
    .tn-nw-tabpanel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 24px; }
    .tn-nw-tabpanel li:first-child { grid-row: span 6; border-bottom: 0; }
}

/* 7) 영상 쇼츠 — 9:16 카드 줄 */
.tn-nw-shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, calc((100% - 48px) / 5)); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tn-nw-short { position: relative; display: block; overflow: hidden; border-radius: max(10px, var(--nw-radius)); background: #111; aspect-ratio: 9 / 16; color: #fff !important; }
.tn-nw-short-media { position: absolute; inset: 0; }
.tn-nw-short-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tn-nw-short:hover .tn-nw-short-media img { transform: scale(1.05); }
.tn-nw-short-media i { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .45); font-size: 12px; }
.tn-nw-short-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.tn-nw-short .tn-nw-title { color: #fff; font-size: 14.5px; -webkit-line-clamp: 3; }
.tn-nw .tn-nw-short:hover .tn-nw-title { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@container nw (max-width: 520px) {
    .tn-nw-shorts { grid-auto-columns: minmax(138px, 46%); }
}

/* 8) 실시간 속보 — LIVE 표시 + 시각 세로 줄 */
.tn-nw-live-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--nw-faint); font-size: 12px; }
.tn-nw-live-head b { color: var(--nw-accent); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.tn-nw-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nw-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--nw-accent) 55%, transparent); animation: tn-nw-pulse 1.6s ease-out infinite; }
@keyframes tn-nw-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nw-accent) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.tn-nw-live { position: relative; display: grid; gap: 0; }
.tn-nw-live::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 47px; width: 1px; background: var(--nw-line); }
.tn-nw-live li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 7px 0; }
.tn-nw-live li::before { content: ""; position: absolute; top: 14px; left: 44px; width: 7px; height: 7px; border-radius: 50%; background: var(--tn-bg, #fff); border: 2px solid var(--nw-accent); }
.tn-nw-live li:first-child::before { background: var(--nw-accent); }
.tn-nw-live time.tn-nw-meta { margin: 2px 0 0; color: var(--nw-accent); font-weight: 700; text-align: right; }
.tn-nw-live .tn-nw-title { font-size: 14.5px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .tn-nw-live-dot { animation: none; }
    .tn-nw-short-media img { transition: none; }
}

/* ======================================================================
 * 종류(디자인 공방 · 디자인 고르기, App\Core\WidgetDesignBases::DESIGNS) — 마크업은 그대로, 위젯 상자의 data-wd-base 로 모양만 바꾼다.
 * 위젯마다 두 가지부터. 색·선·모서리는 그 언론사 값(--nw-*)을 따른다.
 * ====================================================================== */

/* 오피니언 · 얼굴 카드 */
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-opinions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-op,
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-op + .tn-nw-op { border: 1px solid var(--nw-line); border-radius: var(--nw-radius); background: var(--tn-bg, #fff); transition: border-color .15s ease; }
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-op:hover { border-color: var(--nw-accent); }
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-op-link { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; padding: 13px 14px; }
.tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-face { width: 48px; height: 48px; }
@container nw (min-width: 560px) { .tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-opinions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container nw (min-width: 900px) { .tn-nw[data-wd-base="opinion-columns.cards"] .tn-nw-opinions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 오피니언 · 인용형 */
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-nw-op-link { align-items: flex-start; }
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-nw-op-text::before { content: "\201C"; display: block; height: 20px; color: var(--nw-accent); font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1; }
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-wd-kicker { display: none; }
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-nw-title { font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif; font-size: 17px; font-weight: 700; line-height: 1.5; }
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-nw-face { width: 36px; height: 36px; margin-top: 24px; }
.tn-nw[data-wd-base="opinion-columns.quote"] .tn-nw-face b { font-size: 14px; }

/* 사설 · 신문 사설면 */
.tn-nw[data-wd-base="editorials.paper"] .tn-nw-editorials { padding-top: 4px; border-top: 3px double var(--nw-ink); }
.tn-nw[data-wd-base="editorials.paper"] .tn-nw-ed-tag { padding: 0; border: 0; color: var(--nw-accent); font-size: 12.5px; }
.tn-nw[data-wd-base="editorials.paper"] .tn-nw-title { font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif; font-weight: 700; }
.tn-nw[data-wd-base="editorials.paper"] .tn-nw-ed.is-lead .tn-nw-title { font-size: 21px; }
.tn-nw[data-wd-base="editorials.paper"] .tn-nw-ed:not(.is-lead) .tn-nw-meta { margin-left: 38px; }

/* 사설 · 번호 상자 */
.tn-nw[data-wd-base="editorials.boxed"] .tn-nw-editorials { counter-reset: nwed; padding: 4px 16px; border-radius: var(--nw-radius); background: var(--nw-surface); }
.tn-nw[data-wd-base="editorials.boxed"] .tn-nw-ed { counter-increment: nwed; border-bottom-color: color-mix(in srgb, var(--nw-line) 80%, transparent); }
.tn-nw[data-wd-base="editorials.boxed"] .tn-nw-ed-tag { min-width: 24px; padding: 0; border: 0; color: transparent; font-size: 0; }
.tn-nw[data-wd-base="editorials.boxed"] .tn-nw-ed-tag::before { content: counter(nwed, decimal-leading-zero); color: var(--nw-accent); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tn-nw[data-wd-base="editorials.boxed"] .tn-nw-ed:not(.is-lead) .tn-nw-meta { margin-left: 32px; }

/* 기획·연재 · 사진 위 이름 */
.tn-nw[data-wd-base="series-pick.overlay"] .tn-nw-series-col { position: relative; padding-top: 0; border-top: 0; }
.tn-nw[data-wd-base="series-pick.overlay"] .tn-nw-series-col:has(> .tn-nw-series-thumb) > .tn-nw-series-name { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 11px; border-radius: 999px; background: var(--nw-accent); color: #fff !important; font-size: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.tn-nw[data-wd-base="series-pick.overlay"] .tn-nw-series-thumb { aspect-ratio: 4 / 3; }
.tn-nw[data-wd-base="series-pick.overlay"] .tn-nw-series.is-single .tn-nw-series-thumb { aspect-ratio: 16 / 10; }

/* 기획·연재 · 줄 목록 */
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-col { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 14px; padding: 12px 0; border-top: 0; border-bottom: 1px solid var(--nw-line); }
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-name { grid-column: auto; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--nw-accent) 10%, transparent); white-space: nowrap; }
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-thumb,
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-more,
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-text > .tn-nw-excerpt { display: none; }
.tn-nw[data-wd-base="series-pick.rows"] .tn-nw-series-lead .tn-nw-title { font-size: 15.5px; -webkit-line-clamp: 1; }

/* 기자 소개 · 줄 목록 */
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-reporters { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 0 24px; overflow: visible; }
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-rep { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--nw-line); border-radius: 0; background: none; text-align: left; }
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-rep-who { display: contents; }
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-face.is-big { grid-row: span 2; width: 52px; height: 52px; }
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-face.is-big b { font-size: 20px; }
.tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-rep-latest { padding-top: 0; border-top: 0; }
@container nw (min-width: 640px) { .tn-nw[data-wd-base="reporter-cards.list"] .tn-nw-reporters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 기자 소개 · 얼굴만 */
.tn-nw[data-wd-base="reporter-cards.round"] .tn-nw-reporters { grid-auto-columns: minmax(96px, 1fr); gap: 10px; }
.tn-nw[data-wd-base="reporter-cards.round"] .tn-nw-rep { gap: 6px; padding: 6px 4px; border: 0; background: none; }
.tn-nw[data-wd-base="reporter-cards.round"] .tn-nw-rep-latest { display: none; }
.tn-nw[data-wd-base="reporter-cards.round"] .tn-nw-face.is-big { box-shadow: 0 0 0 3px var(--tn-bg, #fff), 0 0 0 5px color-mix(in srgb, var(--nw-accent) 35%, transparent); }
.tn-nw[data-wd-base="reporter-cards.round"] .tn-nw-rep-name small { display: block; }

/* 이슈 키워드 · 순위 목록 */
.tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags a { display: flex; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--nw-line); border-radius: 0; background: none; }
.tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags em { justify-content: start; min-width: 24px; height: auto; border-radius: 0; background: none; color: var(--nw-soft); font-size: 15px; font-weight: 900; }
.tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags li:nth-child(-n+3) em { background: none; color: var(--nw-accent); }
.tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags a:hover { background: none; }
@container nw (min-width: 560px) { .tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container nw (min-width: 900px) { .tn-nw[data-wd-base="issue-tags.rank"] .tn-nw-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 이슈 키워드 · 태그 구름 */
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags { align-items: baseline; gap: 4px 16px; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags a { padding: 2px 0; border: 0; border-radius: 0; background: none; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags em { display: none; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags .tn-nw-title { color: var(--nw-soft); font-size: 14px; font-weight: 700; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags li:nth-child(1) .tn-nw-title { color: var(--nw-accent); font-size: 23px; font-weight: 900; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags li:nth-child(2) .tn-nw-title,
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags li:nth-child(3) .tn-nw-title { color: var(--nw-ink); font-size: 19px; font-weight: 800; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags li:nth-child(n+4):nth-child(-n+6) .tn-nw-title { color: var(--nw-ink); font-size: 16px; }
.tn-nw[data-wd-base="issue-tags.cloud"] .tn-nw-tags a:hover .tn-nw-title { color: var(--nw-accent); }

/* 탭 뉴스 · 밑줄 탭 */
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tablist { gap: 4px; border-bottom: 1px solid var(--nw-line); }
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tablist label { margin-bottom: -1px; padding: 10px 12px; border-bottom: 3px solid transparent; }
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tab-input:nth-of-type(1):checked ~ .tn-nw-tablist > label:nth-child(1),
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tab-input:nth-of-type(2):checked ~ .tn-nw-tablist > label:nth-child(2),
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tab-input:nth-of-type(3):checked ~ .tn-nw-tablist > label:nth-child(3),
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tab-input:nth-of-type(4):checked ~ .tn-nw-tablist > label:nth-child(4),
.tn-nw[data-wd-base="tab-news.underline"] .tn-nw-tab-input:nth-of-type(5):checked ~ .tn-nw-tablist > label:nth-child(5) { border-bottom-color: var(--nw-accent); background: none; color: var(--nw-accent); }

/* 탭 뉴스 · 알약 탭 */
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tablist { gap: 6px; padding-bottom: 8px; border-bottom: 0; }
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tablist label { padding: 7px 14px; border: 1px solid var(--nw-line); border-radius: 999px; font-size: 13.5px; }
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tab-input:nth-of-type(1):checked ~ .tn-nw-tablist > label:nth-child(1),
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tab-input:nth-of-type(2):checked ~ .tn-nw-tablist > label:nth-child(2),
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tab-input:nth-of-type(3):checked ~ .tn-nw-tablist > label:nth-child(3),
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tab-input:nth-of-type(4):checked ~ .tn-nw-tablist > label:nth-child(4),
.tn-nw[data-wd-base="tab-news.pill"] .tn-nw-tab-input:nth-of-type(5):checked ~ .tn-nw-tablist > label:nth-child(5) { border-color: var(--nw-accent); background: var(--nw-accent); color: #fff; }

/* 영상 쇼츠 · 둥근 카드 */
.tn-nw[data-wd-base="video-shorts.rounded"] .tn-nw-short { border-radius: 20px; }
.tn-nw[data-wd-base="video-shorts.rounded"] .tn-nw-short-media i { top: 50%; left: 50%; right: auto; width: 54px; height: 54px; background: rgba(255, 255, 255, .92); color: #111; font-size: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }

/* 영상 쇼츠 · 정사각 + 아래 제목 */
.tn-nw[data-wd-base="video-shorts.square"] .tn-nw-short { overflow: visible; border-radius: 0; background: none; aspect-ratio: auto; color: var(--nw-ink) !important; }
.tn-nw[data-wd-base="video-shorts.square"] .tn-nw-short-media { position: relative; display: block; overflow: hidden; border-radius: var(--nw-radius); background: #111; aspect-ratio: 1 / 1; }
.tn-nw[data-wd-base="video-shorts.square"] .tn-nw-short-cap { position: static; padding: 8px 2px 0; background: none; }
.tn-nw[data-wd-base="video-shorts.square"] .tn-nw-short .tn-nw-title { color: var(--nw-ink); font-size: 14px; -webkit-line-clamp: 2; }
.tn-nw[data-wd-base="video-shorts.square"] .tn-nw-short:hover .tn-nw-title { color: var(--nw-accent); text-decoration: none; }

/* 실시간 속보 · 카드 줄 */
.tn-nw[data-wd-base="live-timeline.cards"] .tn-nw-live { gap: 6px; }
.tn-nw[data-wd-base="live-timeline.cards"] .tn-nw-live::before,
.tn-nw[data-wd-base="live-timeline.cards"] .tn-nw-live li::before { display: none; }
.tn-nw[data-wd-base="live-timeline.cards"] .tn-nw-live li { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 7px 10px; border-radius: var(--nw-radius); background: var(--nw-surface); }
.tn-nw[data-wd-base="live-timeline.cards"] .tn-nw-live time.tn-nw-meta { margin: 1px 0 0; padding: 2px 8px; border-radius: 999px; background: var(--nw-accent); color: #fff; font-size: 11.5px; text-align: center; }

/* 실시간 속보 · 촘촘한 줄 */
.tn-nw[data-wd-base="live-timeline.ticker"] .tn-nw-live::before,
.tn-nw[data-wd-base="live-timeline.ticker"] .tn-nw-live li::before { display: none; }
.tn-nw[data-wd-base="live-timeline.ticker"] .tn-nw-live li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--nw-line); }
.tn-nw[data-wd-base="live-timeline.ticker"] .tn-nw-live time.tn-nw-meta { margin: 1px 0 0; color: var(--nw-ink); font-weight: 900; text-align: left; }
.tn-nw[data-wd-base="live-timeline.ticker"] .tn-nw-live .tn-nw-title { -webkit-line-clamp: 1; }
