/* ==========================================================================
   AtoZ 50-Episode Master Bible Stylesheet (src/modules/atoz/atoz.css)
   - Two-Tone Typography: Main 85% (#1e293b / rgba(0,0,0,0.85)), Sub 60% (#64748b)
   - Titles same font size (1em/1.1em), differentiated strictly by bold weight (800)
   - SEO / GEO Optimized Structures: TL;DR Box, Quote Blocks, Step Badges
   ========================================================================== */

:root {
    --atoz-bg: #F2F1ED;
    --atoz-card-bg: #FFFFFF;
    --atoz-border: #E2E8F0;
    --atoz-text-main: rgba(0, 0, 0, 0.85);
    --atoz-text-sub: rgba(0, 0, 0, 0.60);
    --atoz-title: #18181B;
    --atoz-accent: #EF6A45;
    --atoz-chalk: #DED9D3;
    --atoz-dark: #18181B;
}

/* 1. Main View Container */
#view-airbnb,
.atoz-guide-container {
    width: 100%;
    min-height: 100vh;
    background: var(--atoz-bg);
    color: var(--atoz-text-main);
    box-sizing: border-box;
    padding: 0;
}

/* 2. AtoZ Header & Filter Hub */
.atoz-header-section {
    background: #ffffff;
    border-bottom: 1px solid var(--atoz-border);
    padding: 48px 20px 32px 20px;
}

.atoz-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.atoz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #18181B;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-size: 11px;
    font-weight: 800;
    border-radius: 99px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.atoz-title-hero {
    font-size: 28px;
    font-weight: 800;
    color: #18181B !important;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.atoz-desc-hero {
    font-size: 15px;
    color: var(--atoz-text-sub);
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

/* 3. Category Part Tabs */
.atoz-module-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 24px 0 8px 0;
    scrollbar-width: none;
}
.atoz-module-tabs::-webkit-scrollbar { display: none; }

.atoz-tab-btn {
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--atoz-text-sub);
    background: #f1f5f9;
    border: 1px solid var(--atoz-border);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.atoz-tab-btn:hover {
    background: #e2e8f0;
    color: #18181B;
}

.atoz-tab-btn.active {
    background: #18181B !important;
    color: #ffffff !important;
    border-color: #18181B !important;
}

/* 4. Episode Detail View (GEMINI.md Rule 5 Compliance) */
.atoz-post-header h1 {
    font-size: clamp(22px, 3.2vw, 28px) !important;
    font-weight: 800 !important;
    color: #18181B !important;
    line-height: 1.35 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 16px 0 !important;
    text-align: left !important;
}

.atoz-post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
    line-height: 1.85;
}

/* Strict Typography - Two-Tone Rule */
.atoz-post-container h2,
.atoz-post-container h3,
.atoz-post-container h4 {
    font-size: 1.15em !important;
    font-weight: 800 !important;
    color: #18181B !important;
    margin: 36px 0 16px 0 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.3px !important;
}

.atoz-post-container p,
.atoz-post-container li {
    font-size: 15.5px !important;
    color: var(--atoz-text-main) !important;
    margin-bottom: 18px !important;
    word-break: keep-all !important;
}

/* TL;DR Executive Summary Box for Google AI Overviews / GEO */
.geo-tldr {
    background: rgba(222, 217, 211, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    padding: 24px;
    margin: 28px 0 36px 0;
}

/* AI 작성 티가 나는 모든 두꺼운 왼쪽 라인(border-left) 강제 무력화 및 모던 1px 통일 */
.geo-tldr,
.atoz-post-container blockquote,
.atoz-editorial-body blockquote,
.atoz-post-content-body blockquote,
.atoz-post-container [style*="border-left"],
.atoz-editorial-body [style*="border-left"],
.atoz-post-content-body [style*="border-left"] {
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    font-style: normal !important;
}

.geo-tldr-title {
    font-size: 14px;
    font-weight: 800;
    color: #18181B !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.geo-tldr ul {
    margin: 0;
    padding-left: 20px;
}

.geo-tldr li {
    font-size: 14.5px !important;
    color: var(--atoz-text-main) !important;
    margin-bottom: 8px !important;
    font-weight: 600;
}

/* Legal Disclaimer & Footnotes */
.atoz-disclaimer {
    border-top: 1px solid var(--atoz-border);
    padding-top: 24px;
    margin-top: 48px;
    font-size: 13px !important;
    color: var(--atoz-text-sub) !important;
    line-height: 1.6;
}

/* 5. AtoZ Sidebar Curriculum Accordion Anti-Clipping & Height Normalization */
.atoz-sidebar-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.atoz-sidebar-mod-section {
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s ease;
}

.atoz-sidebar-mod-toggle-btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    text-align: left !important;
    transition: background 0.15s ease;
}

.atoz-sidebar-mod-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
}

.atoz-sidebar-mod-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* 6. Current Post Highlight (Strict Coral Red & Zero Blue) */
.atoz-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.atoz-sidebar-item:hover {
    background: #f8fafc;
}
.atoz-sidebar-item:hover .atoz-sidebar-item-title {
    color: #18181B;
}
.atoz-sidebar-item-step {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}
.atoz-sidebar-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atoz-sidebar-item.current {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    pointer-events: none;
    padding-left: 10px;
}
.atoz-sidebar-item.current .atoz-sidebar-item-step {
    color: #EF6A45 !important;
    font-weight: 800 !important;
}
.atoz-sidebar-item.current .atoz-sidebar-item-title {
    color: #EF6A45 !important;
    font-weight: 800 !important;
}

.atoz-drawer-item.current {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
}
.atoz-drawer-item.current .atoz-sidebar-item-step {
    color: #EF6A45 !important;
    font-weight: 800 !important;
}
.atoz-drawer-item.current .atoz-sidebar-item-title {
    color: #EF6A45 !important;
    font-weight: 800 !important;
}

/* 7. Hashtag Plain Text Tags (No Button/Pill Style & Light Font) */
.atoz-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    line-height: 1.6;
}
.atoz-tag-text {
    font-size: 13px;
    font-weight: 300 !important;
    color: var(--atoz-text-sub, rgba(0, 0, 0, 0.50));
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: -0.2px;
    display: inline-block;
    transition: color 0.15s ease;
}
.atoz-tag-text:hover {
    color: #EF6A45;
}

/* place.css와 같은 규칙 (2026-11-06): 지금까지 place.css가 이 파일 뒤에서 가이드 글의 요약 상자를 덮어써 왔다.
   place.css를 숙소 화면에서만 받게 되어 같은 결과가 나오도록 여기에 둔다 (값을 바꿀 때는 두 곳을 함께) */
.geo-tldr {
    border: none;
    border-left: 3px solid var(--stay-ink);
    background: transparent;
    border-radius: 0;
    padding: 4px 0 4px 18px;
    margin-bottom: 24px;
}

.geo-tldr-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--stay-ink);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}
