﻿/* ══════════════════════════════════════════════════════════════════════════
   Stock News Page (SNP · Toss 톤)
   ─────────────────────────────────────────────────────────────────────────
   - 다크(기본) · 라이트 (data-theme="light") 이중 세팅
   - _shared.css 컬러 토큰 없어도 자립하도록 자체 변수 정의 (fallback 안정)
   - mobile-first · 폭 제한 없음 (화면 꽉 채움) · 앱 웹뷰 전용
   - 컴포넌트 접두어: .snp-*
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 토큰 (다크 기본) ─── */
:root {
    --snp-bg:            #0d0d0d;
    --snp-elev:          #17171C;         /* 헤더/탭 배경 · 살짝 밝은 톤 */
    --snp-border:        #22222A;
    --snp-border-soft:   #191920;
    --snp-divider:       #33333D;         /* 카드 구분선 · bg(#0d0d0d) 대비 확보 */
    --snp-text:          #E9ECEF;
    --snp-text-soft:     #C6CDD5;
    --snp-text-muted:    #8B95A1;
    --snp-text-mute-2:   #6B7480;
    --snp-accent:        #EF4444;         /* 증시동향 메인 red */
    --snp-accent-soft:   #2A1618;
    --snp-hot:           #F65E67;
    --snp-hover:         #1E1E24;
    --snp-shadow:        0 6px 24px rgba(0,0,0,0.4);
    --snp-fade-veil:     rgba(13,13,13,0.72);
}

/* ─── 라이트 오버라이드 ─── */
[data-theme="light"] {
    --snp-bg:            #FFFFFF;
    --snp-elev:          #FFFFFF;
    --snp-border:        #EEF0F3;
    --snp-border-soft:   #F5F6F8;
    --snp-divider:       #DCE0E6;         /* 카드 구분선 · 흰 배경 대비 확보 */
    --snp-text:          #191F28;
    --snp-text-soft:     #333D4B;
    --snp-text-muted:    #6B7684;
    --snp-text-mute-2:   #8B95A1;
    --snp-accent:        #FA4646;
    --snp-accent-soft:   #FEECEC;
    --snp-hot:           #FA4646;
    --snp-hover:         #F5F7FA;
    --snp-shadow:        0 6px 24px rgba(23, 41, 64, 0.10);
    --snp-fade-veil:     rgba(255,255,255,0.85);
}

/* ─── 리셋 (페이지 스코프) ─── */
html, body {
    margin: 0;
    padding: 0;
    background: var(--snp-bg);
    color: var(--snp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
    overscroll-behavior-y: contain;
}
* { box-sizing: border-box; }
button {
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
}
a { color: inherit; text-decoration: none; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   페이지 컨테이너
   ══════════════════════════════════════════════════════════════════════════ */
/* 폭 제한 없음 · 화면 비율과 무관하게 꽉 채운다 (태블릿에서 640px 로 쪼그라들던 문제) */
.snp-page {
    position: relative;
    min-height: 100dvh;
    background: var(--snp-bg);
    padding-bottom: 24px;
}

/* 아이콘 버튼 (상세 오버레이 헤더에서 사용) */
.snp-icon-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    color: var(--snp-text-soft);
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.snp-icon-btn:hover { background: var(--snp-hover); color: var(--snp-text); }
.snp-icon-btn:active { transform: scale(0.92); }

/* ══════════════════════════════════════════════════════════════════════════
   1. 탭바 (전체 · 뉴스 · 공시 · 리포트) · pill 슬라이딩 인디케이터
   ══════════════════════════════════════════════════════════════════════════ */
.snp-tabs {
    position: sticky;
    top: 0;
    z-index: 39;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 12px;
    background: var(--snp-bg);
    border-bottom: 1px solid var(--snp-border-soft);
    position: sticky;   /* 위와 중복 · 유지 */
}
.snp-tab {
    position: relative;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--snp-text-muted);
    letter-spacing: -0.01em;
    text-align: center;
    transition: color 0.2s ease;
}
.snp-tab:hover { color: var(--snp-text-soft); }
.snp-tab.active { color: var(--snp-text); font-weight: 700; }

/* 슬라이딩 인디케이터 · 활성 탭 칸 전체를 채우는 밑줄
   ⚠️ .snp-tabs 는 좌우 12px 패딩 + 4등분 그리드인데 ·
      절대위치의 %는 "패딩박스" 기준이라 width:25% / left:0 으로 잡으면
      실제 탭 1칸 폭((W-24)/4) 보다 넓어 · 탭마다 어긋남이 누적된다.
      → left 를 패딩만큼 밀고 · 폭을 탭 1칸으로 정확히 계산한다.
      이러면 translateX(N*100%) 가 정확히 N번째 탭 위치와 일치. */
.snp-tab-indicator {
    position: absolute;
    left: 12px;                              /* .snp-tabs 좌측 패딩 */
    bottom: 0;
    width: calc((100% - 24px) / 4);          /* 탭 1칸 폭 (좌우 패딩 12px 제외) */
    height: 3px;
    background: var(--snp-accent);
    border-radius: 3px 3px 0 0;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.24, 1);
    pointer-events: none;
}
/* JS 안 붙어도 · 초기 active 위치 반영을 위해 :has 폴백 */
.snp-tabs:has(.snp-tab:nth-child(1).active) .snp-tab-indicator { transform: translateX(0%); }
.snp-tabs:has(.snp-tab:nth-child(2).active) .snp-tab-indicator { transform: translateX(100%); }
.snp-tabs:has(.snp-tab:nth-child(3).active) .snp-tab-indicator { transform: translateX(200%); }
.snp-tabs:has(.snp-tab:nth-child(4).active) .snp-tab-indicator { transform: translateX(300%); }

/* ══════════════════════════════════════════════════════════════════════════
   2. 서브필터 · 매체 chip 스크롤 (뉴스 탭일 때만 노출)
   ══════════════════════════════════════════════════════════════════════════ */
.snp-subfilter {
    display: flex;
    gap: 8px;
    padding: 10px 12px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    background: var(--snp-bg);
    border-bottom: 1px solid var(--snp-border-soft);
}
.snp-subfilter[hidden] { display: none; }
.snp-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--snp-text-muted);
    background: transparent;
    border: 1px solid var(--snp-border);
    border-radius: 999px;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.snp-chip:hover { color: var(--snp-text-soft); background: var(--snp-hover); }
.snp-chip.active {
    color: #FFFFFF;
    background: var(--snp-accent);
    border-color: var(--snp-accent);
}

/* ══════════════════════════════════════════════════════════════════════════
   3. 본문 · 시간 그룹 헤더 + 카드 리스트
   ══════════════════════════════════════════════════════════════════════════ */
.snp-body {
    position: relative;
    padding: 8px 0 32px;
}
.snp-list { display: flex; flex-direction: column; }
.snp-list:empty { display: none; }

/* 시간 그룹 헤더 · 배경 없음 · 심플 텍스트 (뉴스룸과 동일 스타일) */
.snp-group-header {
    margin: 20px 20px 10px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    align-items: baseline;
    gap: 0;
}
.snp-group-header-rel {
    color: var(--snp-text);
    margin-right: 2px;
}
.snp-group-header-abs {
    color: var(--snp-text-mute-2);
    font-weight: 600;
}

/* ─── 카드 · 리스트 스타일 · 배경 없음 · hairline 구분선 ─── */
.snp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 20px;
    cursor: pointer;
    /* 구분선 · hairline 이면 다크에서 거의 안 보여 · 전용 토큰 + 1.5px 로 대비 확보 */
    border-bottom: 1.5px solid var(--snp-divider);
    transition: background 0.12s ease;
    animation: snpFadeUp 0.32s ease both;
}
.snp-card:hover { background: var(--snp-hover); }
.snp-card:active { background: var(--snp-hover); transform: scale(0.996); }
@keyframes snpFadeUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 새 뉴스 도착 · silent refresh 삽입 시 슬라이드-인 */
.snp-card.is-new {
    animation: snpSlideDown 0.4s cubic-bezier(0.32, 0.72, 0.24, 1) both;
}
@keyframes snpSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 카드 상단 · 발행사 (favicon + name) + 시간 · 우측 */
.snp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--snp-text-muted);
    font-weight: 500;
}
.snp-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 60%;
}
.snp-source-name {
    color: var(--snp-text-soft);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 카드 종류별 뱃지 · 공시·리포트·네이버 */
.snp-kind {
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    flex: 0 0 auto;
}
.snp-kind.snp-kind-announce { background: rgba(79, 155, 255, 0.14); color: #4F9BFF; }
.snp-kind.snp-kind-report   { background: rgba(139, 92, 246, 0.14); color: #A48BF6; }
.snp-kind.snp-kind-naver    { background: rgba(0, 199, 60, 0.14);   color: #22C55E; }
[data-theme="light"] .snp-kind.snp-kind-announce { background: #E7F1FF; color: #1F6FEB; }
[data-theme="light"] .snp-kind.snp-kind-report   { background: #F1EBFE; color: #7C3AED; }
[data-theme="light"] .snp-kind.snp-kind-naver    { background: #E3F5EA; color: #0E9F4B; }

/* 우측 시간 · flex 로 우측 정렬 */
.snp-card-meta-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--snp-text-mute-2);
    font-size: 11.5px;
    white-space: nowrap;
    flex: 0 0 auto;
}
/* HOT 닷 (60분 이내) */
.snp-card.is-hot .snp-hot-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--snp-hot);
    box-shadow: 0 0 0 3px rgba(246, 94, 103, 0.14);
    animation: snpPulse 1.4s ease-in-out infinite;
}
@keyframes snpPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(246, 94, 103, 0.14); }
    50%      { box-shadow: 0 0 0 6px rgba(246, 94, 103, 0.02); }
}
.snp-card:not(.is-hot) .snp-hot-dot { display: none; }
.snp-card.is-hot .snp-time { color: var(--snp-hot); font-weight: 700; }

/* 카드 제목 · 최대 2줄 clamp */
.snp-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--snp-text);
    line-height: 1.4;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* 읽음 처리 · 클릭한 카드 살짝 흐리게 (JS 로 클래스 추가) */
.snp-card.is-read .snp-card-title { color: var(--snp-text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   상태 · 스켈레톤 / 빈 / 에러 / 로드모어
   ══════════════════════════════════════════════════════════════════════════ */
.snp-skeleton {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}
.snp-skeleton-card {
    padding: 15px 20px;
    border-bottom: 1.5px solid var(--snp-divider);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.snp-skel-line {
    height: 12px;
    background: linear-gradient(90deg, var(--snp-border) 25%, var(--snp-hover) 50%, var(--snp-border) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: snpShimmer 1.4s ease-in-out infinite;
}
.snp-skel-line.short { width: 30%; }
.snp-skel-line.long  { width: 92%; height: 16px; }
.snp-skel-line.med   { width: 68%; height: 16px; }
@keyframes snpShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.snp-empty, .snp-error {
    padding: 80px 24px;
    text-align: center;
    color: var(--snp-text-muted);
}
.snp-empty[hidden], .snp-error[hidden] { display: none; }
.snp-empty-icon, .snp-error-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.85;
}
.snp-empty-text, .snp-error-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--snp-text-soft);
    margin-bottom: 4px;
}
.snp-empty-sub {
    font-size: 12.5px;
    color: var(--snp-text-muted);
}
.snp-retry {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--snp-accent);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, transform 0.08s ease;
}
.snp-retry:hover  { background: color-mix(in oklab, var(--snp-accent) 88%, #000); }
.snp-retry:active { transform: scale(0.96); }

.snp-loadmore {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 20px 0 24px;
    color: var(--snp-text-muted);
    font-size: 12.5px;
    font-weight: 500;
}
.snp-loadmore[hidden] { display: none; }
.snp-spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--snp-border);
    border-top-color: var(--snp-accent);
    border-radius: 50%;
    animation: snpSpin 0.8s linear infinite;
}
@keyframes snpSpin {
    to { transform: rotate(360deg); }
}
.snp-sentinel { height: 1px; }

/* ══════════════════════════════════════════════════════════════════════════
   4. FAB · 맨위로 (스크롤 시 페이드인)
   ══════════════════════════════════════════════════════════════════════════ */
.snp-fab {
    position: fixed;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--snp-elev);
    color: var(--snp-text-soft);
    border: 1px solid var(--snp-border);
    border-radius: 50%;
    box-shadow: var(--snp-shadow);
    z-index: 30;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.snp-fab.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.snp-fab:hover  { background: var(--snp-hover); color: var(--snp-text); }
.snp-fab:active { transform: scale(0.94); }

/* ══════════════════════════════════════════════════════════════════════════
   5. 상세 오버레이 · 슬라이드 인
   ══════════════════════════════════════════════════════════════════════════ */
.snp-detail {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--snp-bg);
    display: flex;
    flex-direction: column;
    animation: snpSlideInRight 0.28s cubic-bezier(0.32, 0.72, 0.24, 1) both;
}
.snp-detail[hidden] { display: none; }
@keyframes snpSlideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
.snp-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--snp-border-soft);
    background: var(--snp-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}
.snp-detail-back {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--snp-text-soft);
    border-radius: 999px;
    transition: background 0.15s ease;
}
.snp-detail-back:hover { background: var(--snp-hover); color: var(--snp-text); }
.snp-detail-source-mini {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--snp-text-soft);
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.snp-detail-actions { display: flex; gap: 2px; }

/* 상세 본문 · 스크롤 영역 · 목록과 동일하게 폭 제한 없음 */
.snp-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 60px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.snp-detail-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 80px 0;
    color: var(--snp-text-muted);
    font-size: 13px;
}

/* 상세 · 제목 */
.snp-detail-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--snp-text);
    margin-bottom: 12px;
    text-wrap: balance;
}
/* 상세 · 메타 (발행사 favicon + 이름 · 시간 · 읽는 시간) */
.snp-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--snp-border-soft);
    font-size: 12.5px;
    color: var(--snp-text-muted);
    flex-wrap: wrap;
}
.snp-detail-meta .snp-detail-meta .snp-source-name { font-size: 13px; }
.snp-detail-meta-sep {
    color: var(--snp-text-mute-2);
    margin: 0 2px;
}

/* 상세 · 본문 콘텐츠 (뉴스 서버에서 온 HTML · sanitize 이후) */
.snp-detail-content {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--snp-text-soft);
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.snp-detail-content p { margin: 0 0 14px; }
.snp-detail-content img,
.snp-detail-content figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
}
.snp-detail-content figure { margin: 20px 0; text-align: center; }
.snp-detail-content figcaption {
    font-size: 12px;
    color: var(--snp-text-muted);
    margin-top: 6px;
    text-align: center;
}
.snp-detail-content a {
    color: var(--snp-accent);
    text-decoration: none;
}
.snp-detail-content a:hover { text-decoration: underline; }
.snp-detail-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--snp-border);
    background: var(--snp-elev);
    border-radius: 0 6px 6px 0;
    color: var(--snp-text-muted);
    font-size: 14.5px;
}
.snp-detail-content table {
    border-collapse: collapse;
    margin: 16px 0;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
.snp-detail-content th, .snp-detail-content td {
    padding: 8px 12px;
    border: 1px solid var(--snp-border);
    font-size: 13.5px;
}

/* 관련 종목 chip · 본문 언급된 종목 */
.snp-related-stocks {
    margin: 24px 0 16px;
    padding: 16px;
    background: var(--snp-elev);
    border: 1px solid var(--snp-border-soft);
    border-radius: 12px;
}
.snp-related-stocks-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--snp-text-muted);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.snp-related-stocks-list { display: flex; flex-wrap: wrap; gap: 6px; }
.snp-related-stock {
    padding: 5px 10px;
    background: var(--snp-bg);
    border: 1px solid var(--snp-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--snp-text-soft);
    transition: background 0.15s ease, color 0.15s ease;
}
.snp-related-stock:hover { background: var(--snp-accent-soft); color: var(--snp-accent); }

/* 이 종목의 다른 뉴스 */
.snp-detail-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--snp-border-soft);
}
.snp-detail-related-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--snp-text);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}
.snp-detail-related-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.snp-detail-related-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--snp-border-soft);
    cursor: pointer;
}
.snp-detail-related-item:last-child { border-bottom: 0; }

/* 상세 · 하단 · 원문 링크 */
.snp-detail-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, var(--snp-bg) 30%);
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0));
    display: flex;
    justify-content: center;
}
.snp-detail-footer[hidden] { display: none !important; }
.snp-detail-original {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--snp-elev);
    border: 1px solid var(--snp-border);
    border-radius: 999px;
    color: var(--snp-text-soft);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, color 0.15s ease;
}
.snp-detail-original:hover {
    background: var(--snp-hover);
    color: var(--snp-text);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   6. 새 뉴스 토스트 (silent refresh)
   ══════════════════════════════════════════════════════════════════════════ */
.snp-toast {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--snp-accent);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
    animation: snpToastIn 0.28s ease both;
    pointer-events: none;
}
.snp-toast[hidden] { display: none; }
.snp-toast-dot {
    width: 6px; height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
}
@keyframes snpToastIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   7. 네이버 오픈 API 고지 (MobileNewsInfo 전용 · 기존 BindNaverNotice 이관)
      web_renewal 원본에는 없는 블록 · 출처표기 의무 때문에 유지한다.
   ══════════════════════════════════════════════════════════════════════════ */
.snp-openapi-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 20px 8px;
    color: var(--snp-text-mute-2);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.snp-openapi-notice[hidden] { display: none; }
.snp-openapi-notice img { height: 14px; width: auto; opacity: 0.75; }
