* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #000; color: #fff; min-height: 100vh; line-height: 1.7; }
        a { text-decoration: none; color: #ff6b00; }
        
        .header { background: #000; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 100; }
        .header-left { display: flex; align-items: center; gap: 15px; }
        .back-btn { color: #b8b8b8; font-size: 20px; text-decoration: none; }
        .logo { font-size: 20px; font-weight: 700; text-decoration: none; }
        .logo span:first-child { color: #ff6b00; }
        .logo span:last-child { color: #fff; }
        .menu-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
        
        .post-header { padding: 20px 15px; border-bottom: 1px solid #222; }
        .post-category { display: inline-block; background: #3d2814; color: #ff6b00; font-size: 11px; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; }
        .post-meta { display: flex; gap: 15px; font-size: 13px; color: #b8b8b8; }
        .post-meta span { display: flex; align-items: center; gap: 5px; }
        
        .post-content { padding: 20px 15px; overflow-wrap: anywhere; } .post-content * { min-width: 0; } .post-content .tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; } .post-content .tw table { width: 100%; min-width: max-content; border-collapse: collapse; }
        /* 2026-09-17: CMS 본문 컨테이너가 table-layout:fixed 를 !important 로 걸어 칸이 균등분할되는 문제.
           내용과 무관하게 나눠지는 탓에 산문 칸이 눌려 글이 3줄로 꺾인다(390px 실측: 3칸 120px·줄높이 71px).
           fixed 만 되돌려 내용 기준으로 폭을 잡게 하고, 넘치는 만큼은 .tw 가 가로 스크롤한다.
           본문 style 의 !important 를 이기려면 여기도 !important + 더 높은 특이도가 필요하다.
           table-layout 기본값이 auto 이므로 이 규칙이 없던 표에는 아무 영향이 없다.
           또 본문 style 이 좁은 폭에서 table 에 display:block 을 걸면(반응형 표 상투수단) 표가 블록 상자가 되고
           안쪽 진짜 표는 내용 폭만 잡아, 테두리·배경만 100% 를 채우고 오른쪽에 빈칸이 남는다
           (768px 실측: 블록 738px vs 헤더띠 475px = 공백 257px). display 를 table 로 되돌리고
           가로 스크롤은 .tw 래퍼가 맡는다. */
        .post-content .tw table { table-layout: auto !important; display: table !important; }
        .post-content h2 { font-size: 20px; color: #ff6b00; margin: 30px 0 15px; padding-bottom: 8px; border-bottom: 1px solid #333; }
        .post-content h3 { font-size: 17px; color: #ff8533; margin: 25px 0 12px; }
        .post-content h2:first-child, .post-content h3:first-child { margin-top: 0; }
        .post-content p { margin-bottom: 18px; color: #ddd; }
        .post-content ul, .post-content ol { margin: 0 0 18px 25px; color: #ddd; }
        .post-content li { margin-bottom: 8px; }
        .post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
        .post-content strong { color: #ff6b00; }
        .post-content a { color: #ff6b00; }
        .post-content blockquote { background: #111; border-left: 3px solid #ff6b00; padding: 15px 20px; margin: 20px 0; font-style: italic; color: #bbb; }
        
        /* Related Guides - Sleek Accordion List */
        .related-guides {
            padding: 0 15px 30px;
        }
        .related-guides .rg-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        .related-guides .rg-header h3 {
            font-size: 15px;
            font-weight: 700;
            color: #fff;
            margin: 0;
        }
        .related-guides .rg-badge {
            font-size: 11px;
            font-weight: 600;
            color: #ff6b00;
            background: rgba(255, 107, 0, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
        }
        .related-guides .rg-region-block {
            margin-bottom: 8px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #2e2e2e;
            background: #141414;
        }
        .related-guides .rg-region-block:first-of-type { border-radius: 10px; }
        .related-guides .rg-region-block:last-of-type { border-radius: 10px; }
        .related-guides .rg-region-block:only-of-type { border-radius: 10px; }
        .related-guides .rg-region-top {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            background: #181818;
            border-bottom: 1px solid #262626;
        }
        .related-guides .rg-region-mark { width: 8px; height: 8px; border-radius: 2px; background: #ff7b00; flex-shrink: 0; }
        .related-guides .rg-region-name {
            font-size: 13px;
            font-weight: 600;
            color: #ccc;
            flex: 1;
        }
        .related-guides .rg-region-count {
            font-size: 11px;
            color: #b8b8b8;
            background: #111;
            padding: 2px 8px;
            border-radius: 4px;
        }
        .related-guides .rg-items { background: #080808; display: grid; grid-template-columns: 1fr 1fr; }
        .related-guides .rg-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 12px 11px 32px;
            text-decoration: none;
            color: #b8b8b8;
            font-size: 12.5px;
            font-weight: 500;
            border-top: 1px solid #111;
            border-right: 1px solid #111;
            transition: all 0.2s ease;
            position: relative;
        }
        .related-guides .rg-item:nth-child(odd) { border-right: 1px solid #111; }
        .related-guides .rg-item:nth-child(even) { border-right: none; }
        .related-guides .rg-item::before {
            content: '';
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #222;
            transition: all 0.2s;
        }
        .related-guides .rg-item:hover {
            background: rgba(255, 107, 0, 0.04);
            color: #ff8c33;
            padding-left: 36px;
        }
        .related-guides .rg-item:hover::before {
            background: #ff6b00;
            box-shadow: 0 0 8px rgba(255, 107, 0, 0.4);
        }
        .related-guides .rg-item-title { flex: 1; line-height: 1.3; overflow-wrap: break-word; word-break: keep-all; }
        .related-guides .rg-item-arrow {
            font-size: 14px;
            color: #b8b8b8;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .related-guides .rg-item:hover .rg-item-arrow {
            color: #ff6b00;
            transform: translateX(3px);
        }
        .related-guides .rg-item.pillar-link {
            color: #ffb066;
            font-weight: 600;
            padding-left: 12px;
            border-top: none;
            border-left: 3px solid #ff7b00;
            grid-column: 1 / -1;
        }
        .related-guides .rg-item.pillar-link::before { display: none; }
                @media (max-width: 480px) {
            .related-guides .rg-items { grid-template-columns: 1fr; }
            .related-guides .rg-item { border-right: none !important; }
            .related-guides .rg-item.pillar-link { grid-column: auto; }
        }
        
        /* 2026-08-06 Related Guides 아코디언 통합 (2열 · 단일오픈 · 첫 그룹 open) */
        .related-guides .rg-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
        .related-guides details.rg-region-block { margin-bottom: 0; }
        /* 2026-08-06 v2: [open] 전폭 복원 — 반폭 열림은 화면 낭비. 세로 점프는 JS 고정 */
        .related-guides details.rg-region-block { min-width: 0; }
        .related-guides details.rg-region-block[open] { grid-column: 1 / -1; }
        .related-guides summary.rg-region-top { cursor: pointer; list-style: none; }
        .related-guides summary.rg-region-top::-webkit-details-marker { display: none; }
        @media (max-width: 480px) { .related-guides .rg-acc { grid-template-columns: 1fr; } }

        .comments-section { padding: 20px 8px; border-top: 1px solid #222; }
        .comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .comments-title { font-size: 18px; font-weight: 600; }
        .comments-count { color: #b8b8b8; font-size: 14px; }
        
        .comment-form-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .comment-form-wrapper.open { max-height: 500px; }
        
        .add-comment-btn { display: flex; align-items: center; gap: 8px; background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 12px 20px; border-radius: 25px; cursor: pointer; font-size: 14px; margin-bottom: 15px; }
        .add-comment-btn:hover { border-color: #ff6b00; }
        
        .comment-form { background: #111; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
        .comment-form-title { font-size: 14px; margin-bottom: 15px; color: #b8b8b8; }
        /* Login Notice */
        .login-required { background: #111; border: 1px solid #333; border-radius: 10px; padding: 25px; text-align: center; margin-bottom: 25px; }
        .login-required-text { font-size: 14px; color: #b8b8b8; margin-bottom: 15px; }
        .login-required-btn { display: inline-block; background: #ff6b00; color: #000; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
        .login-required-btn:hover { background: #ff8533; }
        /* 2026-10-10: 댓글 「Login」 버튼 글자가 안 보이던 오류 — 위 .post-content a(주황 글자 #ff6b00)가 버튼 글자색(#000)을 이겨 버튼 색과 같아졌다. 글자만 검정으로 되돌린다(모든 글). */
        .post-content .login-required-btn, .post-content .login-required-btn:hover { color: #000; }
        .comment-input-group { margin-bottom: 12px; }
        .comment-input-group input, .comment-input-group textarea { width: 100%; background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 12px; border-radius: 8px; font-size: 16px; }
        .comment-input-group textarea { min-height: 100px; resize: vertical; }
        .comment-input-group input:focus, .comment-input-group textarea:focus { border-color: #ff6b00; outline: none; }
        .comment-input-group input:focus-visible, .comment-input-group textarea:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; }
        
        .captcha-group { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
        .captcha-group label { color: #b8b8b8; font-size: 14px; }
        .captcha-group input { width: 80px; background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; text-align: center; }
        
        .form-buttons { display: flex; gap: 10px; }
        .comment-submit { background: #ff6b00; color: #fff; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; font-size: 14px; font-weight: 600; }
        .comment-submit:hover { background: #ff8533; }
        .comment-cancel { background: #333; color: #fff; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; font-size: 14px; }
        
        .comment-error { background: #ff4444; color: #fff; padding: 10px 15px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; }
        
        .comment-list { display: flex; flex-direction: column; gap: 15px; }
        .comment-item { background: #111; border-radius: 12px; padding: 15px; }
        .comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .comment-author { font-weight: 600; font-size: 14px; }
        .comment-date { color: #b8b8b8; font-size: 12px; }
        .comment-content { color: #ccc; font-size: 14px; line-height: 1.6; }
        .comment-translated { font-size: 10px; color: #4ade80; margin-top: 5px; }
        .comment-lang-row { display: flex; gap: 10px; margin-bottom: 15px; }
        .comment-lang-select { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 12px; color: #fff; font-size: 16px; cursor: pointer; min-width: 90px; }
        .comment-lang-select:focus { outline: none; border-color: #ff6b00; }
        .comment-lang-select:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; }
        .comment-actions { margin-top: 10px; }
        .reply-btn { background: none; border: none; color: #b8b8b8; font-size: 12px; cursor: pointer; padding: 5px 10px; border-radius: 15px; }
        .reply-btn:hover { background: #222; color: #ff6b00; }
        .delete-btn:hover { color: #ff4444; }
        
        .replies { margin-top: 15px; padding-left: 20px; border-left: 2px solid #333; }
        .reply-item { background: #0a0a0a; border-radius: 8px; padding: 12px; margin-top: 10px; }
        
        .reply-form-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin-top: 10px; }
        .reply-form-wrapper.open { max-height: 400px; }
        .reply-form { background: #0a0a0a; border-radius: 8px; padding: 15px; }
        
        .no-comments { text-align: center; color: #b8b8b8; padding: 40px 20px; }
        
        
        @media (min-width: 768px) {
            body { max-width: 768px; margin: 0 auto; }
        }
        
        .admin-actions { display: flex; gap: 10px; padding: 15px; background: #111; border: 1px solid #333; border-radius: 10px; margin: 0 15px 20px; }
        .admin-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; }
        .admin-action-btn.edit { background: #1a2d4d; color: #60a5fa; }
        .admin-action-btn.edit:hover { background: #60a5fa; color: #000; }
        .admin-action-btn.delete { background: #3d1a1a; color: #ff6b6b; }
        .admin-action-btn.delete:hover { background: #ff4444; color: #fff; }

        /* CMS Content Override - Mobile Padding */
        .post-content .tn-encyclopedia .container { padding: 0 4px; }
        .post-content .tn-encyclopedia .hero-content { padding: 20px 8px; }
        .post-content .tn-encyclopedia .city-deep { padding: 15px 8px; }
/* ============================================================
   News / Magazine article layout (scope: body.nm-article)
   - Applies ONLY to category IN ('news','magazine') pages.
   - Other post types (shop, region, tips) are unaffected.
   ============================================================ */
.nm-article{--acc:#ff7a1a;--acc2:#ff9a4d;--serif:Georgia,'Times New Roman','Noto Serif KR','Noto Serif JP',serif;--rule:#242430;--mut:#b8b8b8;--dim:#b8b8b8;}
/* masthead (replaces the emoji meta-row for news/magazine) */
.nm-article .post-header{padding:6px 15px 0;border-bottom:none;}
.nm-article .mag-masthead{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 0 14px;border-bottom:1px solid var(--rule);font-size:13px;color:var(--mut);}
.nm-article .mag-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--acc);font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;}
.nm-article .mag-kicker::before{content:"";width:20px;height:2px;background:var(--acc);border-radius:2px;}
.nm-article .mag-who{display:inline-flex;align-items:center;gap:8px;}
.nm-article .mag-avatar{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#ff7a1a,#b23);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:10.5px;color:#fff;}
.nm-article .mag-who b{color:#e9e9ee;font-weight:700;}
.nm-article .mag-spacer{flex:1;}
.nm-article .mag-m{display:inline-flex;align-items:center;gap:5px;color:var(--dim);white-space:nowrap;}
.nm-article .mag-m .ic,.nm-article .mag-share .ic{width:15px;height:15px;vertical-align:-2px;flex:none;}
.nm-article .mag-share{display:inline-flex;align-items:center;gap:5px;color:var(--mut);cursor:pointer;position:relative;}
.nm-article .mag-share:hover{color:#fff;}
/* article body */
.nm-article .post-content{padding:0 15px 24px;}
.nm-article .tnl-news{color:#dcdce3;line-height:1.85;font-size:17px;max-width:100%;}
.nm-article .tnl-news h1{color:#fff;font-size:40px;line-height:1.14;font-weight:800;letter-spacing:-.9px;margin:24px 0 16px;word-break:keep-all;} /* 2026-08-15 CJK 제목 단어중간 줄바꿈 방지 (뉴스/매거진 H1 한정) */
.nm-article .tnl-news .tnl-lead{font-family:var(--serif);font-size:20px;line-height:1.55;color:#c9c9d2;font-style:italic;margin:0 0 26px;}
.nm-article .tnl-news>img{width:100%;height:auto;display:block;border-radius:14px;margin:10px 0 12px;}
.nm-article .tnl-news p{margin:0 0 20px;}
.nm-article .tnl-news strong{color:#fff;font-weight:700;}
.nm-article .tnl-news a{color:var(--acc);}
.nm-article .tnl-news .ic{width:17px;height:17px;flex:none;vertical-align:-3px;}
.nm-article .tnl-news section{margin:0 0 6px;}
.nm-article .tnl-news h2{font-size:25px;line-height:1.25;font-weight:800;letter-spacing:-.4px;color:#fff;margin:44px 0 16px;padding:26px 0 0;border-top:1px solid var(--rule);border-bottom:none;}
.nm-article .tnl-news h2:first-child{margin-top:20px;padding-top:0;border-top:none;}
.nm-article .tnl-news h3{color:#fff;font-size:18px;font-weight:700;margin:22px 0 8px;}
.nm-article .tnl-news ul,.nm-article .tnl-news ol{margin:10px 0 18px;padding-left:20px;}
.nm-article .tnl-news li{margin:0 0 9px;}
/* key takeaways (summary) */
.nm-article .tnl-news .tnl-summary{background:linear-gradient(180deg,#16161c,#111116);border:1px solid #2a2a34;border-radius:16px;padding:22px 24px;margin:28px 0;}
.nm-article .tnl-news .tnl-summary-head{color:var(--acc);font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:800;margin:0 0 15px;display:flex;align-items:center;gap:9px;}
.nm-article .tnl-news .tnl-summary-head .ic{width:18px;height:18px;}
.nm-article .tnl-news .tnl-summary ul{list-style:none;margin:0;padding:0;}
.nm-article .tnl-news .tnl-summary li{display:flex;gap:10px;align-items:flex-start;color:#d3d3db;font-size:15px;line-height:1.55;padding:11px 0;margin:0;border-top:1px dashed #2a2a34;}
.nm-article .tnl-news .tnl-summary li:first-child{border-top:none;padding-top:0;}
.nm-article .tnl-news .tnl-summary li:last-child{padding-bottom:0;}
.nm-article .tnl-news .tnl-summary li .ic{color:var(--acc);margin-top:3px;}
.nm-article .tnl-news .tnl-summary b,.nm-article .tnl-news .tnl-summary strong{color:#fff;}
/* badges (meta chips under H1) */
.nm-article .tnl-news .tnl-badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;}
.nm-article .tnl-news .tnl-badge{background:#161619;border:1px solid #2a2a34;border-radius:20px;padding:5px 12px;font-size:12.5px;color:#cfcfd6;}
.nm-article .tnl-news .tnl-badge b{color:var(--acc2);}
/* editorial callouts (divider style, no box cage) */
.nm-article .tnl-news .tnl-note{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:16px 0;margin:24px 0;}
.nm-article .tnl-news .tnl-note p{margin:0;display:flex;gap:13px;align-items:flex-start;font-size:15.5px;line-height:1.7;color:#cccdd6;}
.nm-article .tnl-news .tnl-note .lbl{font-weight:800;flex-shrink:0;white-space:nowrap;}
.nm-article .tnl-news .tnl-note.warn .ic,.nm-article .tnl-news .tnl-note.warn .lbl{color:#f5a623;}
.nm-article .tnl-news .tnl-note.tip .ic,.nm-article .tnl-news .tnl-note.tip .lbl{color:#34d399;}
.nm-article .tnl-news .tnl-note.danger{border-top-color:#5a2424;border-bottom-color:#5a2424;}
.nm-article .tnl-news .tnl-note.danger .ic,.nm-article .tnl-news .tnl-note.danger .lbl{color:#ff5a5a;}
/* table */
.nm-article .tnl-news table{width:100%;border-collapse:collapse;margin:22px 0;font-size:15px;}
.nm-article .tnl-news th,.nm-article .tnl-news td{text-align:left;padding:13px 4px;border:none;border-bottom:1px solid var(--rule);vertical-align:top;}
.nm-article .tnl-news th{color:var(--acc);font-size:12px;letter-spacing:1px;text-transform:uppercase;font-weight:800;background:none;}
.nm-article .tnl-news td b{color:#fff;}
/* faq */
.nm-article .tnl-news h3.faq-question{color:#fff;font-size:18px;font-weight:700;margin:0;padding:20px 0 9px;border-top:1px solid var(--rule);}
.nm-article .tnl-news .faq-answer{color:var(--mut);font-size:15.5px;line-height:1.7;margin:0 0 4px;}
/* sources */
.nm-article .tnl-news .tnl-src{font-size:12.5px;color:var(--dim);border-top:1px solid var(--rule);padding-top:14px;margin-top:30px;}
@media(max-width:640px){
  .nm-article .tnl-news h1{font-size:30px;letter-spacing:-.5px;}
  .nm-article .tnl-news .tnl-lead{font-size:18px;}
  .nm-article .tnl-news{font-size:16.5px;}
  .nm-article .tnl-news h2{font-size:22px;}
}
/* ===== [CLS 2026-09-03] heroShimmer: left → transform (본문 무접촉·관측창 보호) =====
   대상: post_15 .bkk-nuru-complete / post_32 .cm-happy-ending / post_33 .cm-nuru-complete (각 11언어)
   근거: 본문 인라인 @keyframes heroShimmer 가 left 를 애니메이션 → 세션 누적 CLS.
        같은 글의 나머지 17개 keyframes 는 transform/opacity/box-shadow 계열로 무해.
   방법: body 를 붙여 구체성 (0,2,2) > 인라인 (0,2,1). animation-name·left·transform 만 덮고
        duration/easing/iteration 은 인라인 shorthand 값을 그대로 쓴다.
   기하: ::after 폭 = 부모 50% → left:-100% ≡ translateX(-200%), left:150% ≡ translateX(300%) */
@keyframes heroShimmerT{0%{transform:translateX(-200%)}50%,100%{transform:translateX(300%)}}
body .bkk-nuru-complete .header::after,
body .cm-happy-ending .header::after,
body .cm-nuru-complete .header::after{left:0;transform:translateX(-200%);animation-name:heroShimmerT}

/* ===== [CLS 2026-09-03 #2] neonSweep: left → transform (본문 무접촉) =====
   대상: post_64 .ptya-lbbar-complete .npr-glow::after (11언어)
   heroShimmer와 동일 구조·동일 기하(폭 50%). left:-100% ≡ translateX(-200%), left:150% ≡ translateX(300%) */
@keyframes neonSweepT{0%{transform:translateX(-200%)}100%{transform:translateX(300%)}}
body .ptya-lbbar-complete .npr-glow::after{left:0;transform:translateX(-200%);animation-name:neonSweepT}

/* ===== [CLS 2026-09-03 #3] gik-shine: left → transform (본문 무접촉) =====
   대상: post_53 .gik-container h1::before (11언어)
   ★기하 주의: 이 ::before 는 폭이 100%(앞 두 건은 50%) → left:-100% ≡ translateX(-100%), left:100% ≡ translateX(100%)
   h1 에 position:relative; overflow:hidden 확인. 구체성 (0,1,3) > 인라인 (0,1,2) */
@keyframes gikShineT{0%{transform:translateX(-100%)}50%,100%{transform:translateX(100%)}}
body .gik-container h1::before{left:0;transform:translateX(-100%);animation-name:gikShineT}

/* ═══════════════════════════════════════════════════════════════════════
   매거진 전용 (2026-09-26 · jk 승인)
   post-detail.php 1620행이 category='magazine' 일 때만 body 에 .is-mag 를
   추가로 붙인다. 뉴스(category='news')는 종전대로 .nm-article 만 붙으므로
   아래 규칙이 단 하나도 적용되지 않는다 = 뉴스 출력 무변경.
   위쪽 기존 규칙은 삭제·변경 0. 전부 뒤에 붙이기만 했다.
   ═══════════════════════════════════════════════════════════════════════ */

/* ① 본문 폭 — 지금은 body 768px 를 꽉 채운다. 읽기 폭으로 좁힌다.
      모바일 폭은 660px 에 못 미치므로 아무 변화가 없다. */
.nm-article.is-mag .tnl-news{max-width:660px;margin-left:auto;margin-right:auto;}

/* ② 섹션 여백 — h2 위 44px → 64px. h2 에 border-top 가로줄이 있어 여백이 곧 장절 구분이다.
      ★ 기존 .nm-article .tnl-news h2 는 (0,3,1), 아래 첫 줄도 (0,3,1) 로 같아서
        순서로 이긴다. 첫 h2 예외는 (0,4,1) 로 올려 확실히 이기게 했다. */
.nm-article.is-mag .tnl-news h2{margin:64px 0 18px;padding-top:30px;}
.nm-article.is-mag .tnl-news h2:first-of-type{margin-top:22px;padding-top:0;border-top:none;}

/* ③ 리드인 — 리드 다음 첫 문단을 키우고 첫 줄만 굵게.
      드롭캡(::first-letter)은 한글·일본어·중국어에서 음절 한 글자만 떼어내
      「이름」을 「이 / 름」으로 쪼갠다. 그래서 안 쓴다(2026-09-26 jk 확정).
      .tnl-lead + p  = 본문 손 안 대고 자동 적용
      p.leadin       = 본문에서 문단을 직접 지정할 때
      둘이 같은 요소에 겹쳐도 선언이 같아 충돌하지 않는다.
      ::first-line 에서 font-weight·color 는 허용 속성이다. */
.nm-article.is-mag .tnl-news .tnl-lead + p,
.nm-article.is-mag .tnl-news p.leadin{font-size:19.5px;line-height:1.7;color:#e6e6ee;}
.nm-article.is-mag .tnl-news .tnl-lead + p::first-line,
.nm-article.is-mag .tnl-news p.leadin::first-line{font-weight:700;color:#fff;}

/* ④ 풀쿼트 — 본문에 <blockquote class="mag-quote">문장<cite>출처</cite></blockquote> */
.nm-article.is-mag .tnl-news .mag-quote{
  font-family:var(--serif);font-size:24px;line-height:1.46;color:#fff;font-style:italic;
  border-left:3px solid var(--acc);padding:2px 0 2px 21px;margin:38px 0;}
.nm-article.is-mag .tnl-news .mag-quote cite{
  display:block;font:700 11px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  letter-spacing:1.6px;text-transform:uppercase;color:var(--mut);font-style:normal;margin-top:13px;}

@media(max-width:640px){
  .nm-article.is-mag .tnl-news h2{margin:48px 0 16px;padding-top:24px;}
  .nm-article.is-mag .tnl-news .tnl-lead + p,
  .nm-article.is-mag .tnl-news p.leadin{font-size:18.5px;}
  .nm-article.is-mag .tnl-news .mag-quote{font-size:20px;}
}

/* ============================================================
   본문 구역 지도 (침수지도 등) — 2026-09-27 신설
   본문에 <figure class="tnl-fmap"> 가 있는 글에서만 쓰인다.
   바닥·엔진은 js/tnl-basemap.js (near-me 와 같은 Protomaps black).
   ※ 위 .tnl-news ul/li 규칙(279·280행)이 범례에 먹으므로 여기서 되돌린다.
   ============================================================ */
.tnl-fmap{margin:28px 0;padding:0;background:#111;border:1px solid #333;border-radius:10px;overflow:hidden;}
.tnl-fmap figcaption{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;padding:14px 16px 12px;border-bottom:1px solid #333;}
.tnl-fmap figcaption strong{color:#fff;font-size:17px;font-weight:700;line-height:1.35;}
.tnl-fmap figcaption span{color:#b8b8b8;font-size:13px;}
.tnl-fmap-box{position:relative;width:100%;height:420px;background:#141414;}
.tnl-fmap-box:not([data-tnl-fmap-ready])::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,#141414 0 18px,#181818 18px 36px);}
.nm-article .tnl-news ul.tnl-fmap-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:12px 16px;list-style:none;border-top:1px solid #333;}
.nm-article .tnl-news ul.tnl-fmap-legend li{display:flex;align-items:center;gap:7px;margin:0;color:#d4d4d4;font-size:13.5px;line-height:1.4;}
.tnl-fmap-legend i{flex:none;width:14px;height:14px;border-radius:3px;border:1px solid rgba(255,255,255,.28);}
.tnl-fmap-legend .lg-r{background:#ef4444;}
.tnl-fmap-legend .lg-o{background:#f59e0b;}
.tnl-fmap-legend .lg-w{background:#4ade80;}
.tnl-fmap-legend .lg-n{background:#6b7280;}
.nm-article .tnl-news p.tnl-fmap-note{margin:0;padding:0 16px 14px;color:#b8b8b8;font-size:13px;line-height:1.6;}
.tnl-fmap-note b{color:#f59e0b;font-weight:600;}
/* Leaflet 기본 모양을 사이트 톤으로 (이 상자 안에서만) */
.tnl-fmap .leaflet-container{background:#141414;font:inherit;}
.tnl-fmap .leaflet-control-attribution{background:rgba(0,0,0,.62);color:#b8b8b8;font-size:10px;}
.tnl-fmap .leaflet-control-attribution a{color:#b8b8b8;}
.tnl-fmap .leaflet-bar a{background:#1a1a1a;color:#e5e5e5;border-bottom-color:#333;}
.tnl-fmap .leaflet-bar a:hover{background:#262626;color:#fff;}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-content-wrapper{background:#1a1a1a;border:1px solid #333;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.6);}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-content{margin:10px 12px;color:#d4d4d4;}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-content b{display:block;color:#fff;font-size:15px;margin-bottom:3px;}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-content i{display:block;color:#ff8533;font-style:normal;font-size:12.5px;font-weight:600;margin-bottom:4px;}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-content span{display:block;color:#b8b8b8;font-size:12.5px;line-height:1.5;}
.tnl-fmap .tnl-fmap-pop .leaflet-popup-tip{background:#1a1a1a;border:1px solid #333;}
.tnl-fmap .tnl-fmap-pop a.leaflet-popup-close-button{color:#b8b8b8;}
@media(max-width:640px){
  .tnl-fmap-box{height:340px;}
  .tnl-fmap figcaption strong{font-size:16px;}
  .nm-article .tnl-news ul.tnl-fmap-legend{gap:7px 12px;padding:11px 14px;}
  .nm-article .tnl-news ul.tnl-fmap-legend li{font-size:13px;}
}

/* 침수 도로 표 — 이 표만 가로 스크롤 대신 줄바꿈시킨다. 2026-09-27
   위 18행 `.post-content .tw table{min-width:max-content}` 이 칸 글자 수만큼 표를 늘려서,
   칸을 줄여도 390px 에서 가로 스크롤이 남는다(ko 실측 1,475px 넘침).
   클래스가 붙은 이 표에만 되돌린다. 다른 표(5절 교통표 등)는 클래스가 없어 종전 그대로다.
   28행이 table-layout:auto 를 !important 로 걸어두어 여기서도 !important 가 필요하다. */
.post-content .tw table.tnl-flood-roads{min-width:0;width:100%;table-layout:fixed !important;}
.post-content .tw table.tnl-flood-roads th,
.post-content .tw table.tnl-flood-roads td{
  vertical-align:top;word-break:keep-all;overflow-wrap:break-word;}
.post-content .tw table.tnl-flood-roads th:first-child,
.post-content .tw table.tnl-flood-roads td:first-child{width:33%;}
@media(max-width:400px){
  .post-content .tw table.tnl-flood-roads th:first-child,
  .post-content .tw table.tnl-flood-roads td:first-child{width:36%;}
}

/* ===================================================================
   번역판(영어 외 10개어) 글자 잘림 수리 — 2026-10-01
   가지글 본문 안에 들어 있는 인라인 CSS 가 영어 길이를 기준으로 짜여서,
   번역문이 상자보다 길어지면 글자가 밖으로 밀려 잘려 보이지 않던 것.
   라이브 가지글 59쪽 × 11개어 실측으로 잘린 양 0px 확인. 영어판 영향 0.

   @layer 로 감싼 이유:
   글 안의 선언이 `.pmg * { ... !important }`, `#ageVerifyModal .age-title { ... !important }`
   처럼 클래스 2개·ID 를 쓰고 있어 특정도로는 이길 수 없다.
   저자 !important 는 레이어가 무레이어를 이기므로(CSS Cascade 5)
   특정도와 무관하게 적용된다. 이 파일에 다른 @layer 는 없다.
   =================================================================== */
@layer tnl-i18n-fit {

  /* 1) 일본어·중국어에서만 word-break 를 풀어준다.
        keep-all 은 CJK 글자 사이 줄바꿈을 전부 막아서, 공백 없는 일본어·중국어는
        문장 하나가 통째로 안 끊기는 한 덩어리가 된다.
        한국어는 어절 사이에 공백이 있어 영향이 없고, 태국어는 CJK 가 아니라 애초에 적용되지 않는다.
        → 한국어·태국어·그 밖의 언어는 손대지 않는다.
        <html lang> 실측값: /ja/ = ja, /zh/ = zh-CN, /zh-hant/ = zh-TW (전부 하이픈 BCP-47) */
  html:lang(ja) body *,
  html:lang(zh) body * { word-break: normal !important; }

  /* 2) 긴 낱말이 상자를 넘칠 때만 끊어준다.
        anywhere 는 낱말이 한 줄에 들어가면 아무 일도 하지 않는다.
        표 폭(min-width:max-content)·문서 폭은 실측에서 변화 0. */
  .post-content * { overflow-wrap: anywhere !important; word-wrap: break-word !important; }

  /* 3) white-space:nowrap 이 걸려 있어 줄바꿈 자체가 막혀 잘리던 칸들.
        가격·숫자 칸 중 실제로 잘리던 것만 포함한다.
        2026-10-01 추가 — .quick-nav-link (칩 줄). 위 18행 `.post-content *{min-width:0}` 가
        격자 칸을 60px 로 줄이는데 nowrap 이라 라벨이 칸 밖으로 샜다. 360px 실측:
        ms `Pengangkutan` 상자60/글자72 +17px · ms `Tempat Jumpa` +18px · ru `Бюджет на ночь` +29px.
        푸켓 9글이 `.quick-nav-link`, post_48 이 `.quick-nav-btn`(이미 아래 있음) 을 쓴다.
        2026-10-02 추가 — .nchip (지역칩). post_15 류의 지역칩은 글 본문이 아니라 PHP 렌더러가
        내보내므로 본문 파일만 보면 「요소 0개」로 잘못 센다. 라이브 실측: 한국어 320px 에서
        `전체 지역28` 상자60/글자62 로 +7px 샜고, 이 한 줄로 -4px(들어감)·칩높이 29→43px. */
  .post-content .venue-name,
  .post-content .venue-loc,
  .post-content .venue-btn,
  .post-content .venue-tag,
  .post-content .venue-meta-item,
  .post-content .venue-meta-item span,
  .post-content .quick-nav-btn,
  .post-content .quick-nav-link,
  .post-content .nchip,
  .post-content .comparison-value,
  .post-content .highlight-value,
  .post-content .lkm-info-label,
  .post-content .pp-price-val { white-space: normal !important; }

  .post-content .venue-meta-item { flex-wrap: wrap !important; }

  /* 4) 1단 격자(.venue-grid 는 grid-template-columns:1fr)인데 카드 하나에
        인라인 style="grid-column: span 2" 가 남아 있어 암묵 2번째 칸이 생기고
        1fr 칸이 2px 로 찌그러지던 것. 그 칸에 놓인 카드 3장이 거의 안 보였다.
        (푸켓 에로틱마사지 글 아웃콜 TOP 7 — 전 언어 공통, 영어판도 해당) */
  .post-content .venue-grid > * { grid-column: auto !important; }
}
