/* GeneratePress Site CSS */ /* Site title and tag line */
.site-description {
	margin-top: 1.2em;
	background-color: rgba(31,32,36, 0.4);
	padding: 14px;
	border: 1px solid var(--contrast-5);
	text-align: center;
}
/* Box shadow */
.site, .box-shadow {
	box-shadow: 0px 0px 20px -10px rgba(0,0,0,0.3);
}
/* Forms and buttons */
.button, .submit {
	border-radius: 3px;
}
/* Sidebar */
.sidebar.is-right-sidebar {
	background-color: var(--base-2);
}

@media(min-width: 769px) {
	.sidebar.is-right-sidebar > .inside-right-sidebar {
        position: sticky;
        top: 54px;
    }
}
/* Category label background colors */
body:not(.single):not(.blog):not(.search-results) .post-term-item {
	padding: 5px 10px;
}
body.blog .post-term-item,
body.search-results .post-term-item
{
	padding: 10px 20px;
}
body:not(.single):not(.blog):not(.search-results) .post-term-item {
	border-radius: 3px;
}
body:not(.single) .post-term-item.term-nature {
	background-color: var(--nature);
}
body:not(.single) .post-term-item.term-human {
	background-color: var(--human);
}
body:not(.single) .post-term-item.term-technology {
	background-color: var(--technology);
}
body:not(.single) .post-term-item.term-universe {
	background-color: var(--universe);
}
body:not(.single) .post-term-item.term-science-book {
	background-color: var(--science-book);
}
body:not(.single) .post-term-item.term-ys-science {
	background-color: var(--ys-science);
}
body:not(.single) .post-term-item.term-science-video {
	background-color: var(--science-video);
}
body:not(.single) .post-term-item.term-recent-news {
	background-color: var(--recent-news);
}
/* Category layout */
.archive .site-main {
	padding: 30px;
	background-color: var(--base-2);
}
@media (min-width: 769px) {
	.archive .site-main .ratio-third {
		display: grid;
  	grid-template-columns: repeat(3, 1fr);
	}
	.archive .site-main .ratio-third > .gb-query-loop-item:first-child {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}
} /* End GeneratePress Site CSS */

.jetpack-top-posts-item img{
    height: 200px;
}

.footer-menu ul {
    gap: 20px;
}

textarea[name="agreetext"] {
    min-height: 250px;
}

.post-grid-title a{
    color: white;
} 
.wp-block-jetpack-top-posts li {
    display: block !important;
    margin-bottom: 20px;
}

.wp-block-jetpack-top-posts img {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 !important;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.wp-block-jetpack-top-posts img:hover {
    transform: scale(1.05);
}

.wp-block-jetpack-top-posts a {
    display: block;
    font-size: 18px !important;
    line-height: 1.5;
    font-weight: 400 !important;
    color: inherit;
    text-decoration: none;
}
/* 실시간 인기기사에서 '홈' 링크 포함된 항목 통째로 숨김 */

/* GenerateBlocks Query Loop 카드 통째로 */
.gb-query-loop-item:has(a[href="/"]),
.gb-query-loop-item:has(a[href="https://sciencewave.kr"]),
.gb-query-loop-item:has(a[href="https://sciencewave.kr/"]),
.gb-query-loop-item:has(a[href^="https://sciencewave.kr/?"]),
.gb-query-loop-item:has(a[href^="/?"]) {
  display: none !important;
}

/* Jetpack/위젯 리스트 형태 대비 */
.widget-area .jetpack-top-posts-list li:has(a[href="/"]),
.widget-area .jetpack-top-posts-list li:has(a[href="https://sciencewave.kr"]),
.widget-area .jetpack-top-posts-list li:has(a[href="https://sciencewave.kr/"]),
.widget-area .jetpack-top-posts-list li:has(a[href^="https://sciencewave.kr/?"]),
.widget-area .jetpack-top-posts-list li:has(a[href^="/?"]) {
  display: none !important;
}

/* 마지막 안전망: 사이드바 인기기사 영역에서 홈 앵커 자체 숨김 */
.sidebar a[href="/"],
.sidebar a[href="https://sciencewave.kr"],
.sidebar a[href="https://sciencewave.kr/"],
.sidebar a[href^="https://sciencewave.kr/?"],
.sidebar a[href^="/?"] {
  display: none !important;
}