/* 여의도 브리핑 스킨 v1.1 — 언론사형 */
:root {
  --point: #d7263d;
  --point-deep: #9e1430;
  --navy: #0b1730;
  --navy-2: #13254a;
  --ink: #111827;
  --ink-2: #3f4757;
  --muted: #8a909c;
  --line: #e5e7eb;
  --rule: #111827;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --wrap: 1200px;
  --grad-main: linear-gradient(120deg, #0b1730 0%, #1c2f62 55%, #7a1430 100%);
  --grad-point: linear-gradient(90deg, var(--point) 0%, #ff5a3c 100%);
  --grad-shade: linear-gradient(180deg, rgba(8,15,32,0) 25%, rgba(8,15,32,.55) 55%, rgba(8,15,32,.94) 100%);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
.yb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

#yb-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-point); z-index: 100; transition: width .1s linear; }

/* ── 상단 띠 ── */
.yb-ticker { background: var(--grad-main); color: #fff; font-size: 13px; }
.yb-ticker__in { display: flex; align-items: center; gap: 14px; height: 36px; }
.yb-ticker__badge { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .14em; font-size: 11px; background: var(--grad-point); padding: 3px 10px 3px 8px; border-radius: 3px; }
.yb-live { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: yb-pulse 1.4s ease-in-out infinite; }
@keyframes yb-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.yb-ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.yb-ticker__track { display: inline-flex; white-space: nowrap; gap: 80px; animation: yb-marquee 28s linear infinite; }
.yb-ticker__track:hover { animation-play-state: paused; }
@keyframes yb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 헤더 ── */
.yb-header { background: var(--paper); }
.yb-topline { display: flex; justify-content: space-between; align-items: center; height: 44px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.yb-topline__left { display: flex; gap: 14px; align-items: center; }
.yb-issue { color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.yb-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 32px; transition: border-color .2s, box-shadow .2s; background: #fff; }
.yb-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,23,48,.08); }
.yb-search input { background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 13px; width: 180px; }
.yb-search input::placeholder { color: var(--muted); }
.yb-search button { background: none; border: 0; color: var(--ink); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; }

.yb-masthead-bg { position: relative; overflow: hidden; background:
  radial-gradient(900px 260px at 50% -40%, rgba(28,47,98,.12), transparent 70%),
  radial-gradient(500px 200px at 85% 120%, rgba(215,38,61,.08), transparent 70%); }
.yb-masthead { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 30px; padding-bottom: 26px; }
.yb-masthead__kicker { font-size: 11px; font-weight: 800; letter-spacing: .32em; color: var(--point); margin-bottom: 10px; }
.yb-logo { display: inline-flex; align-items: center; gap: 14px; }
.yb-logo__mark { width: 50px; height: 50px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #ff4b5c, var(--point) 45%, var(--point-deep)); color: #fff; border-radius: 12px; font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1; box-shadow: 0 8px 18px -8px rgba(158,20,48,.7); }
.yb-logo__text { font-family: var(--serif); font-weight: 900; font-size: 52px; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(100deg, #0b1730 0%, #1f3a7a 60%, #9e1430 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yb-masthead__desc { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.yb-menu-btn { display: none; }

/* ── 카테고리 내비 (신문 괘선) ── */
.yb-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 var(--line), 0 6px 16px -14px rgba(0,0,0,.4); }
.yb-nav::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 1px; background: var(--rule); }
.yb-nav ul { list-style: none; margin: 0; padding: 0; }
.yb-nav .tt_category { display: flex; justify-content: center; }
.yb-nav .tt_category > li { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.yb-nav .link_tit { flex: none; font-weight: 800; font-size: 15px; padding: 13px 18px; color: var(--ink); }
.yb-nav .c_cnt { display: none; }
.yb-nav .category_list { display: flex; overflow-x: auto; scrollbar-width: none; }
.yb-nav .category_list::-webkit-scrollbar { display: none; }
.yb-nav .category_list > li { flex: none; }
.yb-nav .link_item { display: block; padding: 13px 18px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; position: relative; transition: color .2s; }
.yb-nav .link_item::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; background: var(--grad-point); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.yb-nav .link_item:hover, .yb-nav .link_item.is-active { color: var(--point); }
.yb-nav .link_item:hover::after, .yb-nav .link_item.is-active::after { transform: scaleX(1); }
.yb-nav .sub_category_list { display: none; }

/* ── 레이아웃 ── */
.yb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 32px; padding-bottom: 64px; }
.yb-content { min-width: 0; }

.yb-sec-title { position: relative; font-size: 17px; font-weight: 900; margin: 0 0 6px; padding: 12px 0 10px; border-top: 3px solid var(--rule); letter-spacing: -0.01em; }
.yb-sec-title::after { content: ''; position: absolute; left: 0; top: -3px; width: 56px; height: 3px; background: var(--grad-point); }
.yb-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--point); }

.yb-listhead { margin-bottom: 6px; padding: 14px 0 16px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); position: relative; }
.yb-listhead::after { content: ''; position: absolute; left: 0; top: -3px; width: 80px; height: 3px; background: var(--grad-point); }
.yb-listhead__title { font-family: var(--serif); font-size: 32px; font-weight: 900; margin: 4px 0 2px; letter-spacing: -0.02em; }
.yb-listhead__count { color: var(--muted); font-size: 14px; }
.yb-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── 기사 목록 (가로형 기사 행) ── */
.yb-cards, .yb-legacy-list { display: flex; flex-direction: column; }
.yb-legacy-list { list-style: none; margin: 0; padding: 0; }
.yb-legacy-list.is-hidden { display: none; }
.yb-cards:empty { display: none; }
.yb-card-wrap, .yb-legacy-list > li { border-bottom: 1px solid var(--line); }

.yb-card { display: flex; gap: 22px; padding: 22px 0; align-items: flex-start; }
.yb-card__thumb { position: relative; display: block; flex: 0 0 240px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #e8ebf1; order: 2; }
.yb-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.yb-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,15,32,.25)); }
.yb-card:hover .yb-card__thumb img { transform: scale(1.06); }
.yb-card__body { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.yb-card__cat { font-size: 12px; font-weight: 800; color: var(--point); letter-spacing: .02em; }
.yb-card__title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.42; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.yb-card:hover .yb-card__title { color: var(--point); }
.yb-card__title img { display: none; }
.yb-card__summary { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yb-card__date { font-size: 12px; color: var(--muted); }

/* ── 홈: 톱기사 + 서브 헤드라인 ── */
#tt-body-index .yb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
#tt-body-index .yb-card-wrap { grid-column: 1 / -1; }
#tt-body-index .yb-card-wrap:nth-child(1),
#tt-body-index .yb-card-wrap:nth-child(2),
#tt-body-index .yb-card-wrap:nth-child(3) { border-bottom: 0; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card,
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card { position: relative; display: block; padding: 0; border-radius: 10px; overflow: hidden; background: var(--navy); isolation: isolate; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__thumb,
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__thumb,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: -1; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__thumb::after,
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__thumb::after,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__thumb::after { background: var(--grad-shade); }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__body,
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__body,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__body { color: #fff; justify-content: flex-end; }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card__summary { color: rgba(255,255,255,.82); }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card__date { color: rgba(255,255,255,.6); }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card:hover .yb-card__title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card__cat { align-self: flex-start; color: #fff; background: var(--grad-point); padding: 3px 9px; border-radius: 3px; font-size: 11.5px; }
/* 톱기사 */
#tt-body-index .yb-card-wrap:nth-child(1) { margin-bottom: 22px; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__body { min-height: 440px; padding: 34px 36px 32px; gap: 12px; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__title { font-size: 34px; font-weight: 900; line-height: 1.3; -webkit-line-clamp: 3; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__summary { font-size: 15.5px; max-width: 640px; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__cat::before { content: 'TOP · '; }
/* 서브 헤드라인 2개 */
#tt-body-index .yb-card-wrap:nth-child(2), #tt-body-index .yb-card-wrap:nth-child(3) { grid-column: auto; margin-bottom: 10px; }
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__body,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__body { min-height: 250px; padding: 22px 22px 20px; }
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__title,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__title { font-size: 20px; font-weight: 800; -webkit-line-clamp: 3; }
#tt-body-index .yb-card-wrap:nth-child(2) .yb-card__summary,
#tt-body-index .yb-card-wrap:nth-child(3) .yb-card__summary { display: none; }
/* 최신 기사 구분선 */
#tt-body-index .yb-card-wrap:nth-child(4) { position: relative; margin-top: 26px; padding-top: 40px; border-top: 3px solid var(--rule); }
#tt-body-index .yb-card-wrap:nth-child(4)::before { content: '최신 기사'; position: absolute; top: 10px; left: 0; font-size: 17px; font-weight: 900; }
#tt-body-index .yb-card-wrap:nth-child(4)::after { content: ''; position: absolute; left: 0; top: -3px; width: 56px; height: 3px; background: var(--grad-point); }

/* ── 기사 본문 ── */
.yb-cards:has(.yb-article) { display: block; }
.yb-article { padding: 0 0 20px; }
.yb-article__head { padding: 18px 0 22px; margin-bottom: 28px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); position: relative; }
.yb-article__head::before { content: ''; position: absolute; left: 0; top: -3px; width: 120px; height: 3px; background: var(--grad-point); }
.yb-article__cat { display: inline-block; font-size: 13px; font-weight: 800; color: var(--point); letter-spacing: .02em; }
.yb-article__cat::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--grad-point); border-radius: 2px; vertical-align: 1px; }
.yb-article__title { font-family: var(--serif); font-size: 38px; font-weight: 900; line-height: 1.32; letter-spacing: -0.03em; margin: 12px 0 16px; }
.yb-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.yb-article__author { font-weight: 800; color: var(--ink); }
.yb-article__author::after { content: ' 에디터'; font-weight: 500; color: var(--muted); }
.yb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.yb-admin { margin-left: auto; display: flex; gap: 10px; font-size: 13px; }
.yb-admin a { color: var(--muted); }
.yb-admin a:hover { color: var(--point); }

.yb-toc { position: relative; background: linear-gradient(135deg, #f4f6fb, #fbf3f5); border-radius: 10px; padding: 20px 24px; margin: 0 0 32px; overflow: hidden; }
.yb-toc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--navy-2), var(--point)); }
.yb-toc strong { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; color: var(--navy); }
.yb-toc ol { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.yb-toc li { margin: 5px 0; }
.yb-toc li.is-sub { margin-left: 18px; font-size: 14px; }
.yb-toc li.is-sub::before { content: '– '; color: var(--muted); }
.yb-toc a:hover { color: var(--point); text-decoration: underline; }

.entry-content { font-size: 17.5px; line-height: 1.9; color: #1f2633; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: 70px; color: var(--ink); letter-spacing: -0.02em; }
.entry-content h2 { position: relative; font-family: var(--serif); font-size: 26px; font-weight: 900; margin: 2.3em 0 .9em; padding: 16px 0 0; border-top: 2px solid var(--rule); line-height: 1.4; }
.entry-content h2::before { content: ''; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--grad-point); }
.entry-content h3 { font-size: 21px; font-weight: 800; margin: 1.8em 0 .7em; line-height: 1.45; padding-left: 12px; border-left: 4px solid var(--point); }
.entry-content h4 { font-size: 18px; font-weight: 800; margin: 1.5em 0 .6em; }
.entry-content strong, .entry-content b { color: var(--ink); }
.entry-content a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { position: relative; margin: 1.8em 0; padding: 22px 26px 22px 60px; background: linear-gradient(135deg, #0b1730, #1c2f62); color: #fff; border-radius: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.entry-content blockquote::before { content: '“'; position: absolute; left: 18px; top: 6px; font-size: 64px; line-height: 1; color: #ff6b6b; font-family: Georgia, serif; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote b, .entry-content blockquote strong { color: #fff; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.entry-content li { margin: .3em 0; }
.entry-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; border-top: 2px solid var(--rule); }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; }
.entry-content th { background: var(--soft); font-weight: 800; }
.entry-content figure { margin: 1.7em 0; }
.entry-content figure img, .entry-content .imageblock img { border-radius: 6px; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: left; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.entry-content iframe { max-width: 100%; }

.yb-ad { margin: 30px 0; min-height: 90px; text-align: center; }
.yb-ad--side { margin-top: 26px; }

.yb-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.yb-tags a { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; transition: all .2s; }
.yb-tags a::before { content: '#'; color: var(--point); }
.yb-tags a:hover { background: var(--grad-main); color: #fff; border-color: transparent; }
.yb-tagcloud { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.yb-tagcloud a { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.yb-tagcloud a.cloud1 { font-weight: 800; color: var(--point); }

.yb-related { margin-top: 46px; }
.yb-related ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.yb-related a { display: block; }
.yb-related__thumb { position: relative; display: block; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #e8ebf1; margin-bottom: 10px; }
.yb-related__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yb-related a:hover img { transform: scale(1.06); }
.yb-related__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.45; }
.yb-related a:hover .yb-related__title { color: var(--point); }
.yb-related__date { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.yb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 38px; }
.yb-prevnext__item { display: block; border-top: 2px solid var(--rule); padding: 14px 2px; transition: color .2s; }
.yb-prevnext__item:hover { color: var(--point); }
.yb-prevnext__item--next { text-align: right; grid-column: 2; }
.yb-prevnext__label { display: block; font-size: 12px; font-weight: 800; color: var(--point); letter-spacing: .08em; margin-bottom: 4px; }
.yb-prevnext__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 15px; }

.yb-comments { margin-top: 42px; }

.yb-protected__form { display: flex; gap: 8px; margin-top: 12px; }
.yb-protected__form input { flex: 1; max-width: 260px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.yb-protected__form button { background: var(--grad-main); color: #fff; border: 0; border-radius: 6px; padding: 0 18px; }

.yb-paging { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.yb-paging a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; padding: 0 6px; }
.yb-paging a:hover { background: var(--soft); }
.yb-paging a .selected { display: grid; place-items: center; min-width: 38px; height: 38px; margin: 0 -6px; border-radius: 6px; background: var(--grad-main); color: #fff; }
.yb-paging__arrow { font-size: 22px !important; }
.yb-paging .no-more-prev, .yb-paging .no-more-next { opacity: .3; pointer-events: none; }

/* ── 사이드바 ── */
.yb-side { min-width: 0; }
.yb-widget { margin-bottom: 34px; }
.yb-rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.yb-rank li { counter-increment: rank; display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.yb-rank li::before { content: counter(rank); font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1; width: 24px; flex: none; color: #b8bec9; }
.yb-rank li:nth-child(-n+3)::before { background: linear-gradient(180deg, var(--point), var(--point-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yb-rank a { font-size: 15px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yb-rank a:hover { color: var(--point); }
.yb-recent { list-style: none; margin: 0; padding: 0; }
.yb-recent li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.yb-recent a { display: flex; gap: 12px; align-items: center; }
.yb-recent img { width: 84px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.yb-recent span { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yb-recent a:hover span { color: var(--point); }
.yb-widget--cat ul { list-style: none; margin: 0; padding: 0; }
.yb-widget--cat .link_tit { display: block; font-weight: 800; font-size: 15px; padding: 8px 0; }
.yb-widget--cat .link_item { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
.yb-widget--cat .link_item:hover { color: var(--point); }
.yb-widget--cat .c_cnt { color: var(--muted); font-size: 13px; }
.yb-widget--cat .sub_category_list .link_sub_item { display: block; padding: 4px 0 4px 12px; font-size: 14px; color: var(--muted); }

/* ── 푸터 ── */
.yb-footer { position: relative; background: var(--grad-main); color: rgba(255,255,255,.72); padding: 46px 0 50px; font-size: 14px; overflow: hidden; }
.yb-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-point); }
.yb-footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--serif); font-size: 22px; }
.yb-footer__brand .yb-logo__mark { width: 34px; height: 34px; font-size: 19px; border-radius: 8px; box-shadow: none; }
.yb-footer__desc { margin: 14px 0; max-width: 560px; }
.yb-footer__links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.yb-footer__links a { color: #fff; font-weight: 700; }
.yb-footer__links a:hover { color: #ff8a8a; }
.yb-footer__copy { margin: 0; font-size: 12px; color: rgba(255,255,255,.45); }

.yb-top { position: fixed; right: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad-main); color: #fff; font-size: 20px; box-shadow: 0 8px 20px -6px rgba(11,23,48,.6); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.yb-top.is-show { opacity: 1; transform: none; pointer-events: auto; }

/* ── 태블릿 ── */
@media (max-width: 1024px) {
  .yb-layout { grid-template-columns: minmax(0, 1fr); }
  .yb-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .yb-widget--cat, .yb-ad--side { display: none; }
  .yb-nav .tt_category { justify-content: flex-start; }
}

/* ── 모바일 ── */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .yb-wrap { padding: 0 16px; }
  .yb-topline { height: 42px; }
  .yb-issue, .yb-today__sub { display: none; }
  .yb-search input { width: 120px; }
  .yb-masthead { padding-top: 18px; padding-bottom: 16px; }
  .yb-masthead__kicker { font-size: 10px; letter-spacing: .24em; margin-bottom: 8px; }
  .yb-masthead__desc { display: none; }
  .yb-logo { gap: 10px; }
  .yb-logo__mark { width: 36px; height: 36px; font-size: 20px; border-radius: 9px; }
  .yb-logo__text { font-size: 28px; }
  .yb-menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: 0; padding: 6px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .yb-menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .yb-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .yb-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .yb-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .yb-nav .link_tit { padding: 11px 12px 11px 0; font-size: 14px; }
  .yb-nav .link_item { padding: 11px 12px; font-size: 14px; }
  .yb-nav .link_item::after { left: 12px; right: 12px; }
  .yb-nav.is-open .category_list { flex-wrap: wrap; overflow: visible; }
  .yb-nav.is-open .category_list > li { flex: 0 0 50%; }
  .yb-layout { padding-top: 18px; gap: 30px; }
  .yb-card { gap: 14px; padding: 16px 0; }
  .yb-card__thumb { flex-basis: 112px; aspect-ratio: 1 / 1; }
  .yb-card__title { font-size: 17px; }
  .yb-card__summary { display: none; }
  #tt-body-index .yb-cards { grid-template-columns: minmax(0, 1fr); }
  #tt-body-index .yb-card-wrap:nth-child(2), #tt-body-index .yb-card-wrap:nth-child(3) { grid-column: 1 / -1; }
  #tt-body-index .yb-card-wrap:nth-child(1) .yb-card__body { min-height: 360px; padding: 22px 20px; }
  #tt-body-index .yb-card-wrap:nth-child(1) .yb-card__title { font-size: 25px; }
  #tt-body-index .yb-card-wrap:nth-child(1) .yb-card__summary { display: -webkit-box; font-size: 14px; }
  #tt-body-index .yb-card-wrap:nth-child(1) { margin-bottom: 12px; }
  #tt-body-index .yb-card-wrap:nth-child(2) .yb-card__body, #tt-body-index .yb-card-wrap:nth-child(3) .yb-card__body { min-height: 200px; padding: 18px; }
  .yb-article__title { font-size: 27px; }
  .entry-content { font-size: 16.5px; line-height: 1.85; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 18px; }
  .entry-content blockquote { font-size: 16px; padding: 18px 18px 18px 48px; }
  .entry-content blockquote::before { left: 12px; font-size: 52px; }
  .entry-content table { display: block; overflow-x: auto; }
  .yb-related ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .yb-prevnext { grid-template-columns: minmax(0,1fr); }
  .yb-prevnext__item--next { grid-column: auto; }
  .yb-side { grid-template-columns: minmax(0,1fr); }
  .yb-listhead__title { font-size: 26px; }
}

/* ── 모션 ── */
@keyframes yb-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes yb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yb-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes yb-shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes yb-rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 첫 화면 등장: 제호 → 설명 → 메뉴 */
.yb-masthead__kicker { animation: yb-fade-up .6s ease-out both; }
.yb-logo { animation: yb-fade-up .7s .12s cubic-bezier(.2,.8,.2,1) both; }
.yb-masthead__desc { animation: yb-fade-up .6s .28s ease-out both; }
.yb-nav { animation: yb-fade-in .6s .35s ease-out both; }
.yb-logo__text { background-size: 200% 100%; background-image: linear-gradient(100deg, #0b1730 0%, #1f3a7a 30%, #9e1430 50%, #1f3a7a 70%, #0b1730 100%); animation: yb-shine 9s linear infinite; }
.yb-logo:hover .yb-logo__mark { transform: rotate(-8deg) scale(1.06); }
.yb-logo__mark { transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* 톱기사: 사진이 천천히 확대 */
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__thumb img { animation: yb-kenburns 14s ease-in-out infinite alternate; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__body > * { animation: yb-fade-up .7s cubic-bezier(.2,.8,.2,1) both; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__cat { animation-delay: .45s; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__title { animation-delay: .55s; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__summary { animation-delay: .7s; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__date { animation-delay: .8s; }

/* 스크롤 등장 (스크립트가 켜졌을 때만 숨김) */
.yb-js .yb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--yb-delay, 0s); }
.yb-js .yb-reveal.is-in { opacity: 1; transform: none; }
.yb-js .yb-sec-title.yb-reveal::after, .yb-js .yb-article__head.yb-reveal::before { transform: scaleX(0); transform-origin: left; transition: transform .8s .25s cubic-bezier(.2,.8,.2,1); }
.yb-js .yb-sec-title.yb-reveal.is-in::after, .yb-js .yb-article__head.yb-reveal.is-in::before { transform: scaleX(1); }

/* 순위가 차례로 올라옴 */
.yb-js .yb-rank li { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.yb-js .yb-rank.is-in li { opacity: 1; transform: none; }
.yb-rank li:nth-child(1) { transition-delay: .05s; } .yb-rank li:nth-child(2) { transition-delay: .15s; } .yb-rank li:nth-child(3) { transition-delay: .25s; }
.yb-rank li:nth-child(4) { transition-delay: .35s; } .yb-rank li:nth-child(5) { transition-delay: .45s; } .yb-rank li:nth-child(n+6) { transition-delay: .55s; }

/* 기사 행: 마우스 올리면 왼쪽 빨간 선 */
.yb-card-wrap:not(:nth-child(-n+3)) .yb-card, #tt-body-page .yb-card, #tt-body-category .yb-card { position: relative; }
.yb-cards .yb-card::before { content: ''; position: absolute; left: -14px; top: 22px; bottom: 22px; width: 3px; background: var(--grad-point); border-radius: 2px; transform: scaleY(0); transition: transform .3s ease; }
.yb-cards .yb-card:hover::before { transform: scaleY(1); }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card::before { display: none; }
.yb-card { position: relative; }

/* 움직임 줄이기 설정을 켠 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .yb-js .yb-reveal, .yb-js .yb-rank li { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 720px) {
  .yb-cards .yb-card::before { left: -8px; top: 16px; bottom: 16px; }
}

/* ── 어른 독자용 가독성 보정 ── */
:root { --muted: #6b7280; --ink-2: #374151; }
body { font-size: 17px; }
.yb-topline { font-size: 14px; }
.yb-ticker { font-size: 14px; }
.yb-ticker__track { animation: none; }               /* 흐르는 글씨 → 고정 */
.yb-ticker__track > span:not(:first-child) { display: none; }
.yb-nav .link_item, .yb-nav .link_tit { font-size: 16.5px; }
.yb-card__cat { font-size: 13.5px; }
.yb-card__title { font-size: 22px; }
.yb-card__summary { font-size: 16px; }
.yb-card__date { font-size: 14px; }
.entry-content { font-size: 19px; line-height: 1.95; }
.entry-content figcaption { font-size: 14.5px; }
.yb-article__meta { font-size: 15px; }
.yb-rank a, .yb-recent span { font-size: 16px; }
.yb-related__title { font-size: 17px; }
.yb-related__date, .yb-prevnext__label { font-size: 13.5px; }
.yb-prevnext__title { font-size: 16px; }
.yb-tags a { font-size: 14.5px; padding: 7px 14px; }
.yb-footer { font-size: 15px; }
.yb-footer__copy { font-size: 13px; }
.yb-paging a { min-width: 44px; height: 44px; font-size: 16px; }
.yb-paging a .selected { min-width: 44px; height: 44px; }
.yb-js .yb-reveal { transform: translateY(14px); }    /* 등장 움직임 작게 */
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__thumb img { animation-duration: 20s; }
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .yb-card__title { font-size: 18.5px; }
  .yb-card__date { font-size: 13.5px; }
  .entry-content { font-size: 18px; line-height: 1.9; }
  .yb-nav .link_item, .yb-nav .link_tit { font-size: 15.5px; }
}
.yb-ticker__viewport { mask-image: none; -webkit-mask-image: none; }
.yb-ticker__track > span { overflow: hidden; text-overflow: ellipsis; }

/* ── 신뢰 요소: 출처 박스·정정 표시·에디터 박스 ── */
.entry-content .yb-source { margin: 2.2em 0 1em; padding: 18px 22px; border: 1px solid var(--line); border-top: 3px solid var(--rule); background: var(--soft); border-radius: 0 0 8px 8px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.entry-content .yb-source__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--ink); margin: 0 0 6px; letter-spacing: .02em; }
.entry-content .yb-source__title::before { content: ''; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009b4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M8 7h8M8 11h6'/%3E%3C/svg%3E"); }
.entry-content .yb-source p { margin: 0; }
.entry-content .yb-source ul, .entry-content .yb-source ol { margin: 4px 0 0; }
.entry-content .yb-correction { margin: 1.4em 0; padding: 14px 18px 14px 46px; position: relative; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; font-size: 15.5px; line-height: 1.7; color: #7c2d12; }
.entry-content .yb-correction::before { content: '!'; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: #ea580c; color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.entry-content .yb-update { display: inline-block; margin: 0 0 1.4em; padding: 4px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 14px; font-weight: 700; }

.yb-editor { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 22px 24px; border-radius: 12px; background: linear-gradient(135deg, #f4f6fb 0%, #fbf3f5 100%); border: 1px solid var(--line); }
.yb-editor__img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: #fff; }
.yb-editor__body { min-width: 0; }
.yb-editor__label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--point); }
.yb-editor__name { display: block; font-size: 18px; font-weight: 900; margin: 2px 0 6px; }
.yb-editor__name em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 15px; }
.yb-editor__desc { margin: 0 0 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.yb-editor__policy { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.yb-editor__policy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .yb-editor { padding: 18px; gap: 14px; }
  .yb-editor__img { width: 52px; height: 52px; }
}

/* ── 그린 테마 (밝은 연두빛 계열) ── */
:root {
  --point: #009b4d; --point-deep: #007a3c;
  --navy: #013d24; --navy-2: #01683c;
  --grad-main: linear-gradient(120deg, #013d24 0%, #01703f 55%, #02a457 100%);
  --grad-point: linear-gradient(90deg, #02b558 0%, #03c75a 60%, #3fd98a 100%);
  --grad-shade: linear-gradient(180deg, rgba(1,30,18,0) 25%, rgba(1,30,18,.55) 55%, rgba(1,30,18,.94) 100%);
}
.yb-logo__mark { background: linear-gradient(145deg, #3fd98a, #03c75a 45%, #019a4b) !important; box-shadow: 0 8px 18px -8px rgba(1,154,75,.7) !important; }
.yb-logo__text { background-image: linear-gradient(100deg, #013d24 0%, #01703f 30%, #03c75a 50%, #01703f 70%, #013d24 100%) !important; }
.yb-masthead-bg { background: radial-gradient(900px 260px at 50% -40%, rgba(3,199,90,.12), transparent 70%), radial-gradient(500px 200px at 85% 120%, rgba(3,199,90,.08), transparent 70%); }
.yb-ticker__badge { color: #013d24; }
.yb-live { background: #013d24; }
.entry-content blockquote { background: linear-gradient(135deg, #013d24, #01683c); }
.entry-content blockquote::before { color: #3fd98a; }
.entry-content h3 { border-left-color: #03c75a; }
.yb-toc { background: linear-gradient(135deg, #effaf4, #f6fbf8); }
.yb-toc::before { background: linear-gradient(180deg, #01683c, #03c75a); }
.yb-editor { background: linear-gradient(135deg, #effaf4, #f7fbf9); }

.yb-rank li:nth-child(-n+3)::before { background: linear-gradient(180deg, #03c75a, #007a3c); -webkit-background-clip: text; background-clip: text; }
.yb-footer::before { background: var(--grad-point); }
.yb-footer__links a:hover { color: #3fd98a; }
#tt-body-index .yb-card-wrap:nth-child(-n+3) .yb-card__cat { color: #013d24; }
.yb-article__cat { color: var(--point); }

/* ── 끝없이 반복되는 움직임 끄기 (2026-12-05) ── */
.yb-logo__text { animation: none !important; background-position: 50% 50%; }
#tt-body-index .yb-card-wrap:nth-child(1) .yb-card__thumb img { animation: none !important; transform: none; }

/* ===== 본문 보정 v2 (2026-12-05) — 티스토리 에디터 기본 스타일(contents_style)을 이기고 네이버 글처럼 정돈 ===== */
.entry-content .tt_article_useless_p_margin p,
.entry-content .contents_style p { margin: 0 0 1.35em !important; font-size: inherit !important; line-height: 1.95 !important; }
.entry-content .contents_style h2,
.entry-content .contents_style h2[data-ke-size] {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
  font-size: 24px !important; font-weight: 800 !important; line-height: 1.45 !important; letter-spacing: -0.03em;
  color: #111a14 !important; padding: 2px 0 2px 16px !important;
  border: 0 !important; border-left: 5px solid #03c75a !important; background: none !important;
}
.entry-content .contents_style h2::before { display: none !important; }
.entry-content .contents_style h3,
.entry-content .contents_style h3[data-ke-size] { font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important; font-size: 21px !important; font-weight: 800 !important; }
.entry-content figure.imageblock { display: block !important; width: 100% !important; max-width: 100% !important; margin: 1.6em 0 1.8em !important; }
.entry-content figure.imageblock > span, .entry-content figure.imageblock img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; }
.entry-content figure.imageblock img { border-radius: 10px; background: #f3f5f4; }
.entry-content figure.imageblock figcaption { text-align: left !important; font-size: 14px !important; color: #7a847e !important; margin-top: 8px !important; padding-left: 10px; border-left: 2px solid #d6ded9; }
.entry-content .contents_style blockquote,
.entry-content .contents_style blockquote[data-ke-style] {
  position: relative; padding: 22px 24px 22px 58px !important; text-align: left !important;
  background: #f2faf5 !important; background-image: none !important; border: 0 !important; border-left: 4px solid #03c75a !important; border-radius: 0 12px 12px 0;
  color: #17251c !important; font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important; font-size: 18px !important; font-weight: 600; line-height: 1.8 !important;
}
.entry-content .contents_style blockquote::before { content: '“'; position: absolute; left: 18px; top: 10px; font-size: 54px; line-height: 1; color: #03c75a; font-family: Georgia, serif; }
.entry-content .contents_style blockquote::after { display: none !important; }
.entry-content .contents_style blockquote p { margin: 0 !important; color: inherit !important; }
.entry-content .contents_style u { text-decoration-color: #03c75a; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry-content .contents_style span[style*="background-color"] { padding: 1px 2px; border-radius: 3px; }
@media (max-width: 768px) {
  .entry-content .contents_style h2, .entry-content .contents_style h2[data-ke-size] { font-size: 21px !important; padding-left: 13px !important; border-left-width: 4px !important; }
  .entry-content figure.imageblock img { border-radius: 8px; }
}



/* ===== 본문 여백 v3 (2026-12-05) — 이어지는 요소끼리 간격을 짝마다 지정. 티스토리가 사진 앞뒤에 넣는 빈 문단(<p></p>)은 숨기고 건너뛰어 계산 ===== */
.entry-content .contents_style > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content .contents_style > p:empty { display: none !important; }
.entry-content .contents_style figure.imageblock { margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 0 !important; }
.entry-content .contents_style figure.imageblock figcaption { margin-top: 10px !important; }
.entry-content .contents_style > * + p:not(:empty),
.entry-content .contents_style > * + ul,
.entry-content .contents_style > * + ol,
.entry-content .contents_style > * + table,
.entry-content .contents_style > * + div:not(.yb-source),
.entry-content .contents_style > * + p:empty + p:not(:empty),
.entry-content .contents_style > * + p:empty + ul,
.entry-content .contents_style > * + p:empty + ol,
.entry-content .contents_style > * + p:empty + table,
.entry-content .contents_style > * + p:empty + div:not(.yb-source),
.entry-content .contents_style > * + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > * + p:empty + p:empty + ul,
.entry-content .contents_style > * + p:empty + p:empty + ol,
.entry-content .contents_style > * + p:empty + p:empty + table,
.entry-content .contents_style > * + p:empty + p:empty + div:not(.yb-source) { margin-top: 26px !important; }
.entry-content .contents_style > * + figure,
.entry-content .contents_style > * + p:empty + figure,
.entry-content .contents_style > * + p:empty + p:empty + figure { margin-top: 32px !important; }
.entry-content .contents_style > figure + *,
.entry-content .contents_style > figure + p:empty + *,
.entry-content .contents_style > figure + p:empty + p:empty + * { margin-top: 32px !important; }
.entry-content .contents_style > figure + p:not(:empty),
.entry-content .contents_style > figure + ul,
.entry-content .contents_style > figure + ol,
.entry-content .contents_style > figure + table,
.entry-content .contents_style > figure + div:not(.yb-source),
.entry-content .contents_style > figure + p:empty + p:not(:empty),
.entry-content .contents_style > figure + p:empty + ul,
.entry-content .contents_style > figure + p:empty + ol,
.entry-content .contents_style > figure + p:empty + table,
.entry-content .contents_style > figure + p:empty + div:not(.yb-source),
.entry-content .contents_style > figure + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > figure + p:empty + p:empty + ul,
.entry-content .contents_style > figure + p:empty + p:empty + ol,
.entry-content .contents_style > figure + p:empty + p:empty + table,
.entry-content .contents_style > figure + p:empty + p:empty + div:not(.yb-source) { margin-top: 32px !important; }
.entry-content .contents_style > figure + figure,
.entry-content .contents_style > figure + p:empty + figure,
.entry-content .contents_style > figure + p:empty + p:empty + figure { margin-top: 14px !important; }
.entry-content .contents_style > * + blockquote,
.entry-content .contents_style > * + p:empty + blockquote,
.entry-content .contents_style > * + p:empty + p:empty + blockquote { margin-top: 36px !important; }
.entry-content .contents_style > blockquote + *,
.entry-content .contents_style > blockquote + p:empty + *,
.entry-content .contents_style > blockquote + p:empty + p:empty + * { margin-top: 36px !important; }
.entry-content .contents_style > blockquote + p:not(:empty),
.entry-content .contents_style > blockquote + ul,
.entry-content .contents_style > blockquote + ol,
.entry-content .contents_style > blockquote + table,
.entry-content .contents_style > blockquote + div:not(.yb-source),
.entry-content .contents_style > blockquote + p:empty + p:not(:empty),
.entry-content .contents_style > blockquote + p:empty + ul,
.entry-content .contents_style > blockquote + p:empty + ol,
.entry-content .contents_style > blockquote + p:empty + table,
.entry-content .contents_style > blockquote + p:empty + div:not(.yb-source),
.entry-content .contents_style > blockquote + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > blockquote + p:empty + p:empty + ul,
.entry-content .contents_style > blockquote + p:empty + p:empty + ol,
.entry-content .contents_style > blockquote + p:empty + p:empty + table,
.entry-content .contents_style > blockquote + p:empty + p:empty + div:not(.yb-source) { margin-top: 36px !important; }
.entry-content .contents_style > * + h2,
.entry-content .contents_style > * + h3,
.entry-content .contents_style > * + p:empty + h2,
.entry-content .contents_style > * + p:empty + h3,
.entry-content .contents_style > * + p:empty + p:empty + h2,
.entry-content .contents_style > * + p:empty + p:empty + h3 { margin-top: 64px !important; }
.entry-content .contents_style > h2 + *,
.entry-content .contents_style > h3 + *,
.entry-content .contents_style > h2 + p:empty + *,
.entry-content .contents_style > h3 + p:empty + *,
.entry-content .contents_style > h2 + p:empty + p:empty + *,
.entry-content .contents_style > h3 + p:empty + p:empty + * { margin-top: 18px !important; }
.entry-content .contents_style > h2 + p:not(:empty),
.entry-content .contents_style > h2 + ul,
.entry-content .contents_style > h2 + ol,
.entry-content .contents_style > h2 + table,
.entry-content .contents_style > h2 + div:not(.yb-source),
.entry-content .contents_style > h3 + p:not(:empty),
.entry-content .contents_style > h3 + ul,
.entry-content .contents_style > h3 + ol,
.entry-content .contents_style > h3 + table,
.entry-content .contents_style > h3 + div:not(.yb-source),
.entry-content .contents_style > h2 + p:empty + p:not(:empty),
.entry-content .contents_style > h2 + p:empty + ul,
.entry-content .contents_style > h2 + p:empty + ol,
.entry-content .contents_style > h2 + p:empty + table,
.entry-content .contents_style > h2 + p:empty + div:not(.yb-source),
.entry-content .contents_style > h3 + p:empty + p:not(:empty),
.entry-content .contents_style > h3 + p:empty + ul,
.entry-content .contents_style > h3 + p:empty + ol,
.entry-content .contents_style > h3 + p:empty + table,
.entry-content .contents_style > h3 + p:empty + div:not(.yb-source),
.entry-content .contents_style > h2 + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > h2 + p:empty + p:empty + ul,
.entry-content .contents_style > h2 + p:empty + p:empty + ol,
.entry-content .contents_style > h2 + p:empty + p:empty + table,
.entry-content .contents_style > h2 + p:empty + p:empty + div:not(.yb-source),
.entry-content .contents_style > h3 + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > h3 + p:empty + p:empty + ul,
.entry-content .contents_style > h3 + p:empty + p:empty + ol,
.entry-content .contents_style > h3 + p:empty + p:empty + table,
.entry-content .contents_style > h3 + p:empty + p:empty + div:not(.yb-source) { margin-top: 18px !important; }
.entry-content .contents_style > h2 + figure,
.entry-content .contents_style > h3 + figure,
.entry-content .contents_style > h2 + p:empty + figure,
.entry-content .contents_style > h3 + p:empty + figure,
.entry-content .contents_style > h2 + p:empty + p:empty + figure,
.entry-content .contents_style > h3 + p:empty + p:empty + figure { margin-top: 18px !important; }
.entry-content .contents_style > * + .yb-source,
.entry-content .contents_style > * + p:empty + .yb-source,
.entry-content .contents_style > * + p:empty + p:empty + .yb-source { margin-top: 52px !important; }
@media (max-width: 768px) {
.entry-content .contents_style > * + p:not(:empty),
.entry-content .contents_style > * + ul,
.entry-content .contents_style > * + ol,
.entry-content .contents_style > * + table,
.entry-content .contents_style > * + div:not(.yb-source),
.entry-content .contents_style > * + p:empty + p:not(:empty),
.entry-content .contents_style > * + p:empty + ul,
.entry-content .contents_style > * + p:empty + ol,
.entry-content .contents_style > * + p:empty + table,
.entry-content .contents_style > * + p:empty + div:not(.yb-source),
.entry-content .contents_style > * + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > * + p:empty + p:empty + ul,
.entry-content .contents_style > * + p:empty + p:empty + ol,
.entry-content .contents_style > * + p:empty + p:empty + table,
.entry-content .contents_style > * + p:empty + p:empty + div:not(.yb-source) { margin-top: 21px !important; }
.entry-content .contents_style > * + figure,
.entry-content .contents_style > * + p:empty + figure,
.entry-content .contents_style > * + p:empty + p:empty + figure { margin-top: 26px !important; }
.entry-content .contents_style > figure + *,
.entry-content .contents_style > figure + p:empty + *,
.entry-content .contents_style > figure + p:empty + p:empty + * { margin-top: 26px !important; }
.entry-content .contents_style > figure + p:not(:empty),
.entry-content .contents_style > figure + ul,
.entry-content .contents_style > figure + ol,
.entry-content .contents_style > figure + table,
.entry-content .contents_style > figure + div:not(.yb-source),
.entry-content .contents_style > figure + p:empty + p:not(:empty),
.entry-content .contents_style > figure + p:empty + ul,
.entry-content .contents_style > figure + p:empty + ol,
.entry-content .contents_style > figure + p:empty + table,
.entry-content .contents_style > figure + p:empty + div:not(.yb-source),
.entry-content .contents_style > figure + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > figure + p:empty + p:empty + ul,
.entry-content .contents_style > figure + p:empty + p:empty + ol,
.entry-content .contents_style > figure + p:empty + p:empty + table,
.entry-content .contents_style > figure + p:empty + p:empty + div:not(.yb-source) { margin-top: 26px !important; }
.entry-content .contents_style > figure + figure,
.entry-content .contents_style > figure + p:empty + figure,
.entry-content .contents_style > figure + p:empty + p:empty + figure { margin-top: 11px !important; }
.entry-content .contents_style > * + blockquote,
.entry-content .contents_style > * + p:empty + blockquote,
.entry-content .contents_style > * + p:empty + p:empty + blockquote { margin-top: 30px !important; }
.entry-content .contents_style > blockquote + *,
.entry-content .contents_style > blockquote + p:empty + *,
.entry-content .contents_style > blockquote + p:empty + p:empty + * { margin-top: 30px !important; }
.entry-content .contents_style > blockquote + p:not(:empty),
.entry-content .contents_style > blockquote + ul,
.entry-content .contents_style > blockquote + ol,
.entry-content .contents_style > blockquote + table,
.entry-content .contents_style > blockquote + div:not(.yb-source),
.entry-content .contents_style > blockquote + p:empty + p:not(:empty),
.entry-content .contents_style > blockquote + p:empty + ul,
.entry-content .contents_style > blockquote + p:empty + ol,
.entry-content .contents_style > blockquote + p:empty + table,
.entry-content .contents_style > blockquote + p:empty + div:not(.yb-source),
.entry-content .contents_style > blockquote + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > blockquote + p:empty + p:empty + ul,
.entry-content .contents_style > blockquote + p:empty + p:empty + ol,
.entry-content .contents_style > blockquote + p:empty + p:empty + table,
.entry-content .contents_style > blockquote + p:empty + p:empty + div:not(.yb-source) { margin-top: 30px !important; }
.entry-content .contents_style > * + h2,
.entry-content .contents_style > * + h3,
.entry-content .contents_style > * + p:empty + h2,
.entry-content .contents_style > * + p:empty + h3,
.entry-content .contents_style > * + p:empty + p:empty + h2,
.entry-content .contents_style > * + p:empty + p:empty + h3 { margin-top: 52px !important; }
.entry-content .contents_style > h2 + *,
.entry-content .contents_style > h3 + *,
.entry-content .contents_style > h2 + p:empty + *,
.entry-content .contents_style > h3 + p:empty + *,
.entry-content .contents_style > h2 + p:empty + p:empty + *,
.entry-content .contents_style > h3 + p:empty + p:empty + * { margin-top: 15px !important; }
.entry-content .contents_style > h2 + p:not(:empty),
.entry-content .contents_style > h2 + ul,
.entry-content .contents_style > h2 + ol,
.entry-content .contents_style > h2 + table,
.entry-content .contents_style > h2 + div:not(.yb-source),
.entry-content .contents_style > h3 + p:not(:empty),
.entry-content .contents_style > h3 + ul,
.entry-content .contents_style > h3 + ol,
.entry-content .contents_style > h3 + table,
.entry-content .contents_style > h3 + div:not(.yb-source),
.entry-content .contents_style > h2 + p:empty + p:not(:empty),
.entry-content .contents_style > h2 + p:empty + ul,
.entry-content .contents_style > h2 + p:empty + ol,
.entry-content .contents_style > h2 + p:empty + table,
.entry-content .contents_style > h2 + p:empty + div:not(.yb-source),
.entry-content .contents_style > h3 + p:empty + p:not(:empty),
.entry-content .contents_style > h3 + p:empty + ul,
.entry-content .contents_style > h3 + p:empty + ol,
.entry-content .contents_style > h3 + p:empty + table,
.entry-content .contents_style > h3 + p:empty + div:not(.yb-source),
.entry-content .contents_style > h2 + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > h2 + p:empty + p:empty + ul,
.entry-content .contents_style > h2 + p:empty + p:empty + ol,
.entry-content .contents_style > h2 + p:empty + p:empty + table,
.entry-content .contents_style > h2 + p:empty + p:empty + div:not(.yb-source),
.entry-content .contents_style > h3 + p:empty + p:empty + p:not(:empty),
.entry-content .contents_style > h3 + p:empty + p:empty + ul,
.entry-content .contents_style > h3 + p:empty + p:empty + ol,
.entry-content .contents_style > h3 + p:empty + p:empty + table,
.entry-content .contents_style > h3 + p:empty + p:empty + div:not(.yb-source) { margin-top: 15px !important; }
.entry-content .contents_style > h2 + figure,
.entry-content .contents_style > h3 + figure,
.entry-content .contents_style > h2 + p:empty + figure,
.entry-content .contents_style > h3 + p:empty + figure,
.entry-content .contents_style > h2 + p:empty + p:empty + figure,
.entry-content .contents_style > h3 + p:empty + p:empty + figure { margin-top: 15px !important; }
.entry-content .contents_style > * + .yb-source,
.entry-content .contents_style > * + p:empty + .yb-source,
.entry-content .contents_style > * + p:empty + p:empty + .yb-source { margin-top: 43px !important; }
}

/* ===== 매거진 계산기 버튼 (글 끝) — 인라인 스타일이 지워져도 버튼 모양 유지 ===== */
.entry-content .contents_style a[href^="https://briefing.lolbba.kr"] {
  display: inline-block !important; max-width: 100%; padding: 16px 26px !important; border-radius: 14px !important;
  background: linear-gradient(135deg, #03c75a, #00a84d) !important; color: #fff !important; font-weight: 800 !important; font-size: 18px !important;
  line-height: 1.5 !important; text-decoration: none !important; box-shadow: 0 6px 18px rgba(3, 199, 90, .28); transition: transform .2s, box-shadow .2s;
}
.entry-content .contents_style a[href^="https://briefing.lolbba.kr"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 199, 90, .34); }
.entry-content .contents_style p:has(> a[href^="https://briefing.lolbba.kr"]) { text-align: center !important; padding: 26px 16px 22px; background: #f2faf5; border-radius: 16px; }
@media (max-width: 768px) { .entry-content .contents_style a[href^="https://briefing.lolbba.kr"] { font-size: 16.5px !important; padding: 14px 18px !important; } }

/* ===== 본문 중간 광고 칸 (2026-12-05) — 위아래 32px, '광고' 작은 라벨. 다음 요소와의 간격은 v3 규칙보다 우선 ===== */
.entry-content .contents_style > div.yb-ad.yb-ad--inart { margin: 32px 0 0 !important; padding: 0; min-height: 0; }
.entry-content .contents_style > .yb-ad.yb-ad--inart + p,
.entry-content .contents_style > .yb-ad.yb-ad--inart + ul,
.entry-content .contents_style > .yb-ad.yb-ad--inart + ol,
.entry-content .contents_style > .yb-ad.yb-ad--inart + figure,
.entry-content .contents_style > .yb-ad.yb-ad--inart + blockquote { margin-top: 32px !important; }
.yb-ad--inart .yb-ad__label { display: block; margin: 0 0 6px; font-size: 12px; line-height: 1; color: #9aa39e; letter-spacing: .04em; text-align: center; }
.yb-ad--inart ins.adsbygoogle { display: block; }
.entry-content .contents_style > .yb-ad--inart:has(ins[data-ad-status="unfilled"]) { display: none !important; }  /* 광고가 안 채워지면 칸·라벨 통째로 숨김 */

/* ===== 로고 글자 'Y' (2026-12-05 사용자 결정) ===== */
.yb-logo__mark { font-family: 'Inter', 'Pretendard', sans-serif !important; font-weight: 800 !important; letter-spacing: -.02em; }

/* ===== 머리띠 배경 v3 — 태극 문양 패턴 (기존 선 그림 실루엣 블록을 대체) ===== */
.yb-masthead-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg transform='rotate(33.7 30 30)'%3E%3Ccircle cx='30' cy='30' r='13' fill='%2386d9ab'/%3E%3Cpath d='M17,30 A13,13 0 0 1 43,30 A6.5,6.5 0 0 1 30,30 A6.5,6.5 0 0 0 17,30 Z' fill='%23069c4a'/%3E%3C/g%3E%3Cg transform='rotate(33.7 90 90)'%3E%3Ccircle cx='90' cy='90' r='13' fill='%2386d9ab'/%3E%3Cpath d='M77,90 A13,13 0 0 1 103,90 A6.5,6.5 0 0 1 90,90 A6.5,6.5 0 0 0 77,90 Z' fill='%23069c4a'/%3E%3C/g%3E%3C/svg%3E") center top / 120px 120px repeat; opacity: .2;
  -webkit-mask-image: radial-gradient(ellipse 46% 90% at 50% 50%, transparent 35%, #000 100%);
          mask-image: radial-gradient(ellipse 46% 90% at 50% 50%, transparent 35%, #000 100%); }
.yb-masthead-bg::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 65%, rgba(243,251,246,.7) 100%); }
.yb-masthead { z-index: 1; }
@media (max-width: 768px) { .yb-masthead-bg::after { background-size: 84px 84px; opacity: .14;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 100%); } }
