/*
 Theme Name: Curael Blog
 Template: generatepress
 Description: 큐라엘 공식 블로그 - GeneratePress 자식테마
 Version: 1.7b.2
 Author: 리디웹 (옵티파이)
*/

/* ========================================
   1. SUIT 폰트
   functions.php의 wp_enqueue_style + <link rel="preload">로 로드
   (중복 @import 제거 — 렌더링 차단 waterfall 제거)

   다국어 폰트 폴백 (Phase 7a):
   - 한국어/영어: SUIT가 라틴 문자도 잘 처리 → 그대로
   - 중국어 간체: SUIT는 한자 미포함 → Noto Sans SC를 폴백 체인에 추가
     (Noto Sans SC는 functions.php에서 ZH 활성 시에만 enqueue됨)
   ======================================== */

/* ========================================
   2. 전역 폰트 및 기본 스타일
   ======================================== */
body {
    font-family: 'SUIT Variable', 'SUIT', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #374151;
    background-color: #ffffff;
    line-height: 1.8;
    letter-spacing: -0.02em;
}

/* 중국어 간체일 때 line-height 미세 조정 (한자가 한글보다 시각 밀도 높음) */
body.curael-lang-zh-hans {
    line-height: 1.75;
    letter-spacing: 0;
}

/* 영문일 때 letter-spacing 정상화 (라틴 문자에 -0.02em은 너무 좁음) */
body.curael-lang-en {
    letter-spacing: -0.005em;
}

/* ========================================
   3. 헤더 스타일 (큐라엘 메인 사이트 톤 맞춤)
   ======================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .site-title a,
.site-header .site-title {
    color: #141414;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

/* 네비게이션 */
.main-navigation a {
    color: #141414;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #15803d;
}

/* ========================================
   4. 콘텐츠 영역
   ======================================== */

/* 페이지 타이틀 */
h1, h2, h3, h4, h5, h6 {
    color: #141414;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }

/* 본문 텍스트 */
.entry-content p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

/* 링크 */
a {
    color: #166534;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #15803d;
}

.entry-content a {
    color: #15803d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: #166534;
}

/* ========================================
   5. 블로그 아카이브 (3열 그리드)
   ======================================== */

/* 메인 콘텐츠 영역을 전체 너비로 */
.archive .site-content .content-area,
.home .site-content .content-area,
.search .site-content .content-area,
.category .site-content .content-area {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* 사이드바 숨기기 */
.archive #right-sidebar,
.home #right-sidebar,
.search #right-sidebar,
.category #right-sidebar {
    display: none !important;
}

/* 3열 그리드 */
.archive .inside-article,
.home .inside-article,
.search .inside-article,
.category .inside-article {
    display: inline-block;
    vertical-align: top;
}

.archive #main article,
.home #main article,
.search #main article,
.category #main article {
    margin-bottom: 2rem;
}

/* GeneratePress 그리드 오버라이드 */
.generate-columns-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* GP 그리드가 아닌 경우 직접 그리드 적용 */
.archive #main,
.home #main,
.category #main {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 24px;
}

/* 히어로/필터 섹션은 전체 너비 유지 */
.archive #main .curael-blog-hero,
.archive #main .curael-filter-section,
.home #main .curael-blog-hero,
.home #main .curael-filter-section,
.category #main .curael-blog-hero,
.category #main .curael-filter-section {
    grid-column: 1 / -1;
}

/* 페이지네이션도 전체 너비 */
.archive #main nav.navigation,
.home #main nav.navigation,
.category #main nav.navigation {
    grid-column: 1 / -1;
}

/* "찾지 못함" 메시지도 전체 너비 */
.archive #main .no-results,
.home #main .no-results,
.category #main .no-results {
    grid-column: 1 / -1;
}

/* 카테고리 아카이브 제목/설명 숨기기 */
.archive .page-header,
.category .page-header,
.archive .archive-title,
.category .archive-title,
.archive .taxonomy-description,
.category .taxonomy-description {
    display: none !important;
}

/* 카드 스타일 */
.archive article.post,
.home article.post,
.category article.post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 0 !important;
}

.archive .inside-article,
.home .inside-article,
.category .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* GP 기본 여백 제거 */
.archive .inside-article .post-image a,
.home .inside-article .post-image a,
.category .inside-article .post-image a {
    display: block;
    line-height: 0;
}

.archive .entry-content,
.home .entry-content,
.category .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.archive article.post:hover,
.home article.post:hover,
.category article.post:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* 썸네일 이미지 - 카드 너비 꽉 차게, 모서리 직각 */
.post-image {
    border-radius: 0 !important;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    width: 100%;
    margin: 0;
    padding: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.05);
}

/* 카드 내부 텍스트 영역 */
.archive .inside-article,
.home .inside-article,
.category .inside-article {
    display: flex;
    flex-direction: column;
}

/* 썸네일을 항상 최상단으로 */
.archive .inside-article .post-image,
.home .inside-article .post-image,
.category .inside-article .post-image {
    order: 1;
    margin: 0 !important;
    padding: 0 !important;
}

.archive .inside-article .entry-header,
.home .inside-article .entry-header,
.category .inside-article .entry-header {
    order: 2;
    padding: 20px 20px 0;
    margin: 0;
}

.archive .inside-article footer.entry-meta,
.home .inside-article footer.entry-meta,
.category .inside-article footer.entry-meta {
    order: 3;
    padding: 12px 20px 24px;
    margin: 0;
}

.archive .inside-article .entry-summary,
.home .inside-article .entry-summary,
.category .inside-article .entry-summary {
    display: none !important;
}

/* 글 제목 */
h2.entry-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

h2.entry-title a {
    color: #141414;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h2.entry-title a:hover {
    color: #15803d;
}

/* 카테고리 라벨 숨기기 (카드에서) */
.archive .cat-links,
.home .cat-links,
.category .cat-links {
    display: none;
}

/* 날짜/메타 정보 - 작성자 숨기기 */
.entry-meta {
    color: #9ca3af;
    font-size: 0.8rem;
}

.entry-meta a {
    color: #9ca3af;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #15803d;
}

/* 아카이브에서 작성자 배지 스타일 */
.archive .entry-meta .byline a,
.home .entry-meta .byline a,
.category .entry-meta .byline a {
    display: inline-block;
    background-color: #f0fdf4;
    color: #15803d;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dcfce7;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.archive .entry-meta .byline a:hover,
.home .entry-meta .byline a:hover,
.category .entry-meta .byline a:hover {
    background-color: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

/* 댓글 숨기기 */
.comments-area,
.entry-meta .comments-link,
#comments,
.comment-form,
.comments-link {
    display: none !important;
}

/* 반응형: 태블릿 2열 */
@media (max-width: 900px) {
    .archive #main,
    .home #main,
    .category #main,
    .generate-columns-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 반응형: 모바일 1열 */
@media (max-width: 768px) {
    .archive #main,
    .home #main,
    .category #main,
    .generate-columns-container {
        grid-template-columns: 1fr !important;
        padding: 0 16px !important;
        gap: 16px !important;
    }
}

/* ========================================
   6. 싱글 포스트 (개별 글)
   ======================================== */
.single .entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.single h1.entry-title {
    font-size: 2rem;
    font-weight: 800;
    color: #141414;
    line-height: 1.35;
    margin-bottom: 16px;
}

/* 싱글 포스트 메타 정보 */
.single .entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.single .entry-meta .posted-on {
    color: #9ca3af;
    font-size: 0.88rem;
}

.single .entry-meta .byline,
.single .entry-meta .author {
    display: inline-block !important;
}

.single .entry-meta .byline a,
.single .entry-meta .author a {
    display: inline-block;
    background-color: #f0fdf4;
    color: #15803d;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dcfce7;
    transition: all 0.2s ease;
}

.single .entry-meta .byline a:hover,
.single .entry-meta .author a:hover {
    background-color: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

/* "작성자:" 텍스트 숨기기 */
.single .entry-meta .byline .author-label,
.single .entry-meta .byline > span:first-child {
    font-size: 0;
}

/* 4. 싱글 포스트 소제목 스타일 (H2, H3, H4) */
.single .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #141414;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #15803d;
}

.single .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    padding-left: 14px;
    border-left: 3px solid #15803d;
}

.single .entry-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

/* 5. 이미지와 콘텐츠 블록 간격 넓히기 */
.single .entry-content img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.single .entry-content figure {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.single .entry-content .wp-block-image {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.single .entry-content p + h2,
.single .entry-content p + h3,
.single .entry-content p + h4 {
    margin-top: 3rem;
}

.single .entry-content img + h2,
.single .entry-content img + h3,
.single .entry-content figure + h2,
.single .entry-content figure + h3 {
    margin-top: 3rem;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* ========================================
   6.5. 자체 single.php 마크업 — wrapper, 카테고리 배지, 썸네일, 작성자 박스
   ======================================== */

/* 본문 전체 wrapper */
.curael-single-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

@media (max-width: 768px) {
    .curael-single-wrapper {
        padding: 40px 16px 60px;
    }
}

/* 카테고리 배지 */
.curael-single-cat-badge {
    display: inline-block;
    background-color: #f0fdf4;
    color: #15803d;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #dcfce7;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.curael-single-cat-badge:hover {
    background-color: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

/* 썸네일 */
.curael-single-thumbnail {
    margin: 0 0 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.curael-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 0 !important;
}

/* 본문 페이지 분할 링크 */
.curael-single-pagelinks {
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* 본문 하단 - 돌아가기 링크 */
.curael-single-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.curael-single-back {
    display: inline-block;
    color: #15803d;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.curael-single-back:hover {
    color: #166534;
    text-decoration: underline;
}

/* 작성자 박스 (EEAT) */
.curael-single-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-top: 3rem;
}

.curael-single-author-avatar {
    flex-shrink: 0;
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.curael-single-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}

.curael-single-author-info {
    flex: 1;
    min-width: 0;
}

.curael-single-author-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #15803d;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.curael-single-author-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #141414;
    margin: 0 0 10px;
    padding: 0;
    border: none;
}

.curael-single-author-info h3 a {
    color: inherit;
    text-decoration: none;
}

.curael-single-author-info h3 a:hover {
    color: #15803d;
}

.curael-single-author-info p {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 12px;
}

.curael-single-author-more {
    display: inline-block;
    color: #15803d;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.curael-single-author-more:hover {
    color: #166534;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .curael-single-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .curael-single-author-info p {
        text-align: left;
    }
}

/* 목차 스타일 (Rank Math TOC 등) */
.entry-content .wp-block-rank-math-toc-block {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

/* 인용구 */
blockquote {
    border-left: 4px solid #15803d;
    background-color: #f0fdf4;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-style: normal;
}

/* 이미지 */
.entry-content img {
    border-radius: 8px;
}

/* ========================================
   7. 사이드바
   ======================================== */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #141414;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #15803d;
    margin-bottom: 1rem;
}

/* ========================================
   8. 푸터 (큐라엘 톤 맞춤)
   ======================================== */
.site-footer {
    background-color: #fff9f4;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

.site-footer a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #15803d;
}

.site-info {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* GP 푸터 하단 여백 완전 제거 */
.site-footer {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #FFF9F4 !important;
}

.site-footer .footer-widgets-container,
.site-footer .inside-site-info,
.site-info,
.footer-bar {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

body,
html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 푸터를 항상 바닥에 고정 + 흰 공간 제거 */
#page,
.site {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-content {
    flex-grow: 1 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-footer {
    flex-shrink: 0 !important;
    background-color: #FFF9F4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* GP copyright 영역 완전 제거 */
.site-footer > .inside-site-info,
.site-footer > .site-info,
.site-footer > .footer-widgets,
.site-footer > div:not(.curael-footer):not(.curael-footer *) {
    display: none !important;
}

/* 푸터 바로 뒤에 오는 모든 빈 공간 제거 */
.site-footer::after {
    display: none !important;
}

#page::after,
.site::after {
    display: none !important;
}

/* ========================================
   9. 버튼 스타일
   ======================================== */
.wp-block-button__link,
button,
input[type="submit"] {
    background-color: #15803d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #166534;
    color: #ffffff;
}

/* 아웃라인 버튼 */
.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: #15803d;
    border: 2px solid #15803d;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: #15803d;
    color: #ffffff;
}

/* ========================================
   10. 반응형 (모바일)
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }

    .single h1.entry-title {
        font-size: 1.5rem;
    }

    .entry-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* ========================================
   11. 유틸리티
   ======================================== */

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 선택 색상 */
::selection {
    background-color: #dcfce7;
    color: #166534;
}

/* 스크롤바 커스텀 (웹킷) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

/* ========================================
   12. 블로그 히어로 섹션
   ======================================== */
.curael-blog-hero {
    text-align: center;
    padding: 60px 24px 20px;
}

.curael-blog-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #141414;
    margin: 0 0 8px;
    letter-spacing: -0.04em;
}

.curael-blog-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   13. 카테고리 필터 탭 + 검색바
   ======================================== */
.curael-filter-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.curael-filter-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 50px;
}

.curael-filter-tab {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.curael-filter-tab:hover {
    color: #141414;
    background: rgba(255,255,255,0.6);
}

.curael-filter-tab.curael-tab-active {
    background: #15803d;
    color: #ffffff;
}

.curael-filter-back {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    margin-left: 8px;
}

.curael-filter-back:hover {
    color: #15803d;
}

.curael-search-bar {
    flex-shrink: 0;
}

.curael-search-bar form {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.curael-search-bar form:focus-within {
    border-color: #15803d;
}

.curael-search-input {
    border: none !important;
    outline: none !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    width: 200px;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
}

.curael-search-btn {
    background: none !important;
    border: none !important;
    padding: 10px 14px !important;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.curael-search-btn:hover {
    color: #15803d !important;
    background: none !important;
}

@media (max-width: 768px) {
    .curael-blog-hero {
        padding: 40px 16px 16px;
    }

    .curael-blog-title {
        font-size: 1.75rem;
    }

    .curael-filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px 24px;
    }

    /* 모바일에서 필터 탭은 알약 컨테이너 풀고 2줄로 wrap */
    .curael-filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .curael-filter-tab {
        background: #f3f4f6;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .curael-search-input {
        width: 100% !important;
    }
}

/* ========================================
   14. Author 페이지 스타일
   ======================================== */

.curael-author-page {
    background-color: #ffffff;
    width: 100%;
}

/* Author 페이지 GP 레이아웃 오버라이드 */
.author .site-content .content-area,
.author .site-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.author #right-sidebar {
    display: none !important;
}

.author .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

.author .site-main > article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 프로필 히어로 */
.curael-author-hero {
    background-color: #f8faf9;
    padding: 60px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.curael-author-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.curael-author-avatar {
    flex-shrink: 0;
}

.curael-avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.curael-author-label {
    font-size: 0.85rem;
    color: #15803d;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.curael-author-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #141414;
    margin: 0 0 12px;
    line-height: 1.3;
}

.curael-author-tagline {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* 섹션 공통 */
.curael-author-section {
    padding: 60px 24px;
}

.curael-author-section-alt {
    background-color: #fafafa;
}

.curael-author-container {
    max-width: 900px;
    margin: 0 auto;
}

.curael-author-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #141414;
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #15803d;
}

/* 약사 소개 */
.curael-author-about p {
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
}

/* 학력 및 경력 */
.curael-author-career-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.curael-career-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid #15803d;
}

.curael-career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curael-career-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.6;
}

.curael-career-list li:last-child {
    border-bottom: none;
}

/* 전문 분야 */
.curael-specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.curael-specialty-item {
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.curael-specialty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.curael-specialty-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #141414;
    margin: 0 0 8px;
}

.curael-specialty-item p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* 출간 저서 */
.curael-books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.curael-book-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.curael-book-link:hover {
    transform: translateY(-4px);
}

.curael-book-link:hover .curael-book-title {
    color: #15803d;
}

.curael-book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 12px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.curael-book-link:hover .curael-book-cover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

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

.curael-book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #141414;
    margin: 0;
    line-height: 1.45;
    transition: color 0.2s ease;
}

/* 책 그리드 태블릿 (1024px 이하): 5열 → 3열 */
@media (max-width: 1024px) {
    .curael-books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 최신 글 그리드 */
.curael-author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.curael-author-post-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.curael-author-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.curael-author-post-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.curael-author-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.curael-author-post-card:hover .curael-author-post-thumb img {
    transform: scale(1.05);
}

.curael-author-post-info {
    padding: 16px 20px 20px;
}

.curael-author-post-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.45;
}

.curael-author-post-info h3 a {
    color: #141414;
    text-decoration: none;
}

.curael-author-post-info h3 a:hover {
    color: #15803d;
}

.curael-author-post-info time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.curael-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 40px 0;
}

/* Placeholder 텍스트 */
.curael-placeholder-text {
    color: #d1d5db !important;
    font-style: italic;
}

/* Author 반응형 */
@media (max-width: 768px) {
    .curael-author-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .curael-avatar-img {
        width: 120px;
        height: 120px;
    }

    .curael-author-name {
        font-size: 1.75rem;
    }

    .curael-author-career-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .curael-specialty-grid {
        grid-template-columns: 1fr;
    }

    .curael-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .curael-author-posts-grid {
        grid-template-columns: 1fr;
    }

    .curael-author-section {
        padding: 40px 16px;
    }

    .curael-author-hero {
        padding: 40px 16px;
    }
}


/* 2026-09-23: default page template (e.g. /en/) — single column; overrides .home #main grid */
body.page-template-default #main.site-main{display:block !important;grid-template-columns:none !important;padding:0 24px !important;}
body.page-template-default .inside-article{display:block !important;}
body.page-template-default .entry-content{max-width:860px;margin:0 auto;line-height:1.8;}
body.page-template-default .entry-content h2{margin-top:2.2em;}
