/* ==========================================================
   Infobiz News — 메인 화면 스타일
   색을 바꾸려면 아래 --ib-brand 값만 바꾸면 됩니다.
   ========================================================== */

html:root {
	--ib-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	--ib-ink: #1B2233;      /* 본문 글자 (남색 기운의 먹색) */
	--ib-sub: #4A5468;      /* 요약문 */
	--ib-mute: #7A8499;     /* 시각, 보조 정보 */
	--ib-line: #E1E5EC;     /* 구분선 */
	--ib-surface: #F3F5F8;  /* 이미지 없는 칸 배경 */
	--ib-brand: #1F4FD8;    /* 메인 색 (코발트 블루) */
	--ib-signal: #F5A300;   /* 속보 신호 (앰버) */

	--global-body-font-family: var(--ib-font);
	--global-heading-font-family: var(--ib-font);
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ib-font);
}

body {
	word-break: keep-all;          /* 한글 단어가 줄 끝에서 쪼개지지 않게 */
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

/* 메인 화면 배경은 흰색 */
body.ib-news,
body.ib-news #wrapper,
body.ib-news #inner-wrap {
	background: #fff;
}

/* ---------- 레이아웃 틀 ---------- */
.ib-home {
	/* Kadence 헤더와 같은 폭·여백을 써서 로고와 본문 왼쪽 줄을 맞춤 */
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 0 var(--global-content-edge-padding, 1.5rem) 72px;
	color: var(--ib-ink);
}

/* 헤더와 속보 줄 사이 구분선 */
body.ib-news #masthead {
	border-bottom: 1px solid var(--ib-line);
}

.ib-home a,
.ib-page a {
	color: inherit;
	text-decoration: none;
}

.ib-home h2 a:hover,
.ib-home h3 a:hover,
.ib-sec__list a:hover,
.ib-rank__list a:hover .ib-rank__title,
.ib-ticker__list a:hover,
.ib-author__more:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ib-home a:focus-visible,
.ib-page a:focus-visible,
.ib-page button:focus-visible {
	outline: 2px solid var(--ib-brand);
	outline-offset: 2px;
	border-radius: 2px;
}

.ib-home h2,
.ib-home h3,
.ib-page h2,
.ib-page h3 {
	margin: 0;
	color: var(--ib-ink);
}

.ib-home ul,
.ib-home ol,
.ib-page ul,
.ib-page ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------- 공통 조각 ---------- */
.ib-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: var(--ib-surface);
}

.ib-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ib-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 14px;
	font-weight: 700;
	color: var(--ib-mute);
}

.ib-kicker {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ib-brand) !important;
}

.ib-time,
.ib-meta {
	font-size: 13px;
	color: var(--ib-mute);
	font-variant-numeric: tabular-nums;
}

.ib-meta {
	margin: 10px 0 0;
}

.ib-meta__by {
	margin-right: 10px;
	color: var(--ib-sub);
}

.ib-head {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	padding-left: 12px;
	border-left: 4px solid var(--ib-brand);
	margin: 0 0 8px !important;
}

/* ---------- 속보 롤링 ---------- */
.ib-ticker {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 48px;
	border-bottom: 1px solid var(--ib-line);
}

.ib-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 14px;
	font-weight: 800;
}

.ib-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ib-signal);
	box-shadow: 0 0 0 0 rgba(245, 163, 0, 0.5);
	animation: ib-pulse 2.4s ease-out infinite;
}

@keyframes ib-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(245, 163, 0, 0.5); }
	70%  { box-shadow: 0 0 0 8px rgba(245, 163, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(245, 163, 0, 0); }
}

.ib-ticker__list {
	min-width: 0;
	flex: 1;
}

.ib-ticker__list li {
	display: none;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ib-ticker__list li.is-active {
	display: block;
}

/* ---------- 톱기사 ---------- */
.ib-top {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 36px;
	padding: 28px 0 36px;
	border-bottom: 1px solid var(--ib-line);
}

.ib-lead__body {
	margin-top: 18px;
}

.ib-lead__title {
	font-size: clamp(24px, 2.7vw, 34px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.03em;
}

.ib-lead__excerpt {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ib-sub);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ib-sub {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ib-line);
}

.ib-sub:first-child {
	padding-top: 0;
}

.ib-sub:last-child {
	border-bottom: 0;
}

.ib-sub .ib-kicker {
	margin-bottom: 4px;
}

.ib-sub__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
	margin-bottom: 6px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 최신 기사 + 많이 본 뉴스 ---------- */
.ib-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	margin-top: 40px;
	align-items: start;
}

.ib-row {
	display: grid;
	grid-template-columns: 208px minmax(0, 1fr);
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--ib-line);
}

.ib-row__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

.ib-row__excerpt {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ib-sub);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ib-row .ib-meta {
	margin-top: 8px;
}

.ib-note {
	color: var(--ib-mute);
	padding: 20px 0;
}

.ib-side {
	position: sticky;
	top: 24px;
}

.ib-rank__list {
	counter-reset: none;
}

.ib-rank__list li {
	border-bottom: 1px solid var(--ib-line);
}

.ib-rank__list a {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: baseline;
	padding: 13px 0;
}

.ib-rank__n {
	font-size: 20px;
	font-weight: 800;
	color: var(--ib-mute);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.ib-rank__list li:nth-child(-n+3) .ib-rank__n {
	color: var(--ib-brand);
}

.ib-rank__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 섹션 블록 ---------- */
.ib-sections {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 36px;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--ib-line);
}

.ib-sec__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ib-sec__head .ib-head {
	margin: 0 !important;
}

.ib-more {
	font-size: 14px;
	color: var(--ib-mute) !important;
}

.ib-more:hover {
	color: var(--ib-brand) !important;
}

.ib-sec__title {
	margin-top: 12px !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

.ib-sec__list {
	margin-top: 12px !important;
}

.ib-sec__list li {
	border-top: 1px solid var(--ib-line);
}

.ib-sec__list a {
	display: block;
	padding: 11px 0;
	font-size: 15px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- 기사 없을 때 ---------- */
.ib-empty {
	max-width: 560px;
	margin: 96px auto;
	text-align: center;
}

.ib-empty__title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.ib-empty p {
	color: var(--ib-sub);
	line-height: 1.7;
}

.ib-btn {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 22px;
	border-radius: 4px;
	background: var(--ib-brand);
	color: #fff !important;
	font-weight: 700;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.ib-sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ib-top,
	.ib-split {
		grid-template-columns: minmax(0, 1fr);
	}
	.ib-top {
		gap: 24px;
	}
	.ib-side {
		position: static;
	}
}

@media (max-width: 600px) {
	.ib-home {
		padding-bottom: 56px;
	}
	.ib-ticker {
		height: 44px;
		gap: 12px;
	}
	.ib-top {
		padding-top: 16px;
	}
	.ib-lead__body {
		margin-top: 14px;
	}
	.ib-sub,
	.ib-row {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 14px;
	}
	.ib-row {
		padding: 16px 0;
	}
	.ib-row__title {
		font-size: 16px;
	}
	.ib-row__excerpt,
	.ib-row .ib-meta__by {
		display: none;
	}
	.ib-sections {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ib-dot {
		animation: none;
	}
}


/* ==========================================================
   기사 페이지 · 섹션 페이지 · 검색 결과 (v0.2)
   ========================================================== */

.ib-page {
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 36px var(--global-content-edge-padding, 1.5rem) 72px;
	color: var(--ib-ink);
}

.ib-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 64px;
	align-items: start;
}

/* ---------- 기사 머리 ---------- */
.ib-article {
	max-width: 760px;
	min-width: 0;
}

.ib-article__title {
	margin: 2px 0 0 !important;
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -0.03em;
}

.ib-article__deck {
	margin: 18px 0 0;
	padding-left: 14px;
	border-left: 3px solid var(--ib-line);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ib-sub);
}

.ib-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 26px;
	padding: 14px 0;
	border-top: 2px solid var(--ib-ink);
	border-bottom: 1px solid var(--ib-line);
	font-size: 14px;
	color: var(--ib-mute);
}

.ib-byline p {
	margin: 0;
}

.ib-byline__who {
	font-weight: 700;
	color: var(--ib-ink);
}

.ib-byline__who a:hover {
	color: var(--ib-brand) !important;
}

.ib-byline__when {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-variant-numeric: tabular-nums;
}

.ib-share {
	margin-left: auto;
	padding: 7px 14px;
	border: 1px solid var(--ib-line);
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	color: var(--ib-sub);
	cursor: pointer;
}

.ib-share:hover {
	border-color: var(--ib-brand);
	color: var(--ib-brand);
}

.ib-share.is-done {
	border-color: var(--ib-brand);
	background: var(--ib-brand);
	color: #fff;
}

.ib-article__figure {
	margin: 28px 0 0;
}

.ib-article__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.ib-article__figure figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ib-mute);
}

/* ---------- 기사 본문 ---------- */
.ib-article__body {
	margin-top: 30px;
	font-size: 18px;
	line-height: 1.85;
	color: var(--ib-ink);
}

.ib-article__body p {
	margin: 0 0 1.4em;
}

.ib-article__body h2 {
	margin: 2em 0 0.7em;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.ib-article__body h3 {
	margin: 1.8em 0 0.6em;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.45;
}

.ib-article__body a {
	color: var(--ib-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ib-article__body ul,
.ib-article__body ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}

.ib-article__body ul {
	list-style: disc;
}

.ib-article__body ol {
	list-style: decimal;
}

.ib-article__body li {
	margin-bottom: 0.4em;
}

.ib-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.ib-article__body figure {
	margin: 1.8em 0;
}

.ib-article__body figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ib-mute);
}

.ib-article__body blockquote {
	margin: 1.8em 0;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--ib-brand);
	color: var(--ib-sub);
}

.ib-article__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ib-article__body th,
.ib-article__body td {
	padding: 10px 12px;
	border: 1px solid var(--ib-line);
	text-align: left;
}

.ib-article__body th {
	background: var(--ib-surface);
}

/* ---------- 기사 꼬리 ---------- */
.ib-tags {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px !important;
}

.ib-tags a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--ib-surface);
	font-size: 14px;
	color: var(--ib-sub) !important;
}

.ib-tags a:hover {
	color: var(--ib-brand) !important;
}

.ib-copy {
	margin: 28px 0 0;
	font-size: 13px;
	color: var(--ib-mute);
}

.ib-author {
	margin-top: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--ib-line);
	border-bottom: 1px solid var(--ib-line);
}

.ib-author__name {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}

.ib-author__bio {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ib-sub);
}

.ib-author__more {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ib-brand) !important;
}

/* ---------- 같은 섹션 다른 기사 ---------- */
.ib-related {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--ib-line);
}

.ib-related__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin-top: 18px !important;
}

.ib-card__title {
	margin: 12px 0 6px !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ib-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 섹션·검색 목록 ---------- */
.ib-list__head {
	margin-bottom: 8px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--ib-ink);
}

.ib-list__title {
	margin: 0 !important;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.ib-list__desc {
	margin-top: 8px;
	font-size: 15px;
	color: var(--ib-sub);
}

.ib-list__desc p {
	margin: 0;
}

.ib-list {
	min-width: 0;
}

.ib-list .ib-rows {
	margin-top: -4px !important;
}

.ib-none {
	padding: 40px 0;
	color: var(--ib-sub);
}

.ib-page .navigation.pagination {
	margin-top: 36px;
}

.ib-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ib-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ib-line);
	border-radius: 4px;
	font-size: 14px;
	color: var(--ib-sub);
}

.ib-page .page-numbers.current {
	border-color: var(--ib-brand);
	background: var(--ib-brand);
	color: #fff;
}

.ib-page a.page-numbers:hover {
	border-color: var(--ib-brand);
	color: var(--ib-brand);
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.ib-layout {
		gap: 40px;
	}
	.ib-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ib-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.ib-article {
		max-width: none;
	}
}

@media (max-width: 600px) {
	.ib-page {
		padding-top: 24px;
		padding-bottom: 56px;
	}
	.ib-article__deck {
		font-size: 16px;
	}
	.ib-article__body {
		font-size: 17px;
		line-height: 1.8;
	}
	.ib-share {
		margin-left: 0;
	}
	.ib-related__grid {
		gap: 20px 16px;
	}
	.ib-card__title {
		font-size: 15px;
	}
}

/* v0.2.1 — 한글 단어가 줄 끝에서 쪼개지지 않도록 Kadence 본문 설정보다 우선 적용 */
.ib-home,
.ib-page,
.ib-page .entry-content,
.ib-article__body,
.ib-article__body p,
.ib-article__body li {
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* ==========================================================
   푸터 (v0.3)
   ========================================================== */

/* Kadence 기본 푸터("WordPress Theme by Kadence WP") 숨김 */
#colophon {
	display: none;
}

.ib-footer {
	background: var(--ib-surface);
	border-top: 1px solid var(--ib-line);
	color: var(--ib-sub);
	word-break: keep-all;
}

.ib-footer__inner {
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 40px var(--global-content-edge-padding, 1.5rem) 48px;
}

.ib-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 48px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ib-line);
}

.ib-footer__name {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.ib-footer__name a {
	color: var(--ib-ink);
	text-decoration: none;
}

.ib-footer__intro {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.ib-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ib-footer__links a {
	font-size: 14px;
	color: var(--ib-sub);
	text-decoration: none;
}

.ib-footer__links .is-strong a {
	font-weight: 700;
	color: var(--ib-ink);
}

.ib-footer__links a:hover {
	color: var(--ib-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ib-footer__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.6;
}

.ib-footer__info div {
	display: flex;
	gap: 6px;
}

.ib-footer__info dt {
	color: var(--ib-mute);
	font-weight: 400;
}

.ib-footer__info dd {
	margin: 0;
	color: var(--ib-sub);
}

.ib-footer__info a {
	color: inherit;
}

.ib-footer__copy {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ib-mute);
}

.ib-footer a:focus-visible {
	outline: 2px solid var(--ib-brand);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.ib-footer__inner {
		padding-top: 32px;
		padding-bottom: 40px;
	}
	.ib-footer__links {
		gap: 10px 18px;
	}
}

/* 일반 페이지 (v0.3.1) */
.ib-doc {
	margin: 0 auto;
	max-width: 800px;
}

.ib-doc .ib-article__body {
	margin-top: 28px;
	font-size: 16px;
	line-height: 1.8;
}

.ib-doc .ib-article__body h2 {
	font-size: 19px;
	margin-top: 1.8em;
}
