/* 종합시사매거진 스킨
 *
 * sisanewszine.co.kr 의 지면 성격을 새 플랫폼에서 재현한다. 원본의 CSS·마크업을
 * 가져온 것이 아니라, 실측한 값을 기준으로 우리 컴포넌트(.tn-*)에 다시 입혔다.
 *
 * 실측 기준
 *   주조색 #e50012 (빨강)   본문 #222   보조 #767676 / #a5a5a5
 *   본문 폭 1080px          시스템 고딕(맑은 고딕·돋움) 계열
 *
 * 적용: 해당 사이트 설정에서 theme_skin = sisanewszine
 */

:root,
body {
    --tn-red: #e50012;
    --tn-red-dark: #b8000e;
    --tn-line: #e8e8e8;
    --tn-ink: #222;
    --tn-ink-soft: #767676;
    --tn-ink-faint: #a5a5a5;
}

body {
    background: #fff;
    color: var(--tn-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", 돋움, dotum,
                 "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    letter-spacing: -0.015em;
}

/* 세 매체 중 본문 폭이 가장 좁다. */
.tn-container {
    max-width: 1080px;
}

.tn-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid var(--tn-line);
    font-size: 12px;
    color: var(--tn-ink-soft);
}

.tn-topbar a { color: var(--tn-ink-soft); }
.tn-topbar a:hover { color: var(--tn-red); }

/* 시사지답게 머리 부분을 굵은 선으로 눌러 준다. */
.tn-header-main {
    background: #fff;
    border-bottom: 3px solid var(--tn-ink);
    box-shadow: none;
}

.tn-header-main-inner { min-height: 84px; }

.tn-logo-img {
    max-height: 46px;
    width: auto;
}

.tn-nav a {
    position: relative;
    padding: 15px 17px;
    color: var(--tn-ink);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.tn-nav a:hover,
.tn-nav a.active { color: var(--tn-red); }

.tn-nav a.active::after {
    content: "";
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 0;
    height: 3px;
    background: var(--tn-red);
}

/* 섹션 제목 앞에 빨간 막대 — 시사지에서 흔한 표기다. */
.tn-section-title h2,
.tn-section-title h3 {
    position: relative;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--tn-ink);
}

.tn-section-title h2::before,
.tn-section-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 17px;
    background: var(--tn-red);
}

.tn-section-title .tn-more {
    color: var(--tn-ink-faint);
    font-size: 13px;
}

/* 각진 모서리 · 선 위주 — 잡지형보다 신문형에 가깝다. */
.tn-card {
    border-radius: 2px;
    border-color: var(--tn-line);
    box-shadow: none;
}

.tn-thumb,
.tn-home-media,
.tn-video-poster { border-radius: 2px; }

.tn-card h3,
.tn-card h4,
.tn-rank-title,
.tn-title-lines {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.44;
    color: var(--tn-ink);
}

.tn-card a:hover h3,
.tn-card a:hover h4,
.tn-card a:hover .tn-rank-title { color: var(--tn-red); }

.tn-meta,
.tn-card time {
    color: var(--tn-ink-faint);
    font-size: 12px;
}

.tn-overlay-card { border-radius: 2px; }

.tn-overlay-content {
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
    padding: 26px 24px 20px;
}

.tn-overlay-content h2,
.tn-overlay-content h3 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.33;
    letter-spacing: -0.045em;
    color: #fff;
}

.tn-kicker {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 2px;
    background: var(--tn-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tn-ranking li { border-bottom: 1px solid var(--tn-line); }
.tn-ranking li:last-child { border-bottom: 0; }

.tn-ranking .num,
.tn-ranking .tn-rank-num {
    color: var(--tn-red);
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.tn-ad-wide,
.tn-ad-inline { margin: 24px 0; text-align: center; }

.tn-ad-wide img,
.tn-ad-inline img { max-width: 100%; height: auto; }

[class*="tn-home-layout-section-ad_"] { min-height: 0; }

.tn-btn-red { border-radius: 2px; background: var(--tn-red); }

.tn-chip { border-radius: 2px; font-weight: 700; }

.tn-chip.active {
    background: var(--tn-red);
    border-color: var(--tn-red);
}

.tn-pagination a,
.tn-pagination span { border-radius: 2px; }

.tn-pagination .active {
    background: var(--tn-red);
    border-color: var(--tn-red);
}

.tn-article-body {
    font-size: 17px;
    line-height: 1.84;
    letter-spacing: -0.015em;
    color: #262626;
}

.tn-footer {
    border-top: 3px solid var(--tn-ink);
    background: #f7f7f7;
    color: var(--tn-ink-soft);
    font-size: 12.5px;
}

.tn-footer a { color: var(--tn-ink-soft); }
.tn-footer a:hover { color: var(--tn-red); }

@media (max-width: 768px) {
    .tn-overlay-content h2,
    .tn-overlay-content h3 { font-size: 20px; }

    .tn-nav a { padding: 12px 11px; font-size: 15px; }

    .tn-section-title h2,
    .tn-section-title h3 { font-size: 17.5px; }
}
