html { overflow-x: hidden; }
/* === Wawa Common CSS === */

/* 기본 entry-header 숨기기 */
.entry-header { display: none !important; }

/* Grid container 확장 */
.grid-container { max-width: 1500px !important; width: 100% !important; }
body.single-post .site-content { padding: 0 !important; }
body.single-post .site-main { margin: 0 !important; }
.site-content .content-area { overflow: visible !important; }
.site-content .content-area,
.inside-article { max-width: 1500px !important; width: 100% !important; padding: 0 !important; margin: 0 auto !important; overflow: visible !important; }

/* === 리뷰 헤더 (Hero) CSS === */
.wawa-review-header {
    background: #f8f9fc;
    color: #16a34a;
    position: relative;
    z-index: 1;
    margin-top: -30px;
    margin-bottom: 0;
}
.wawa-review-header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9999px;
    right: -9999px;
    background: #f8f9fc;
    z-index: -1;
}
.wawa-rh-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 0 28px;
    text-align: left;
}
.wawa-rh-breadcrumb {
    display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
    font-size: 0.85em; margin-bottom: 28px; color: #6b7280;
}
.wawa-rh-breadcrumb a { color: #6b7280; text-decoration: none; transition: color 0.2s; }
.wawa-rh-breadcrumb a:hover { color: #DC2626; }
.wawa-rh-breadcrumb span { margin: 0 6px; }
.wawa-rh-bc-current { color: #1f2937; }
.wawa-rh-hero { display: flex; flex-direction: row; align-items: stretch; gap: 32px; }
.wawa-rh-hero-left { flex: 0 0 50%; min-width: 0; }
.wawa-rh-hero-right { flex: 0 0 50%; min-width: 0; }
.wawa-rh-hero-right img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.wawa-rh-title { font-size: 2em; font-weight: 800; line-height: 1.3; margin: 0 0 12px; color: #111827; border: none; padding: 0; }
.wawa-rh-subtitle { font-size: 1.05em; color: #4b5563; margin: 0 0 24px; line-height: 1.5; }
.wawa-rh-meta-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wawa-rh-namelogo { height: 30px; width: auto; vertical-align: middle; margin-right: 8px; }
.wawa-rh-date { font-size: 0.85em; color: #6b7280; }
.wawa-rh-placeholder { width: 100%; height: auto; min-height: 280px; background: #f3f4f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 3em; }
.wawa-rh-disclaimer-bar { background: #fef2f2; color: #991b1b; font-size: 0.82em; padding: 16px 20px; width: 100%; margin: 0; box-sizing: border-box; line-height: 1.5; border-top: 1px solid #fecaca; }
.wawa-rh-disclaimer-bar strong { color: #dc2626; margin-right: 6px; }
.disclaimer-content { position: relative; max-height: 2.9em; overflow: hidden; line-height: 1.45; margin-top: 4px; }
.disclaimer-content.expanded { max-height: none; }
.disclaimer-content.expanded .disclaimer-toggle { position: static; background: none; padding-left: 6px; }
.disclaimer-toggle { position: absolute; bottom: 0; right: 0; color: #dc2626; cursor: pointer; font-weight: 700; white-space: nowrap; padding-left: 50px; background: linear-gradient(to right, transparent, #fef2f2 35%); }
.disclaimer-toggle:hover { text-decoration: underline; }
.disclaimer-text { display: inline; }

/* Filter buttons */
.wawa-filter-btn { padding: 8px 20px; border: 2px solid #e5e7eb; border-radius: 24px; background: #fff; color: #374151; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.wawa-filter-btn:hover { border-color: #DC2626; color: #DC2626; }
.wawa-filter-btn.wawa-filter-active { background: #DC2626; color: #fff; border-color: #DC2626; }

/* 인트로 라인 */
.wawa-intro-line { width: 60px; height: 3px; background: #e94560; margin: 16px auto 0; border-radius: 2px; }

/* === 본문 + 사이드바 레이아웃 === */
html { scroll-padding-top: 120px; }
.wawa-review-layout { display: flex; gap: 32px; max-width: 1500px; margin: 0 auto; padding: 30px 0; }
.wawa-review-main { flex: 1; min-width: 0; }
.wawa-review-sidebar-wrap { width: 340px; flex-shrink: 0; }
.wawa-review-sidebar-wrap > * { width: 100% !important; box-sizing: border-box !important; }
.wawa-review-sidebar.wawa-review-news-box { position: static; width: 100%; margin-bottom: 20px; }
.wawa-review-sidebar { width: 100%; box-sizing: border-box; flex-shrink: 0; position: static; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 24px; max-height: calc(100vh - 120px); overflow-y: auto; }
.wawa-review-sidebar-title { font-size: 22px; font-weight: 800; color: #1a1a2e; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 3px solid #DC2626; }
.wawa-review-news-list { list-style: none; margin: 0; padding: 0; }
.wawa-review-news-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f3f4f6; }
.wawa-review-news-list li:last-child { border-bottom: none; }
.wawa-review-news-thumb { width: 90px; height: 68px; border-radius: 6px; background: #e5e7eb; flex-shrink: 0; overflow: hidden; }
.wawa-review-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wawa-review-news-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wawa-review-news-cat { color: #DC2626; font-size: 12px; font-weight: 800; }
.wawa-review-news-info a { color: #374151; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wawa-review-news-info a:hover { color: #DC2626; }
.wawa-review-news-empty { color: #9ca3af; font-size: 14px; padding: 20px 0; }

/* TOC 사이드바 (sticky) */
.wawa-review-toc-box { position: sticky; top: 100px; width: 100%; box-sizing: border-box; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 24px; }
.wawa-review-toc-title { font-size: 22px; font-weight: 800; color: #1a1a2e; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 3px solid #DC2626; }
.wawa-review-toc-list { list-style: none; margin: 0; padding: 0; }
.wawa-review-toc-item { padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 15.5px; line-height: 1.5; }
.wawa-review-toc-item:last-child { border-bottom: none; }
.wawa-review-toc-item a { color: #374151; text-decoration: none; display: block; padding: 2px 8px; border-radius: 4px; transition: all 0.2s; }
.wawa-review-toc-item a:hover { color: #DC2626; background: #fff; }

/* === 본문 스타일 === */
.wawa-review-main h2 { font-size: 1.65em; font-weight: 800; color: #1a1a2e; border-left: 4px solid #DC2626; border-bottom: none; padding: 0 0 0 16px; margin: 2.8em 0 1em; line-height: 1.35; }
.wawa-review-main h2:first-of-type { margin-top: 1.5em; }
.wawa-review-main h3 { font-size: 1.2em; font-weight: 700; color: #1f2937; margin: 2em 0 0.7em; padding-bottom: 6px; border-bottom: 2px solid #e5e7eb; line-height: 1.4; }
.wawa-review-main p { font-size: 1.02em; line-height: 1.85; color: #374151; margin-bottom: 1.2em; }
.wawa-review-main strong { color: #1f2937; }
.wawa-review-main > ul, .wawa-review-main > div > ul { list-style: none; padding-left: 0; margin: 1em 0 1.5em; }
.wawa-review-main > ul > li, .wawa-review-main > div > ul > li { position: relative; padding: 8px 0 8px 28px; line-height: 1.75; font-size: 1em; color: #374151; border-bottom: 1px solid #f3f4f6; }
.wawa-review-main > ul > li:last-child, .wawa-review-main > div > ul > li:last-child { border-bottom: none; }
.wawa-review-main > ul > li::before, .wawa-review-main > div > ul > li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; background: #DC2626; border-radius: 50%; }
.wawa-review-main > ol, .wawa-review-main > div > ol { padding-left: 0; counter-reset: ol-counter; list-style: none; margin: 1em 0 1.5em; }
.wawa-review-main > ol > li, .wawa-review-main > div > ol > li { counter-increment: ol-counter; position: relative; padding: 8px 0 8px 36px; line-height: 1.75; border-bottom: 1px solid #f3f4f6; }
.wawa-review-main > ol > li::before, .wawa-review-main > div > ol > li::before { content: counter(ol-counter); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; background: #DC2626; color: #fff; border-radius: 50%; font-size: 0.78em; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 테이블 */
.wawa-review-main table.review-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; margin: 1.5em 0; border: 1px solid #e5e7eb; font-size: 0.95em; }
.wawa-review-main table.review-table thead th { background: #1a1a2e; color: #fff; padding: 13px 16px; text-align: left; font-weight: 700; font-size: 0.92em; }
.wawa-review-main table.review-table tbody td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.wawa-review-main table.review-table tbody tr:nth-child(even) { background: #f9fafb; }
.wawa-review-main table.review-table tbody tr:hover { background: #fef2f2; }
.wawa-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; max-width: 100%; }

/* FAQ */
.faq-list { margin: 1.5em 0; }
.faq-list details.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow 0.2s; overflow: hidden; }
.faq-list details.faq-item[open] { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.faq-list details.faq-item summary { padding: 16px 20px; font-weight: 700; font-size: 1.02em; color: #1f2937; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; transition: background 0.2s; }
.faq-list details.faq-item summary::-webkit-details-marker { display: none; }
.faq-list details.faq-item summary::before { content: "+"; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; min-width: 26px; background: #f3f4f6; border-radius: 50%; font-size: 1.1em; font-weight: 700; color: #DC2626; transition: all 0.2s; }
.faq-list details.faq-item[open] summary::before { content: "\2212"; background: #DC2626; color: #fff; }
.faq-list details.faq-item summary:hover { background: #fafafa; }
.faq-list details.faq-item > p { padding: 0 20px 16px; margin: 0; color: #4b5563; line-height: 1.8; border-top: 1px solid #f0f0f0; }

/* 결론 카드 */
.conclusion-card { background: #f8f9fc; color: #374151; border: 1px solid #e5e7eb; border-left: 4px solid #DC2626; border-radius: 14px; padding: 28px 32px; margin: 30px 0; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.conclusion-card h3 { color: #1a1a2e; border-bottom: none; margin-top: 0; }
.conclusion-card ol li { color: #1a1a2e !important; }
.conclusion-card a { color: #DC2626 !important; }

/* === 통계 카드 행 === */
.wawa-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 1.5em 0 2em;
}
.wawa-stat-card {
    background: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wawa-stat-card.accent {
    background: #fef2f2;
    border-color: #fecaca;
}
.wawa-stat-number {
    font-size: 1.6em;
    font-weight: 800;
    color: #1a1a2e;
}
.wawa-stat-card.accent .wawa-stat-number {
    color: #DC2626;
}
.wawa-stat-label {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 500;
}

/* === 콜아웃 박스 === */
.wawa-callout {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 1.5em 0;
    line-height: 1.75;
    font-size: 0.98em;
    color: #1e3a5f;
}
.wawa-callout strong { color: #1e40af; }
.wawa-callout.warning {
    background: #fefce8;
    border-left-color: #eab308;
    color: #713f12;
}
.wawa-callout.warning strong { color: #92400e; }
.wawa-callout.info {
    background: #f0fdf4;
    border-left-color: #16a34a;
    color: #15503c;
}
.wawa-callout.info strong { color: #166534; }
.wawa-callout ul { list-style: none; padding-left: 0; margin: 10px 0 0; }
.wawa-callout ul li { padding: 4px 0 4px 20px; position: relative; }
.wawa-callout ul li::before { content: "\2022"; position: absolute; left: 4px; color: inherit; font-weight: 700; }

/* === 피처 카드 그리드 === */
.wawa-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5em 0;
}
.wawa-feature-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.wawa-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wawa-feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.wawa-feature-icon {
    font-size: 1.8em;
    margin-bottom: 10px;
}
.wawa-feature-card h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.wawa-feature-card p {
    font-size: 0.92em;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* 포스트 네비게이션/메타 숨기기 */
.single-post .post-navigation, .single-post .nav-links { display: none !important; }
.single-post footer.entry-meta, .single-post .cat-links { display: none !important; }

/* === 반응형 === */
@media (max-width: 1200px) {
    .wawa-review-layout { padding: 30px 20px; }
    .wawa-review-sidebar-wrap { width: 300px; }
}
@media (max-width: 1024px) {
    .wawa-rh-inner { padding-left: 20px; padding-right: 20px; }
    .wawa-rh-disclaimer-bar { padding-left: 20px; padding-right: 20px; }
    .wawa-review-layout { flex-direction: column; padding: 20px 16px; }
    .wawa-review-main { max-width: 100%; }
    .wawa-review-sidebar-wrap { width: 100%; }
    .wawa-review-sidebar { width: 100%; position: static; max-height: none; }
    .wawa-review-toc-box { position: static; }
    .wawa-feature-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wawa-rh-inner { padding-left: 16px; padding-right: 16px; }
    .wawa-rh-disclaimer-bar { padding-left: 16px; padding-right: 16px; }
    .wawa-rh-title { font-size: 1.5em; }
    .wawa-rh-hero { flex-direction: column; gap: 20px; }
    .wawa-rh-hero-left, .wawa-rh-hero-right { flex: 0 0 100%; width: 100%; }
    .wawa-rh-placeholder { height: 200px; }
    .wawa-review-main h2 { font-size: 1.35em; margin-top: 2em; }
    .wawa-review-main h3 { font-size: 1.08em; }
    .conclusion-card { padding: 20px 18px; }
    .wawa-stat-row { grid-template-columns: 1fr; }
    .wawa-feature-grid, .wawa-feature-grid.cols-3 { grid-template-columns: 1fr; }
}

/* === Mobile overflow fix: constrain all wide elements === */
@media (max-width: 768px) {
    .wawa-rh-inner,
    .wawa-custom-nav,
    .wawa-nav-container,
    .wawa-review-layout,
    .wawa-review-main,
    .wawa-footer,
    .wawa-footer-inner,
    .wawa-footer-disclaimer,
    .wawa-footer-disclaimer-box,
    .wawa-footer-copyright,
    .wawa-news-back-btn,
    .entry-content,
    .inside-article,
    .site-content .content-area {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    body.single .site,
    .wawa-review-header { width: 100vw !important; max-width: none !important; left: 50% !important; transform: translateX(-50%) !important; }
    body.single #page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}
