/* ============================================
   프린트놀이 (PrintNori) — 디자인 시스템
   "따뜻하지만 깔끔한, 과하지 않은 파스텔"
   ============================================ */

/* Pretendard 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    /* 메인 컬러 */
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #fce7f3;
    --primary-50: #fdf2f8;

    /* 카테고리별 컬러 */
    --cat-worksheet: #ec4899;
    --cat-worksheet-light: #fce7f3;
    --cat-routine: #8b5cf6;
    --cat-routine-light: #ede9fe;
    --cat-reward: #f59e0b;
    --cat-reward-light: #fef3c7;

    /* 중립 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* 상태 */
    --success: #10b981;
    --success-light: #d1fae5;

    /* 레이아웃 */
    --max-width: 1100px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== 공통 버튼 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ===== 배지 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-ready {
    background: var(--success-light);
    color: #065f46;
}

.badge-soon {
    background: var(--gray-100);
    color: var(--gray-400);
}

.badge-age {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ============================================
   히어로 섹션 (메인 페이지)
   ============================================ */
.hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 40%, #fbcfe8 100%);
    padding: 2rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-logo {
    height: 44px;
    margin-bottom: 0.4rem;
}

.header-logo {
    height: 32px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--gray-500);
}

/* ============================================
   카테고리 네비게이션 카드
   ============================================ */
.category-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 780px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.category-nav-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.category-nav-card:nth-child(1):hover { border-color: var(--cat-worksheet); }
.category-nav-card:nth-child(2):hover { border-color: var(--cat-routine); }
.category-nav-card:nth-child(3):hover { border-color: var(--cat-reward); }

.category-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-nav-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.category-nav-card:nth-child(1) .category-nav-icon { background: var(--cat-worksheet-light); }
.category-nav-card:nth-child(2) .category-nav-icon { background: var(--cat-routine-light); }
.category-nav-card:nth-child(3) .category-nav-icon { background: var(--cat-reward-light); }

.category-nav-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.category-nav-count {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ============================================
   메인 컨텐츠 영역
   ============================================ */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ===== 섹션 ===== */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}

.section-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 400;
    margin-top: 0.2rem;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.7;
}

/* ============================================
   콘텐츠 그리드 & 카드
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.content-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1.5px solid var(--gray-100);
}

.content-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.content-card.card-soon {
    opacity: 0.55;
}

.content-card.card-soon:hover {
    opacity: 0.75;
}

.content-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.content-card-body {
    flex: 1;
    min-width: 0;
}

.content-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.15rem;
    line-height: 1.35;
}

.content-card-subtitle {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 0.45rem;
}

.content-card-meta {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.content-card-meta span {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    color: var(--gray-500);
    font-weight: 500;
}

.meta-age {
    background: var(--primary-50) !important;
    color: var(--primary) !important;
}

/* ============================================
   검색
   ============================================ */
.search-container {
    max-width: 560px;
    margin: 0 auto 3.5rem;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--gray-200);
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1), var(--shadow-md);
}

.search-icon {
    font-size: 1.1rem;
    margin-right: 0.6rem;
    color: var(--gray-400);
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    font-family: inherit;
    color: var(--gray-800);
}

#searchInput::placeholder {
    color: var(--gray-300);
}

/* 자동완성 */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.15rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-50);
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover {
    background: var(--primary-50);
}

.autocomplete-item .calc-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    width: 36px;
    text-align: center;
}

.autocomplete-item .calc-info { flex: 1; }

.autocomplete-item .calc-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.1rem;
}

.autocomplete-item .calc-name strong {
    color: var(--primary);
}

.autocomplete-item .calc-category {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.no-results-large {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-400);
    font-size: 1rem;
}

/* ============================================
   공통 헤더 (서브 페이지)
   ============================================ */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-100);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { text-decoration: none; }

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gray-600);
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.nav-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-icon { font-size: 0.95rem; }
.nav-text { font-size: 0.82rem; }

/* ============================================
   카테고리 히어로 (카테고리 페이지)
   ============================================ */
.category-hero {
    background: linear-gradient(135deg, var(--cat-worksheet-light) 0%, #fce7f3 100%);
    text-align: center;
    padding: 3rem 2rem 3.5rem;
}

.category-hero h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.category-hero p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.category-hero-routine {
    background: linear-gradient(135deg, var(--cat-routine-light) 0%, #e0e7ff 100%);
}

.category-hero-reward {
    background: linear-gradient(135deg, var(--cat-reward-light) 0%, #fef3c7 100%);
}

/* ============================================
   자료 상세 페이지
   ============================================ */
.content-detail-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-light) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-detail-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0.6rem;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.content-detail-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}

.content-detail-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
}

.detail-main { min-width: 0; }

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 프린트 영역 */
.print-area {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-100);
}

.print-placeholder {
    text-align: center;
    padding: 2rem 1rem;
}

.print-placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.print-placeholder h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
}

.print-guide {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin: 0.75rem 0 1.25rem;
}

.btn-print {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(236,72,153,0.3);
}

.btn-print-large {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print-large:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236,72,153,0.3);
}

.coming-soon {
    text-align: center;
    padding: 3rem 1rem;
}

.coming-soon-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.coming-soon h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--gray-400);
}

.coming-soon p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.coming-soon-box {
    text-align: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px dashed var(--gray-300);
}

/* 사이드바 */
.sidebar-box {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem;
    border: 1px solid var(--gray-100);
}

.sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--gray-100);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    font-size: 0.85rem;
}

.info-label { color: var(--gray-400); }

/* 관련 자료 */
.related-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-50);
    transition: all 0.15s;
}

.related-item:last-child { border-bottom: none; }

.related-item:hover {
    background: var(--primary-50);
    margin: 0 -0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.related-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.related-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* 콘텐츠 설명 */
.content-description {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
}

.content-description h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--gray-800);
}

.content-description p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.seo-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.seo-block h3 {
    margin-top: 0;
}

.recommend-list {
    list-style: none;
    padding: 0;
}

.recommend-list li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.recommend-list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.8rem;
}

.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.75rem;
}

.tag {
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   푸터
   ============================================ */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--gray-400);
    font-size: 0.82rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 2rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    margin: 0 0.4rem;
    transition: color 0.2s;
}

footer a:hover { color: var(--primary); }

.footer-divider { color: var(--gray-300); }

/* 404 */
.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h2 {
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.not-found a { color: var(--primary); }

/* ============================================
   반응형 — 모바일
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .category-nav {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-top: -1.5rem;
        max-width: 400px;
    }

    .category-nav-card {
        flex-direction: row;
        text-align: left;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .category-nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .section-header h2 {
        font-size: 1.15rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .content-detail-header h2 {
        font-size: 1.3rem;
    }

    .category-hero h2 {
        font-size: 1.4rem;
    }

    .category-hero {
        padding: 1.75rem 1.25rem;
    }

    main {
        padding: 0 1rem 2rem;
    }

    /* 모바일에서 sticky 헤더 해제 */
    .main-header {
        position: relative;
    }

    .header-content {
        padding: 0.5rem 1rem;
    }

    .logo { font-size: 1.1rem; }

    .nav-text { display: none; }

    .nav-link {
        padding: 0.35rem 0.5rem;
        gap: 0;
    }
}

/* ============================================
   즐겨찾기 / 링크복사 버튼
   ============================================ */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.action-btn.bookmarked {
    background: var(--cat-reward-light);
    border-color: var(--cat-reward);
    color: #92400e;
}

/* 토스트 알림 */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-800);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SEO — FAQ 섹션
   ============================================ */
.faq-section {
    max-width: var(--max-width);
    margin: -1rem auto 0;
    padding: 0 1.5rem;
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background 0.15s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--gray-400);
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* SEO 본문 텍스트 */
.seo-text {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    color: var(--gray-400);
    font-size: 0.82rem;
    line-height: 1.8;
}

.seo-text h3 {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

.seo-text p {
    margin-bottom: 0.5rem;
}

/* ============================================
   프린트 콘텐츠 (실제 인쇄물)
   ============================================ */
.print-sheet {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.print-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}

.print-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.print-name-field {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.print-footer-text {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-300);
    margin-top: 1.5rem;
}

.print-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
}

.print-goal-field {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 2;
}

/* 스티커 그리드 */
.sticker-grid {
    display: grid;
    gap: 0.5rem;
}

.sticker-grid-30 {
    grid-template-columns: repeat(6, 1fr);
}

.sticker-grid-20 {
    grid-template-columns: repeat(5, 1fr);
}

.sticker-cell {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    transition: border-color 0.2s;
}

.sticker-cell:hover {
    border-color: var(--primary);
}

.sticker-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-400);
}

.sticker-label {
    font-size: 0.55rem;
    color: var(--gray-400);
    text-align: center;
}

/* 테이블 */
.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.print-table th {
    background: var(--gray-50);
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-weight: 700;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    font-size: 0.82rem;
}

.print-table td {
    padding: 0.5rem 0.4rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.check-td {
    width: 50px;
    height: 36px;
}

.sticker-td {
    width: 60px;
    height: 50px;
}

.week-complete {
    background: var(--cat-reward-light);
}

.habit-table .habit-col {
    width: 120px;
    text-align: left;
}

.habit-name {
    text-align: left !important;
    font-weight: 600;
    font-size: 0.82rem;
}

/* 루틴 리스트 */
.routine-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.routine-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.routine-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.routine-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.routine-text {
    flex: 1;
}

.routine-main {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.routine-desc {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.routine-check {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ===== 따라쓰기 ===== */
.tracing-grid {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tracing-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tracing-model {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-800);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.tracing-cell {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tracing-guide {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-200);
}

.tracing-count {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    margin-left: 0.5rem;
    flex-wrap: wrap;
    max-width: 120px;
}

.count-dot {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50%;
    display: inline-block;
}

/* ===== 선긋기 SVG ===== */
.line-tracing-svg {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* ===== 독서기록표 ===== */
.reading-log-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    white-space: nowrap;
}

.form-line {
    flex: 1;
    height: 1px;
    border-bottom: 1.5px solid var(--gray-300);
}

.form-field-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawing-box {
    width: 100%;
    height: 200px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.writing-box {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.writing-box-sm { height: 100px; }

.star-rating {
    font-size: 1.5rem;
    color: var(--cat-reward);
    letter-spacing: 0.3rem;
}

.emotion-select {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== 감정 기록표 ===== */
.emotion-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.emotion-day {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.emotion-day-name {
    font-weight: 700;
    font-size: 0.88rem;
    width: 55px;
    flex-shrink: 0;
    color: var(--gray-700);
}

.emotion-faces {
    display: flex;
    gap: 0.4rem;
    font-size: 1.3rem;
}

.emotion-faces span {
    opacity: 0.35;
    cursor: default;
}

.emotion-reason {
    flex: 1;
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: right;
}

/* ===== 가족 약속표 ===== */
.promise-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promise-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.promise-line {
    flex: 1;
    height: 1px;
    border-bottom: 1.5px solid var(--gray-300);
    min-height: 30px;
}

.promise-sign {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.sign-box {
    text-align: center;
}

.sign-label {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.sign-line {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ============================================
   프린트 미디어 쿼리
   ============================================ */
@media print {
    header, .main-header, .hero, footer,
    .content-detail-header, .detail-sidebar,
    .content-description, .breadcrumb,
    .btn-print, .btn-print-large, .print-guide,
    .search-container, .category-nav {
        display: none !important;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    main {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .detail-layout { display: block; }

    .print-area {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
    }
}
