/* ntte child (보험인) — theme.css
 * infosender 의 네이버 뉴스풍 정보형 레이아웃 구조를 그대로 쓰되 브랜드 톤은 보험 상담
 * 신뢰형으로 조정. 토큰·화면 스펙은 doc/design.md.
 * 본문 내부(.entry-content, .click-button, .main-content)는 content.css,
 * 상담 전환 컴포넌트(.ntte-fab / .ntte-cta / .ntte-slideup 등)는 consult.css 담당.
 */

:root {
	--ntte-bg: #ffffff;
	--ntte-bg-subtle: #f6f8fa;
	--ntte-surface: #ffffff;
	--ntte-text: #17202a;
	--ntte-text-sub: #5b6570;
	--ntte-text-mute: #6b7280;
	--ntte-border: #e6e8eb;
	--ntte-border-soft: #f0f1f3;

	/* 정보·링크·활성 탭 — 딥 네이비틸. 흰 배경 대비 > 7:1 */
	--ntte-accent: #0b4f6c;
	--ntte-accent-ink: #083a50;      /* hover */
	--ntte-accent-btn: #0b4f6c;      /* .click-button 흰 글씨 배경 (content.css 계약) */
	--ntte-accent-wash: #e4eef2;     /* accent 연한 배경 — 뱃지·본문 H2 박스·CTA 블록 */

	/* 상담 "행동" 색 — accent 와 의도적으로 분리(그린). 방문자가 '상담 버튼'을 색으로 구분 */
	--ntte-cta: #1f7a3d;
	--ntte-cta-ink: #175e2f;         /* hover */

	/* 카카오톡 버튼 — 카카오 디자인 가이드 고정색 */
	--ntte-kakao: #fee500;
	--ntte-kakao-ink: #191600;

	--ntte-radius: 8px;
	--ntte-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	--ntte-wrap: 1200px;
	--ntte-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif;
}

/* ── 베이스 ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ntte {
	background: var(--ntte-bg-subtle);
	color: var(--ntte-text);
	font-family: var(--ntte-font);
	-webkit-font-smoothing: antialiased;
}
.ntte a { color: var(--ntte-accent); text-decoration: none; }
.ntte a:hover { color: var(--ntte-accent-ink); }

.ntte-wrap {
	max-width: var(--ntte-wrap);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.ntte-shell { min-height: 40vh; }

.ntte-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.ntte-skip:focus { left: 12px; top: 12px; }

/* ── 사이트 헤더 ────────────────────────────────────────────────── */
.ntte-site-header {
	background: var(--ntte-surface);
	border-bottom: 1px solid var(--ntte-border);
}
.ntte-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.ntte-brand {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}
.ntte-brand__name {
	font-size: 25px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--ntte-text);
	white-space: nowrap;
}
.ntte-brand__name:hover { color: var(--ntte-text); }
.ntte-brand .custom-logo-link { display: inline-flex; }
.ntte-brand__tagline {
	font-size: 13px;
	color: var(--ntte-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ntte-site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.ntte-subscribe {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ntte-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: var(--ntte-radius);
}
.ntte-subscribe:hover { background: var(--ntte-accent-ink); color: #fff; }

/* 헤더 "무료 상담" CTA 버튼 (상담 행동 = 그린) */
.ntte-consult-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ntte-cta);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: var(--ntte-radius);
	white-space: nowrap;
}
.ntte-consult-btn:hover { background: var(--ntte-cta-ink); color: #fff; }
.ntte-consult-btn svg { flex-shrink: 0; }

/* 모바일 메뉴 토글 (nav.js) */
.ntte-nav-toggle__btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--ntte-radius);
	color: var(--ntte-text);
	cursor: pointer;
}

/* 카테고리 탭 */
.ntte-site-header__nav { border-top: 1px solid var(--ntte-border-soft); }
.ntte-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ntte-tabs__list a,
.ntte-tabs__item a {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: var(--ntte-text-sub);
	padding: 14px 2px;
	border-bottom: 2px solid transparent;
}
.ntte-tabs__list a:hover { color: var(--ntte-text); }
.ntte-tabs__item.is-active a,
.ntte-tabs__list .current-menu-item a {
	color: var(--ntte-text);
	font-weight: 700;
	border-bottom-color: var(--ntte-accent);
}

/* ── 섹션 헤더 (공통) ───────────────────────────────────────────── */
.ntte-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.ntte-section-head__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 19px;
	font-weight: 900;
	color: var(--ntte-text);
	margin: 0;
}
.ntte-tick {
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--ntte-accent);
	flex-shrink: 0;
}
.ntte-tick--dark { background: var(--ntte-text); height: 18px; }
.ntte-section-head__more { font-size: 13px; color: var(--ntte-text-sub); }

/* ── 뱃지 ──────────────────────────────────────────────────────── */
.ntte-badge {
	display: inline-flex;
	align-self: flex-start;
	background: var(--ntte-accent-wash);
	color: var(--ntte-accent);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 5px;
}
.ntte-badge--sm { font-size: 11px; padding: 3px 8px; border-radius: 4px; }

/* ── 카드 ──────────────────────────────────────────────────────── */
.ntte-card { min-width: 0; }
.ntte-card__link { display: flex; gap: 16px; color: inherit; min-width: 0; }
.ntte-card__link:hover { color: inherit; }
.ntte-card__link:hover .ntte-card__title { color: var(--ntte-accent); }
.ntte-card__thumb {
	flex-shrink: 0;
	width: 132px;
	height: 88px;
	border-radius: var(--ntte-radius);
	overflow: hidden;
	background: #e9edf3;
	display: block;
}
.ntte-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntte-thumb-ph {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b7bfcc;
}
.ntte-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ntte-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ntte-text);
	word-break: keep-all;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ntte-card__meta { font-size: 12px; color: var(--ntte-text-sub); }

/* 세로 스택 카드 (썸네일 위, 제목 아래) */
.ntte-card--stack .ntte-card__link { flex-direction: column; gap: 10px; }
.ntte-card--stack .ntte-card__thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ntte-card--stack .ntte-card__title { font-size: 15px; }
.ntte-card--sm .ntte-card__title { font-size: 13px; }

/* ── 카드 그리드 ────────────────────────────────────────────────── */
.ntte-cardgrid { display: grid; gap: 20px 28px; }
.ntte-cardgrid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ntte-cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── 광고 슬롯 자리 (실제 코드 없을 때 자리표시는 안 함; 있을 때 여백만) ── */
.ntte-front > .ntte-adslot,
.ntte-single__main > .ntte-adslot { margin: 28px 0; }

/* ── 메인 ──────────────────────────────────────────────────────── */
.ntte-front { padding-top: 32px; padding-bottom: 64px; }

.ntte-headline {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--ntte-border);
	margin-bottom: 32px;
}
.ntte-headline__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
.ntte-headline__list { list-style: none; margin: 0; padding: 0; }
.ntte-headline__list li { border-bottom: 1px solid var(--ntte-border-soft); }
.ntte-headline__list li:last-child { border-bottom: 0; }
.ntte-headline__list a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 16px 0;
	color: inherit;
	min-width: 0;
}
.ntte-headline__list a:hover .ntte-headline__title { color: var(--ntte-accent); }
.ntte-headline__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ntte-text);
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.ntte-headline__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-content: start;
}

.ntte-catsec { padding: 8px 0 32px; }
.ntte-catsec + .ntte-catsec { border-top: 1px solid var(--ntte-border); padding-top: 24px; }

/* ── 글 상세 ───────────────────────────────────────────────────── */
.ntte-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 44px;
	align-items: start;
	padding-top: 28px;
	padding-bottom: 64px;
}
.ntte-crumb { font-size: 12px; color: var(--ntte-text-mute); margin-bottom: 14px; }
.ntte-crumb a { color: var(--ntte-text-mute); }
.ntte-crumb a:hover { color: var(--ntte-accent); }

.ntte-single__main { min-width: 0; }
.ntte-single__head { padding-bottom: 16px; border-bottom: 1px solid var(--ntte-border); }
.ntte-single__title {
	font-size: 30px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--ntte-text);
	margin: 12px 0 14px;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.entry-content { min-width: 0; overflow-wrap: anywhere; }
.ntte-single__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--ntte-text-sub);
}
.ntte-single__meta a { color: var(--ntte-text-sub); }
.ntte-single__meta a:hover { color: var(--ntte-accent); }
.ntte-dot { width: 3px; height: 3px; border-radius: 50%; background: #cfd4db; }

/* 툴바 */
.ntte-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ntte-border);
}
.ntte-toolbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ntte-surface);
	border: 1px solid #e0e2e6;
	border-radius: 7px;
	padding: 7px 12px;
	font-size: 13px;
	font-family: inherit;
	color: #4a4f57;
	cursor: pointer;
}
.ntte-toolbar__btn:hover { border-color: var(--ntte-accent); color: var(--ntte-accent); }
.ntte-toolbar__btn.is-active { background: var(--ntte-accent-wash); border-color: var(--ntte-accent); color: var(--ntte-accent); }

.ntte-single__figure { margin: 0 0 22px; }
.ntte-single__figure img { width: 100%; height: auto; border-radius: var(--ntte-radius); display: block; }

/* 목차 (라벨을 눌러 접기/펼치기) */
.ntte-toc {
	margin-bottom: 24px;
	padding: 16px 20px;
	background: var(--ntte-surface);
	border: 1px solid var(--ntte-border);
	border-radius: var(--ntte-radius);
}
.ntte-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	font: inherit;
	color: var(--ntte-text);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}
/* 부모 테마(GeneratePress)가 button / button:hover 에 어두운 배경을 주므로 눌러둔다 */
.ntte-toc__toggle,
.ntte-toc__toggle:hover,
.ntte-toc__toggle:focus,
.ntte-toc__toggle:active {
	background: transparent;
	color: var(--ntte-text);
}
.ntte-toc__toggle:focus { outline: none; }
.ntte-toc__toggle:focus-visible {
	outline: 2px solid var(--ntte-accent);
	outline-offset: 3px;
	border-radius: 3px;
}
.ntte-toc__label { font-size: 13px; font-weight: 700; color: var(--ntte-text); }
.ntte-toc__chevron { flex-shrink: 0; color: var(--ntte-text-mute); transition: transform 0.2s ease; }
.ntte-toc__toggle:hover .ntte-toc__label,
.ntte-toc__toggle:hover .ntte-toc__chevron { color: var(--ntte-accent); }
.ntte-toc__toggle[aria-expanded="false"] .ntte-toc__chevron { transform: rotate(-90deg); }
.ntte-toc__list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.ntte-toc__toggle[aria-expanded="false"] + .ntte-toc__list { display: none; }
.ntte-toc__item a { font-size: 14px; color: #4a4f57; }
.ntte-toc__item a:hover { color: var(--ntte-accent); }
.ntte-toc__item--l3 { padding-left: 14px; }
.ntte-toc__item.is-active a { color: var(--ntte-accent); font-weight: 700; }

/* 본문 글자 크기 토글 상태 (article.js가 body/컨테이너 클래스 토글) */
.ntte-single__body.ntte-fs-lg .entry-content { font-size: 18px; }
.ntte-single__body.ntte-fs-lg .entry-content p { font-size: 18px; }
.ntte-single__body.ntte-fs-xl .entry-content { font-size: 20px; }
.ntte-single__body.ntte-fs-xl .entry-content p { font-size: 20px; }

/* 관련 글 */
.ntte-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ntte-border); }
.ntte-related__title { font-size: 17px; font-weight: 900; color: var(--ntte-text); margin: 0 0 16px; }

/* ── 사이드바 위젯 ─────────────────────────────────────────────── */
.ntte-single__aside { min-width: 0; }
.ntte-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 24px; }
.ntte-widget {
	background: var(--ntte-surface);
	border: 1px solid var(--ntte-border);
	border-radius: var(--ntte-radius);
	padding: 20px;
}
.ntte-widget__title { font-size: 15px; font-weight: 900; color: var(--ntte-text); margin: 0 0 14px; }
.ntte-rank__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ntte-rank__item { display: flex; gap: 12px; align-items: flex-start; }
.ntte-rank__num {
	font-size: 15px;
	font-weight: 900;
	color: var(--ntte-text-mute);
	width: 16px;
	flex-shrink: 0;
	text-align: center;
}
.ntte-rank__num.is-top { color: var(--ntte-accent); }
.ntte-rank__title {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ntte-text);
}
.ntte-rank__title:hover { color: var(--ntte-accent); }
.ntte-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ntte .ntte-chip {
	font-size: 13px;
	color: #3f454d;
	background: #eef0f3;
	padding: 6px 12px;
	border-radius: 999px;
}
.ntte .ntte-chip:hover { background: var(--ntte-accent-wash); color: var(--ntte-accent); }

/* ── 아카이브 ──────────────────────────────────────────────────── */
/* ── 고정 페이지 ───────────────────────────────────────────────── */
.ntte-page { padding-top: 32px; padding-bottom: 64px; }
.ntte-page--elementor { padding: 0; }
.ntte-page__title { font-size: 26px; font-weight: 900; color: var(--ntte-text); margin: 0 0 20px; }

.ntte-archive { padding-top: 28px; padding-bottom: 64px; }
.ntte-archive__head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ntte-border); }
.ntte-archive__title { font-size: 24px; font-weight: 900; color: var(--ntte-text); margin: 0; }
.ntte-archive__desc { margin-top: 10px; font-size: 14px; color: var(--ntte-text-sub); line-height: 1.6; }
.ntte-empty { color: var(--ntte-text-sub); padding: 40px 0; }

.ntte .pagination,
.ntte-archive .navigation { margin-top: 48px; }
.ntte .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ntte .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--ntte-border);
	border-radius: var(--ntte-radius);
	background: var(--ntte-surface);
	font-size: 14px;
	color: var(--ntte-text-sub);
}
.ntte .page-numbers.current { background: var(--ntte-accent); border-color: var(--ntte-accent); color: #fff; }
.ntte a.page-numbers:hover { border-color: var(--ntte-accent); color: var(--ntte-accent); }

/* ── 푸터 ──────────────────────────────────────────────────────── */
.ntte-site-footer { border-top: 1px solid var(--ntte-border); background: var(--ntte-surface); }
.ntte-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 28px;
	padding-bottom: 28px;
	flex-wrap: wrap;
}
.ntte-site-footer__name { font-size: 13px; font-weight: 700; color: var(--ntte-text); }
.ntte-site-footer__meta { font-size: 12px; color: var(--ntte-text-mute); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ntte-site-footer__reg { color: var(--ntte-text-mute); }
.ntte-site-footer__links a { color: var(--ntte-text-mute); }
.ntte-site-footer__links a:hover { color: var(--ntte-accent); }

/* ── 토스트 (article.js) ───────────────────────────────────────── */
.ntte-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%) translateY(8px);
	background: #1a1a1a;
	color: #fff;
	font-size: 13px;
	padding: 10px 18px;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s, transform 0.18s;
	z-index: 200;
}
.ntte-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 인쇄 */
@media print {
	.ntte-site-header, .ntte-site-footer, .ntte-single__aside,
	.ntte-toolbar, .ntte-related, .ntte-toc, .ntte-crumb { display: none !important; }
	.ntte-single { display: block; padding: 0; }
	body.ntte { background: #fff; }
}

/* ── 반응형 ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ntte-single { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ntte-sticky { position: static; }
}

@media (max-width: 768px) {
	.ntte-wrap { padding-left: 16px; padding-right: 16px; }

	.ntte-brand__tagline { display: none; }
	.ntte-subscribe span { display: none; }
	.ntte-subscribe { padding: 9px 11px; }
	/* 모바일: "무료 상담" 텍스트는 숨기고 아이콘만 (하단 플로팅 FAB 가 상담 CTA 를 크게 노출) */
	.ntte-consult-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.ntte-consult-btn { padding: 9px 11px; }
	.ntte-site-header__actions { min-width: 0; gap: 8px; }
	.ntte-nav-toggle__btn { display: inline-flex; }

	.ntte-site-header__nav {
		display: none;
		border-top: 1px solid var(--ntte-border-soft);
	}
	body.ntte-nav-open .ntte-site-header__nav { display: block; }
	body.ntte-nav-open .ntte-nav-toggle__btn { color: var(--ntte-accent); }
	.ntte-tabs__list { flex-direction: column; gap: 0; padding: 6px 0; }
	.ntte-tabs__list a,
	.ntte-tabs__item a { padding: 11px 2px; border-bottom: 1px solid var(--ntte-border-soft); }

	.ntte-headline__grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.ntte-headline__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
	.ntte-cardgrid--row { grid-template-columns: minmax(0, 1fr); }
	.ntte-cardgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ntte-card__thumb { width: 108px; height: 74px; }

	.ntte-single__title { font-size: 24px; }
	.ntte-toolbar__btn span { display: none; }
	.ntte-toolbar__btn { padding: 8px 10px; }
}

