/* PORTAL-B 2026-11-13 — 'B 디시형' 포털 틀(yn1 portal-sample 기준), YN PDF 홈·언어판
   어두운 바탕 → 옅은 회색 바탕 위 흰 상자(위 2px 진한 선 + 연한 머리줄), 흰 헤더(SVG 기호 + 굵은 워드마크) → 38px 차분한 갈색 메뉴 띠.
   색은 style.css 변수만 밝게 바꾸고, 그라데이션·빛 번짐·큰 그림자·자동 넘김은 끈다. 광고 슬롯·링크·문구는 그대로(겉 상자만). */
:root{
  --bg:#f2f1ef;--bg-2:#f7f6f4;--panel:#fff;--panel-2:#f6f3ef;--panel-hover:#faf7f3;--line:#d9d4ce;--line-soft:#e6e1db;
  --text:#1f1b17;--muted:#5a524a;--faint:#6f665d;--gold:#8a4f12;--amber:#8a4f12;--orange:#8a4f12;
  --brand-grad:#8a4f12;--brand-grad-soft:#f6efe6;--brand-ring:rgba(138,79,18,.3);--glow:none;--shadow-sm:none;--shadow:none;--shadow-lg:none;--radius:2px;--radius-lg:2px;
  --pb-brand:#8a4f12;--pb-band:#6e5440;--pb-band-on:#57412f;--pb-head:#f6efe6;--pb-top:#57412f;--pb-row:#ece7e1
}
html{scroll-behavior:auto}
body{background:var(--bg)!important;color:var(--text);display:flex;flex-direction:column}
body>*{min-width:0}
body>#recruitBanner{order:1}
body>:is(footer,section.yn-growth-footer,script,noscript,#siteBlueprint,#nbFamilyBar){order:2}
body::before{order:0}

/* ── 헤더 ── */
body>header.header{position:relative!important;top:auto!important;background:#fff!important;border-bottom:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
body>header .header-inner{flex-wrap:wrap;padding:12px 0 0!important;row-gap:12px;column-gap:10px}
body>header .header-inner::after{content:"";order:8;flex:0 0 100%;height:0}
body>header .brand{gap:9px;margin-inline-end:auto}
body>header .brand .pb-mark{width:32px;height:32px;flex:0 0 32px;display:block}
body>header .brand .pb-mark rect{fill:var(--pb-brand)}
body>header .brand .pb-mark path{fill:none;stroke:#fff;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
body>header .brand-text strong{font-size:23px!important;font-weight:800;color:var(--text);letter-spacing:-.02em}
body>header .brand-text span{font-size:13px!important;color:var(--muted)}
body>header .header-right{display:contents}
html body>header .header-inner>.nav{order:9!important;flex:0 1 auto;display:flex!important;gap:0;margin:0!important;padding:0!important;height:38px;background:var(--pb-band);box-shadow:0 0 0 100vmax var(--pb-band);clip-path:inset(0 -100vmax);overflow-x:auto;scrollbar-width:none;min-width:0;position:static!important;flex-direction:row!important;border:0!important;border-radius:0!important;width:auto!important;transform:none!important;opacity:1!important;visibility:visible!important}
body>header .nav::-webkit-scrollbar{display:none}
body>header .nav a{display:flex!important;align-items:center;height:38px;padding:0 15px!important;color:#fff!important;font-size:15px!important;font-weight:700!important;border-radius:0!important;background:none!important;white-space:nowrap}
body>header .nav a:first-child{margin-inline-start:-15px}
body>header .nav a:hover{background:var(--pb-band-on)!important}
html body>header .header-right>a.blog-tab:not(#_):not(#_):not(#_){order:10;align-self:stretch;display:flex;align-items:center;height:38px;min-height:38px;margin:0 auto 0 0;padding:0 15px!important;background:var(--pb-band)!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:15px!important;font-weight:700;letter-spacing:0;position:relative;z-index:1;filter:none!important;transform:none!important}
html[dir=rtl] body>header .header-right>a.blog-tab:not(#_):not(#_):not(#_){margin:0 0 0 auto}
body>header .mode-toggle{border-radius:2px!important;background:#fff!important;color:var(--muted)!important;border:1px solid var(--line)!important;box-shadow:none!important;font-size:13px!important;min-height:36px}
body>header .mode-toggle.active{background:var(--pb-brand)!important;color:#fff!important;border-color:var(--pb-brand)!important}
body>header .lang-wrap,body>header .lang-select{border-radius:2px!important;background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
body>header .nav-toggle{display:none!important}

/* ── 장식·움직임 끄기 ── */
#promoBanner{display:none!important}
#recruitBanner .rc-track{transform:none!important;transition:none!important;display:block!important}
#recruitBanner :is(.rc-arrow,.rc-dots){display:none!important}
.hero::before,.hero::after,.hero-inner::before,.hero-inner::after,.hero-title::after{content:none!important;display:none!important}
body *{animation-iteration-count:1!important}
:is(.tool-card,.feature,.step,.lp-card,.aff-card,.deal-card,.faq details,.faq-item,.dev-panel,.social-wall *){box-shadow:none!important}
.tool-card:hover,.lp-card:hover,.aff-card:hover,.deal-card:hover{transform:none!important}

/* ── 히어로: 흰 상자, 왼쪽 정렬·작은 제목 ── */
body>section.hero{background:none!important;padding:16px 0 0!important;margin:0!important;border:0!important;min-height:0!important}
body>section.hero .hero-inner{background:#fff;border:1px solid var(--line);border-top:2px solid var(--pb-top);padding:16px 18px 18px!important;text-align:start!important;max-width:none}
body>section.hero .eyebrow{display:none!important}
body>section.hero .hero-title{font-size:22px!important;line-height:1.35!important;margin:0 0 6px!important;color:var(--text)!important;background:none!important;-webkit-text-fill-color:currentColor!important;text-align:start!important;letter-spacing:-.02em}
/* 줄바꿈 br 은 그대로 둔다(뒤에 띄어쓰기가 없어 붙어 버림) */
body>section.hero .hero-sub{font-size:15px!important;color:var(--muted)!important;margin:0 0 14px!important;max-width:none!important;text-align:start!important}
body>section.hero .hero-cta{justify-content:flex-start!important;gap:8px;margin:0!important}
body .btn{border-radius:2px!important;box-shadow:none!important;min-height:44px}
body .btn-primary{background:var(--pb-brand)!important;color:#fff!important;border:1px solid var(--pb-brand)!important}
body .btn-ghost{background:#fff!important;color:var(--text)!important;border:1px solid var(--line)!important}
body>section.hero .hero-badges{justify-content:flex-start!important;margin:12px 0 0!important;padding:0!important;gap:4px 14px}
body>section.hero .hero-badges li{font-size:14px!important;color:var(--muted)!important;background:none!important;border:0!important;padding:0!important}

/* ── 본문 상자들 ── */
body>main.container{padding-top:14px}
main.container>section:is(.latest-posts,.social-wall,.tools-section,.howto,.dev-panel,.deals,.faq),main.container>.features{background:#fff!important;border:1px solid var(--line)!important;border-top:2px solid var(--pb-top)!important;border-radius:0!important;margin:0 0 14px!important;padding:0 16px 16px!important;text-align:start!important}
main.container>.features{display:grid;padding:0!important;gap:0!important}
main.container :is(.lp-head,.tools-head,.deals-head)>h2,main.container>section:is(.howto,.dev-panel,.faq)>h2,main.container .social-wall h2,main.container .sw-head h2{font-size:17px!important;font-weight:700!important;margin:0!important;color:var(--text)!important;text-align:start!important;background:none;-webkit-text-fill-color:currentColor!important}
main.container .lp-head,main.container .tools-head,main.container .deals-head{margin:0 -16px 12px!important;padding:10px 16px!important;background:var(--pb-head);border-bottom:1px solid var(--line);text-align:start!important;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
main.container>section:is(.howto,.dev-panel,.faq)>h2{margin:0 -16px 12px!important;padding:10px 16px!important;background:var(--pb-head);border-bottom:1px solid var(--line)}
main.container .tools-head p{margin:0!important;font-size:14px!important;color:var(--muted)!important;flex:1 1 auto}
main.container .tool-search-wrap{width:min(360px,100%);margin:0!important}
main.container .tool-search{border-radius:2px!important;border:2px solid var(--pb-brand)!important;background:#fff!important;color:var(--text)!important;box-shadow:none!important;min-height:40px}
main.container .lp-more{color:var(--muted)!important;font-weight:400!important;font-size:14px!important}

/* 도구 목록: 분류 머리줄 + 촘촘한 칸 */
main.container .tool-group{margin:0 -16px!important}
main.container .group-title{margin:0!important;padding:9px 16px;font-size:15px!important;color:var(--text)!important;text-transform:none!important;letter-spacing:0!important;background:var(--pb-head);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
main.container .group-ico{color:var(--pb-brand)!important}
main.container .tool-grid{gap:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
main.container .tool-card{border:0!important;border-bottom:1px solid var(--pb-row)!important;border-inline-end:1px solid var(--pb-row)!important;border-radius:0!important;background:#fff!important;padding:10px 14px!important;gap:10px;min-height:44px}
main.container .tool-card .t-ico{width:30px!important;height:30px!important;border-radius:2px!important;font-size:16px!important;background:var(--pb-head)!important;color:var(--pb-brand)!important;border:0!important}
main.container .tool-card:hover .t-ico{background:var(--pb-head)!important;color:var(--pb-brand)!important}
main.container .tool-card:hover .t-name{text-decoration:underline}
main.container .tool-card .t-name{font-size:15px!important}
main.container .tool-card .t-desc{font-size:13px!important;color:var(--muted)!important}
main.container .tool-card .t-arrow{display:none}
main.container .ad-slot{margin:12px 0!important}

/* 최신 블로그·채널 */
main.container .lp-grid{gap:0!important}
main.container .lp-card{border:0!important;border-bottom:1px solid var(--pb-row)!important;border-radius:0!important;background:none!important;padding:8px 0!important}
main.container .social-wall{padding:0 16px 12px!important}

/* 특징·사용 방법·혜택·FAQ */
main.container .feature{border:0!important;border-inline-end:1px solid var(--pb-row)!important;border-radius:0!important;background:#fff!important;padding:16px!important}
main.container .feature-ico,main.container .step-n{border-radius:2px!important;background:var(--pb-head)!important;color:var(--pb-brand)!important;border:0!important;box-shadow:none!important}
main.container .step-n{background:var(--pb-brand)!important;color:#fff!important;width:26px!important;height:26px!important;font-size:14px!important}
main.container .steps{gap:0!important}
main.container .step{border:0!important;border-inline-end:1px solid var(--pb-row)!important;border-radius:0!important;background:none!important;padding:8px 14px!important;text-align:start!important}
main.container .step:last-child{border-inline-end:0!important}
main.container :is(.aff-card,.deal-card){border-radius:2px!important;background:#fff!important;border-color:var(--line)!important}
main.container .faq{max-width:none!important}
main.container .faq details,main.container .faq .faq-item{border:0!important;border-bottom:1px solid var(--pb-row)!important;border-radius:0!important;background:none!important;margin:0!important}
main.container .faq summary{font-size:15px!important;min-height:44px}

/* 369 모집: 글자 목록 상자(본문 뒤) */
body>#recruitBanner{width:min(1180px,92vw);margin:0 auto 14px!important;padding:0!important;background:#fff!important;border:1px solid var(--line)!important;border-top:2px solid var(--pb-top)!important;border-radius:0!important;box-shadow:none!important;height:auto!important;min-height:0!important;overflow:visible!important}
body>#recruitBanner::before{content:attr(aria-label);display:block;padding:10px 16px;font-size:17px;font-weight:700;color:var(--text);background:var(--pb-head);border-bottom:1px solid var(--line)}
body>#recruitBanner .rc-viewport{overflow:visible!important;border-radius:0!important;background:none!important;height:auto!important}
body>#recruitBanner .rc-slide{display:flex!important;align-items:center;gap:10px;width:auto!important;min-width:0!important;height:auto!important;min-height:44px;padding:6px 16px!important;background:none!important;border:0!important;border-bottom:1px solid var(--pb-row)!important;border-radius:0!important;color:var(--text)!important;box-shadow:none!important}
body>#recruitBanner .rc-slide:last-child{border-bottom:0!important}
body>#recruitBanner .rc-slide::before,body>#recruitBanner .rc-slide::after{content:none!important}
body>#recruitBanner .rc-logo{width:28px!important;height:28px!important;flex:0 0 28px;border-radius:2px!important;box-shadow:none!important}
body>#recruitBanner .rc-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0;flex:1}
body>#recruitBanner .rc-eyebrow{display:none!important}
body>#recruitBanner .rc-title{font-size:15px!important;font-weight:600!important;color:var(--text)!important}
body>#recruitBanner .rc-desc{font-size:13px!important;color:var(--muted)!important;-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
body>#recruitBanner .rc-cta{font-size:13px!important;background:none!important;color:var(--pb-brand)!important;border:0!important;box-shadow:none!important;padding:0!important}
body>#recruitBanner .rc-slide:hover .rc-title{text-decoration:underline}

/* 푸터·상담 바 */
body>footer.footer{background:#fff!important;border-top:2px solid var(--pb-top)!important;margin-top:8px;color:var(--muted)}
body>footer .logo-mark{border-radius:2px!important;background:var(--pb-brand)!important;color:#fff!important;box-shadow:none!important}
section.yn-growth-footer{border-radius:0!important;box-shadow:none!important;border-top:2px solid var(--pb-top)!important;align-self:center;width:calc(100% - 32px)}

/* 글자 13px 아래 없애기 */
html body :is([class*="-badge"],[class*="-tag"],[class*="-flag"],[class*="-kicker"],[class*="-eyebrow"],[class*="-disclosure"],[class*="-desc"],[class*="-cat"],[class*="-kw"],[class*="-change"],.lang-caret,.ad-label,.t-soon,small,sup,sub){font-size:13px!important}

@media (max-width:1000px){main.container .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:760px){main.container .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:700px){
  body>header .header-inner{width:100%!important;padding:10px 12px 0!important;row-gap:10px;column-gap:6px}
  body>header .brand-text strong{font-size:20px!important}
  body>header .brand-text span{display:none}
  html body>header .header-inner>.nav{flex:1 1 0!important}
  body>header .nav a{padding:0 12px!important}
  body>header .nav a:first-child{margin-inline-start:-12px}
  html body>header .header-right>a.blog-tab:not(#_):not(#_):not(#_){padding:0 12px!important}
  body>header .mode-toggle{padding:0 8px!important}
  body>header .lang-wrap{max-width:120px}
  body>section.hero{padding-top:10px!important}
  body>section.hero .hero-inner{width:100%!important;border-left:0;border-right:0;padding:14px 12px 16px!important}
  body>section.hero .hero-title{font-size:20px!important}
  body>main.container{width:100%!important}
  main.container>section:is(.latest-posts,.social-wall,.tools-section,.howto,.dev-panel,.deals,.faq),main.container>.features{border-left:0!important;border-right:0!important;padding:0 12px 14px!important}
  main.container .lp-head,main.container .tools-head,main.container .deals-head,main.container>section:is(.howto,.dev-panel,.faq)>h2{margin:0 -12px 10px!important;padding:10px 12px!important}
  main.container .tool-group{margin:0 -12px!important}
  main.container .tool-grid{grid-template-columns:1fr!important}
  main.container .tool-card{border-inline-end:0!important}
  main.container .steps{grid-template-columns:1fr!important}
  main.container .step{border-inline-end:0!important;border-bottom:1px solid var(--pb-row)!important}
  main.container .feature{border-inline-end:0!important;border-bottom:1px solid var(--pb-row)!important}
  body>#recruitBanner{width:100%;border-left:0!important;border-right:0!important}
  body>#recruitBanner .rc-slide{padding:6px 12px!important}
  body>#recruitBanner .rc-desc{display:none!important}
}
html body :is(.lp-d,.sc-cta,.sv-title,.deal-count,.deal-pitch,.deal-mini,.sc-btn){font-size:13px!important}
/* 대비 보정(밝은 바탕 4.5:1 이상) — 어두운 바탕용 공용 보정 색을 덮음 */
html body :is(.lp-d,.deal-count){color:var(--muted)!important}
html body :is(.ad-label,.footer-copy,#year){color:#5f5850!important}
html body footer .footer-copy *{color:#5f5850!important}
html body :is(.deal-tag,.deal-mini){color:#a3102f!important}
html body a.sc-btn.sc-btn-ig{background:#b02f45!important}
html body .consent-bar{background:#fff!important;border:1px solid var(--line)!important;border-radius:2px!important;box-shadow:0 2px 8px rgba(0,0,0,.12)!important}
html body .consent-bar p{color:var(--text)!important}
html body .consent-bar .consent-link{color:var(--pb-brand)!important}
html body .dev-panel code,html body .dev-card code{color:#7a3e0a!important;background:#f6efe6!important}
html body div.ad-slot > span.ad-label:not(#_):not(#_):not(#_),html body p.aff-disclosure > span:not(#_):not(#_):not(#_),html body p.footer-copy:not(#_):not(#_):not(#_),html body p.footer-copy > span:not(#_):not(#_):not(#_){color:#5f5850!important}
html body span.deal-name > span.deal-tag:not(#_):not(#_):not(#_){color:#a3102f!important;filter:none!important}
html body a.rc-slide > span.rc-cta:not(#_):not(#_):not(#_){box-shadow:none!important}
html body div.footer-brand > span.logo-mark.sm:not(#_):not(#_):not(#_){color:#fff!important}
html body footer :is(.lang-links a,.footer-copy,.footer-copy span,.footer-brand span){font-size:13px!important}
/* 수동 광고(2026-11-15): 도구 분류 사이 광고는 위아래 도구 버튼과 40px 이상 띄운다(잘못 누르기 방지) */
main.container #tools .ad-infeed{margin:40px auto!important}
/* 2026-11-15 광고 보정 2: 도구 분류 사이 디스플레이 ↔ 도구 카드 버튼 64px → 위아래 150px 이상(여백 160px) */
main.container #tools .ad-infeed{margin:160px auto!important}
