/* 청색경제뉴스 스킨
 *
 * blueconomy.co.kr 의 지면 성격을 새 플랫폼에서 재현한다. 원본의 CSS·마크업을
 * 가져온 것이 아니라, 실측한 값을 기준으로 우리 컴포넌트(.tn-*)에 다시 입혔다.
 *
 * 실측 기준
 *   주조색 #33b2f7 (밝은 하늘색)   본문 #1e1e1e   보조 #777 / #aeaeae
 *   본문 폭 1120px                 Apple SD Gothic Neo 계열
 *
 * 적용: 해당 사이트 설정에서 theme_skin = blueconomy
 */

:root,
body {
    --tn-red: #33b2f7;
    --tn-red-dark: #1b93d6;
    --tn-line: #e6e6e6;
    --tn-ink: #1e1e1e;
    --tn-ink-soft: #777;
    --tn-ink-faint: #aeaeae;
}

body {
    background: #fff;
    color: var(--tn-ink);
    font-family: "Apple SD Gothic Neo", "Helvetica Neue", Roboto, "Noto Sans KR",
                 "Malgun Gothic", dotum, Arial, sans-serif;
    letter-spacing: -0.02em;
}

/* 원본은 본문 폭이 좁고 여백이 넉넉하다. */
.tn-container {
    max-width: 1120px;
}

.tn-topbar {
    background: #fafafa;
    border-bottom: 1px solid var(--tn-line);
    font-size: 12.5px;
    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: 2px solid var(--tn-red);
    box-shadow: none;
}

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

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

/* 메뉴 — 항목 수가 적어(전체·청색경제·ESG·오피니언·커뮤니티) 넉넉하게 벌린다 */
.tn-nav a {
    position: relative;
    padding: 16px 20px;
    color: var(--tn-ink);
    font-size: 16.5px;
    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: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    background: var(--tn-red);
}

.tn-section-title h2,
.tn-section-title h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--tn-ink);
}

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

/* 카드는 둥근 모서리를 조금 남긴다 — 원본이 데일리뉴스보다 부드럽다. */
.tn-card {
    border-radius: 6px;
    border-color: var(--tn-line);
    box-shadow: none;
}

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

.tn-card h3,
.tn-card h4,
.tn-rank-title,
.tn-title-lines {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.45;
    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: 12.5px;
}

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

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

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

/* 밝은 하늘색 위에서는 흰 글씨가 읽기 어려워 진한 글씨를 쓴다. */
.tn-kicker {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--tn-red);
    color: #06344c;
    font-size: 12px;
    font-weight: 800;
}

.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-dark);
    font-size: 19px;
    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: 4px;
    background: var(--tn-red);
    color: #06344c;
}

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

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

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

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

.tn-article-body {
    font-size: 17.5px;
    line-height: 1.85;
    letter-spacing: -0.02em;
    color: #232323;
}

.tn-footer {
    border-top: 2px solid var(--tn-red);
    background: #fafafa;
    color: var(--tn-ink-soft);
    font-size: 13px;
}

.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 12px; font-size: 15px; }

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