/* Reddit-style Blogger 3-column layout — v1.2.0 */
@font-face{
  font-family:'BusanDandiMyeongjo';
  src:url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2610132210@l-2/l/%EB%B6%80%EC%82%B0%EB%8B%A8%EB%94%94%EB%AA%85%EC%A1%B0M.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}
html,body,body *{
  font-family:'BusanDandiMyeongjo','Lora',serif !important;
}
:root{
  --rd3-max:        1360px;
  --rd3-left-w:     250px;
  --rd3-right-w:    280px;
  --rd3-gap:        20px;
  --rd3-pad:        16px;
  --rd3-border:     rgba(0,0,0,.10);
  --rd3-text:       inherit;
  --rd3-muted:      #6B7280;
  --rd3-hover:      rgba(0,0,0,.05);
  --rd3-active:     rgba(0,0,0,.08);
  --rd3-radius:     10px;
}

/* ===== 3열 그리드 ===== */
body.rd3-layout .main_content_container{
  display:grid !important;
  grid-template-columns:var(--rd3-left-w) minmax(0,1fr) var(--rd3-right-w);
  gap:var(--rd3-gap);
  align-items:start;
  max-width:var(--rd3-max) !important;
  width:100% !important;
  margin:0 auto !important;
  padding:0 var(--rd3-pad) !important;
  box-sizing:border-box;
}
body.rd3-layout .main_content_container > .page{
  grid-column:2;
  float:none !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}
body.rd3-layout .main_content_container > .rd3-left{
  grid-column:1;
  min-width:0;
}
body.rd3-layout .main_content_container > .sidebar-container{
  grid-column:3;
  min-width:0;
}
body.rd3-layout .page_body,
body.rd3-layout .centered,
body.rd3-layout main#main{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
}
body.rd3-layout .Blog{padding-left:0 !important}

/* 상단 헤더 반투명 + 블러 */
body.rd3-layout .centered-top-container,
body.rd3-layout .centered-top-container.sticky,
body.rd3-layout .centered-top-container.animating{
  background:rgba(255,255,255,.76) !important;
  -webkit-backdrop-filter:blur(12px) saturate(1.1);
  backdrop-filter:blur(12px) saturate(1.1);
}
html[data-theme="dark"] body.rd3-layout .centered-top-container,
html[data-theme="dark"] body.rd3-layout .centered-top-container.sticky,
html[data-theme="dark"] body.rd3-layout .centered-top-container.animating{
  background:rgba(15,17,19,.76) !important;
}

/* 테마의 넓은 화면용 본문 축소 여백 제거 */
body.rd3-layout .post-body-container{
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  max-width:none !important;
}
body.rd3-layout .post-body.entry-content{
  margin-left:0 !important;
  margin-right:0 !important;
  max-width:none !important;
}
/* 본문 텍스트 좌우 여백 (이미지 .separator는 전체 폭 유지) */
body.rd3-layout .post-body.entry-content > p,
body.rd3-layout .post-body.entry-content > h1,
body.rd3-layout .post-body.entry-content > h2,
body.rd3-layout .post-body.entry-content > h3,
body.rd3-layout .post-body.entry-content > h4,
body.rd3-layout .post-body.entry-content > h5,
body.rd3-layout .post-body.entry-content > h6,
body.rd3-layout .post-body.entry-content > ul,
body.rd3-layout .post-body.entry-content > ol,
body.rd3-layout .post-body.entry-content > blockquote,
body.rd3-layout .post-body.entry-content > table,
body.rd3-layout .post-body.entry-content > pre,
body.rd3-layout .post-body.entry-content > div:not(.separator):not(.separator *){
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
}
/* 제목 배경의 상·하 빈 여백 제거 */
body.rd3-layout .post-title-container{
  padding-top:0 !important;
  padding-bottom:0 !important;
  padding-left:0 !important;
  min-height:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body.rd3-layout .post-title-container{
  background:transparent !important;
}
body.rd3-layout .post-title-container .post-title{
  margin-top:0 !important;
  margin-bottom:0 !important;
  background:transparent !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis;
  text-align:left !important;
  font-size:16px !important;
  line-height:1.35 !important;
  max-height:2.7em;
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
  color:#111111 !important;
}
body.item-view.rd3-layout .post-title-container .post-title > a{
  font-size:16px !important;
  line-height:1.35 !important;
  color:inherit !important;
}
@media screen and (max-width:600px){
  body.rd3-layout .post-title-container .post-title{
    font-size:14px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }
  body.item-view.rd3-layout .post-title-container .post-title > a{
    font-size:14px !important;
  }
}

/* 테마의 사이드바 오버레이/햄버거는 3열에서는 사용하지 않음 */
body.rd3-layout .hamburger-section,
body.rd3-layout .dim-overlay{display:none !important}
body.rd3-layout.sidebar-visible{overflow:auto !important}

/* ===== 좌측 레일 ===== */
.rd3-left{
  position:sticky;
  top:16px;
  align-self:start;
  font-family:inherit;
  color:var(--rd3-text);
  z-index:2;
}
.rd3-left-inner{
  padding:4px 14px 14px 0;
  border-right:1px solid var(--rd3-border);
}
.rd3-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 8px;
  padding:0 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--rd3-muted);
}
.rd3-title:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#FF4500;
  flex:0 0 auto;
}
.rd3-nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rd3-link{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:40px;
  padding:0 10px;
  border-radius:var(--rd3-radius);
  color:var(--rd3-text) !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:500;
  line-height:1.25;
  transition:background-color .14s ease;
}
.rd3-link:hover{background:var(--rd3-hover)}
.rd3-link.is-active{
  background:var(--rd3-active);
  font-weight:600;
}
.rd3-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex:0 0 auto;
  color:currentColor;
  opacity:.9;
}
.rd3-ico svg{width:20px;height:20px;display:block}
.rd3-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rd3-left-slot{min-height:1px}
.rd3-left-slot:not(:empty){margin-top:14px}

/* ===== 우측 사이드바: 오버레이 → 그리드 컬럼 ===== */
body.rd3-layout .sidebar-container,
body.rd3-layout .sidebar-container.sidebar-invisible{
  display:block !important;
  position:sticky !important;
  top:16px !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important;
  max-height:calc(100vh - 32px);
  transform:none !important;
  transition:none !important;
  visibility:visible !important;
  opacity:1 !important;
  z-index:2 !important;
  background:transparent !important;
  overflow-y:auto !important;
  padding:4px 0 14px 16px !important;
  border-left:1px solid var(--rd3-border);
  box-sizing:border-box;
}
body.rd3-layout .sidebar-container .navigation{display:none !important}
body.rd3-layout .sidebar-container .widget{
  margin:0 !important;
  padding:14px 0 !important;
  background:transparent !important;
}
body.rd3-layout .sidebar-container .widget + .widget{
  border-top:1px solid var(--rd3-border) !important;
}
/* 사이드바 가젯 구분선(밑줄) 제거 */
body.rd3-layout .sidebar-container .widget,
body.rd3-layout .sidebar-container .widget + .widget{
  border-top:0 !important;
  border-bottom:0 !important;
}
/* 하단 푸터/Attribution 숨김 */
body.rd3-layout #footer,
body.rd3-layout #Attribution1{
  display:none !important;
}

/* 검색 결과: 썸네일 4열 반응형 그리드 */
body.search-view .blog-posts.hfeed{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px 16px !important;
  align-items:start !important;
}
body.search-view .post-outer-container{
  display:block !important;
  width:auto !important;
  margin:0 !important;
  min-width:0 !important;
}
body.search-view .post-outer{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  margin:0 !important;
  min-width:0 !important;
}
body.search-view .snippet-thumbnail{
  order:0 !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  margin:0 0 8px !important;
  border-radius:10px;
  overflow:hidden;
  background:#f1f3f5;
}
body.search-view .snippet-thumbnail-img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  background-size:cover !important;
  background-position:center !important;
  transition:transform .25s ease;
}
body.search-view .post-outer-container:hover .snippet-thumbnail-img{
  transform:scale(1.04);
}
body.search-view .post-content{
  order:1 !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
body.search-view .post-title-container{
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}
body.search-view .post-title{
  display:block !important;
  margin:0 !important;
  max-height:none !important;
  overflow:visible !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  color:inherit !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
body.search-view .post-title a{
  color:inherit !important;
  text-decoration:none !important;
  font-size:12px !important;
  line-height:1.3 !important;
}
@media screen and (max-width:480px){
  body.search-view .post-title a{font-size:11px !important}
}
body.search-view .post-header-container,
body.search-view .post-body,
body.search-view .post-bottom{display:none !important}
html[data-theme="dark"] body.search-view .snippet-thumbnail{background:#252a31}
@media screen and (max-width:1023px){
  body.search-view .blog-posts.hfeed{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media screen and (max-width:768px){
  body.search-view .blog-posts.hfeed{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media screen and (max-width:480px){
  body.search-view .blog-posts.hfeed{grid-template-columns:1fr !important}
}

/* 홈(정적 페이지)은 3열 대신 전체 폭 1열 */
html.jt-home-page body.rd3-layout .main_content_container{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 16px !important;
}
html.jt-home-page body.rd3-layout #rd3Left,
html.jt-home-page body.rd3-layout .sidebar-container{
  display:none !important;
}
html.jt-home-page body.rd3-layout .post-content.container{
  width:100% !important;
  max-width:none !important;
}
html.jt-home-page body.rd3-layout .post-outer{
  display:block !important;
  width:100% !important;
}
html.jt-home-page body.rd3-layout .post-body-container{
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  max-width:none !important;
}
html.jt-home-page body.rd3-layout .centered-top-container{
  display:none !important;
}
html.jt-home-page body.rd3-layout .centered-top-placeholder.cloned{
  display:none !important;
}
html.jt-home-page body.rd3-layout .post-title-container{
  display:none !important;
}

/* ===== 1240px 미만: 좌측 아이콘 레일 + 중앙 ===== */
@media screen and (max-width:1239px) and (min-width:1024px){
  body.rd3-layout .main_content_container{
    grid-template-columns:220px minmax(0,1fr);
    gap:12px;
    max-width:960px !important;
    padding:0 12px !important;
  }
  body.rd3-layout .main_content_container > .page{grid-column:2}
  body.rd3-layout .main_content_container > .rd3-left{grid-column:1}
  body.rd3-layout .main_content_container > .sidebar-container{display:none !important}

  .rd3-left-inner{padding:8px 10px 14px 0}
  .rd3-title,
  .rd3-left-slot{display:none !important}
  .rd3-nav{gap:3px}
  .rd3-link{
    justify-content:flex-start;
    min-height:40px;
    padding:0 12px;
    gap:12px;
    font-size:14px;
    border-radius:999px;
  }
  .rd3-ico{width:20px;height:20px}
  .rd3-ico svg{width:20px;height:20px}

  /* 1024~1239px: 테마의 음수 마진이 중앙 컬럼 밖으로 넘치지 않게 보정 */
  body.rd3-layout .post-body-container{
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* ===== 1240px 이상: 글보기 좌측 메뉴를 아이콘 1열로 최소화 ===== */
@media screen and (min-width:1240px){
  body.rd3-layout .main_content_container{
    grid-template-columns:220px minmax(0,1fr) 280px !important;
    gap:16px !important;
  }
  .rd3-left-inner{padding:8px 10px 14px 0}
  .rd3-title,
  .rd3-left-slot{display:none !important}
  .rd3-nav{gap:3px}
  .rd3-link{
    justify-content:flex-start;
    min-height:40px;
    padding:0 12px;
    gap:12px;
    font-size:14px;
    border-radius:999px;
  }
  .rd3-ico{width:20px;height:20px}
  .rd3-ico svg{width:20px;height:20px}
}

/* ===== 1024px 미만: 1열 ===== */
@media screen and (max-width:1023px){
  body.rd3-layout .main_content_container{
    display:block !important;
    max-width:100% !important;
    padding:0 12px !important;
  }
  body.rd3-layout .rd3-left,
  body.rd3-layout .sidebar-container{display:none !important}
  body.rd3-layout .main_content_container > .page{
    width:100% !important;
    max-width:none !important;
    margin:0 auto !important;
  }
  body.rd3-layout .page_body{max-width:none !important}
}

@media (prefers-reduced-motion:reduce){
  .rd3-link{transition:none}
}
/* ===== Reddit형 좌측 레일 접기/펼치기 ===== */
#jtLeftToggle{
  position:fixed;
  top:50%;
  left:220px;
  transform:translateY(-50%);
  z-index:99997;
  width:24px;
  height:48px;
  padding:0;
  border:1px solid rgba(0,0,0,.12);
  border-left:0;
  border-radius:0 10px 10px 0;
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:#292929;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:left .25s ease,background-color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
#jtLeftToggle:hover{background:#fff}
#jtLeftToggle svg{width:14px;height:14px;transition:transform .25s ease}
body.jt-left-collapsed #jtLeftToggle{left:64px}
body.jt-left-collapsed #jtLeftToggle svg{transform:rotate(180deg)}
html[data-theme="dark"] #jtLeftToggle{
  background:rgba(25,29,33,.72);
  color:#f2f3f5;
  border-color:rgba(255,255,255,.16);
}
@media screen and (min-width:1024px){
  body.jt-left-collapsed.rd3-layout .main_content_container{
    grid-template-columns:64px minmax(0,1fr) 280px !important;
  }
  body.jt-left-collapsed .rd3-label{display:none !important}
  body.jt-left-collapsed .rd3-link{
    justify-content:center;
    padding:0;
    gap:0;
  }
  body.jt-left-collapsed .rd3-left-inner{
    padding:2px 6px 10px 0;
  }
}
@media screen and (min-width:1024px) and (max-width:1239px){
  body.jt-left-collapsed.rd3-layout .main_content_container{
    grid-template-columns:64px minmax(0,1fr) !important;
  }
}
@media screen and (max-width:1023px){
  #jtLeftToggle{display:none !important}
}
html.jt-home-page #jtLeftToggle{display:none !important}
/* 헤더 검색 버튼 텍스트 시각적 숨김(스크린리더용 라벨 유지) */
.centered-top-firstline .main_header_elements .search .search-expand-text{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
/* 상단 헤더 전체 숨김 */
header.centered-top-container,
.centered-top-placeholder{
  display:none !important;
}
body.item-view .main_content_container{
  padding-top:14px !important;
}
/* ===== 반응형 컬럼 우선순위 ===== */
/* 1024~1239: 3열 유지, 우측은 아이콘(썸네일)만 */
@media screen and (min-width:1024px) and (max-width:1239px){
  body.rd3-layout .main_content_container{
    display:grid !important;
    grid-template-columns:220px minmax(0,1fr) 144px !important;
    gap:12px !important;
    max-width:1120px !important;
    padding:0 12px !important;
  }
  body.rd3-layout .main_content_container > .page{grid-column:2}
  body.rd3-layout .main_content_container > .rd3-left{grid-column:1}
  body.rd3-layout .main_content_container > .sidebar-container{
    grid-column:3;
    display:block !important;
  }
}
/* 900~1023: 좌측 1열 숨김, 중앙 + 우측 아이콘 */
@media screen and (min-width:900px) and (max-width:1023px){
  body.rd3-layout .main_content_container{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 144px !important;
    gap:12px !important;
    max-width:1024px !important;
    padding:0 12px !important;
  }
  body.rd3-layout .main_content_container > .rd3-left{display:none !important}
  body.rd3-layout .main_content_container > .page{grid-column:1}
  body.rd3-layout .main_content_container > .sidebar-container{
    grid-column:2;
    display:block !important;
  }
}
/* 899 이하: 우측 3열도 숨김 */
@media screen and (max-width:899px){
  body.rd3-layout .main_content_container{
    display:block !important;
    max-width:100% !important;
    padding:0 12px !important;
  }
  body.rd3-layout .sidebar-container{display:none !important}
  body.rd3-layout .main_content_container > .page{
    grid-column:auto;
    width:100% !important;
    max-width:none !important;
    margin:0 auto !important;
  }
}
/* 우측 열 아이콘 전용 모드 */
@media screen and (max-width:1239px){
  body.rd3-layout .sidebar-container .widget-title,
  #ytPosts .yt-head,
  #ytPosts .yt-count,
  #ytPosts .yt-info{display:none !important}
  #ytPosts .yt-item{
    justify-content:center;
    height:82px;
    flex:0 0 82px;
    padding:4px;
  }
  #ytPosts .yt-thumb{
    width:100%;
    flex:1 1 auto;
    max-width:122px;
    aspect-ratio:1/1;
  }
  #ytPosts .yt-viewport{height:1176px !important}
}
