/* 사찰24 전용 화면 (엔진 styles.css 뒤에 읽는다, engine/site/build.mjs layout). 사찰 배지·테마·절 페이지 안의 행사 등 엔진에 없는 것만 */

/* 사이트의 모든 링크는 밑줄 없이 (마우스를 올려도) [사용자 결정 2026-11-22]. 엔진이 링크 안 글자(.title 등)에 거는 밑줄까지 막는다 */
a, a:hover, a:focus, a *, a:hover * { text-decoration: none !important; }

/* '누구와'(아이와·연인·부모님) 칩은 두지 않는다: 공연·전시용이라 절에는 맞지 않는다 [사용자 결정 2026-11-20] */
.fc-who { display: none !important; }

/* 지역이 카테고리 [사용자 결정 2026-11-21]: 지역은 '무엇' 줄의 탭으로 고르니 지역 칩은 숨긴다 (site.js 가 그 칩의 버튼을 대신 누른다) */
.fc-region { display: none !important; }
/* 절을 볼 때는 칩 줄에 남는 것이 없어(언제·누구와도 숨음) 빈 줄을 접는다. 산사 행사를 볼 때는 '언제'가 보인다 */
main[data-mode="place"] .fchips { display: none; }
/* 지역 탭 아래 빈 공간을 없앤다 [사용자 결정 2026-11-21]: 인기·마지막·새로 시작 묶음(.trio)은 사찰24 에 없어 빈 칸인데 위 여백만 남고,
   지도 위 큰 구분선(.map-zone 위 선과 위아래 --rule-gap)도 바로 위가 탭 줄이라 두지 않는다. 검색창이 탭 줄 바로 아래로 */
.home .trio:empty { display: none; }
.home .map-zone { margin-top: 12px; padding-top: 0; border-top: 0; }
/* 지도 위 보기 버튼이 '전체' 하나뿐이면 두지 않는다 (인기·마지막·새로 시작 묶음이 없다) */
.map-modes:not(:has(> :nth-child(2))) { display: none; }
/* '무엇' 줄 두 줄: 첫 줄 서울·광역시, 아랫줄 도 | 산사 행사 [사용자 결정 2026-11-21]. 좁으면 줄마다 옆으로 밀어 본다 */
.ftabs .fb-in { display: block; }
.ftabs .jl-row { display: flex; overflow-x: auto; scrollbar-width: none; }
.ftabs .jl-row::-webkit-scrollbar { display: none; }
.ftabs .jl-row + .jl-row { margin-top: 2px; }
/* 첫 줄(전체 · 광역시) 아래 가는 선 — 그 줄 칸 폭만큼, 색·굵기는 탭 전체 아래 선(.ftabs)과 같다. 고른 칸의 진한 밑줄이 그 위에 겹친다 [사용자 결정 2026-11-22] */
.ftabs .jl-row:first-child { width: fit-content; max-width: 100%; background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat; }
/* 탭 사이 간격(오른쪽 여백 20px)이 마지막 칸 뒤에도 붙어 선이 남지 않게 */
.ftabs .jl-row:first-child > :last-child { margin-right: 0; }
/* 고른 지역 밑줄 [사용자 결정 2026-11-21]: 엔진 탭은 밑줄을 아래 선에 1px 겹치게 내리는데(margin-bottom -1px), 줄마다 옆으로 미는 상자라 그 1px 이 잘린다 → 상자 안에 둔다 */
.ftabs .jl-rt { margin-bottom: 0; border-bottom-width: 2px; }
.ftabs .jl-rt[aria-pressed="true"] { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
/* 지역 상자 맨 아래 '서울 사찰 48곳 더 보기 ›' → 지역 모음 페이지 */
.jl-more a { display: block; padding: 14px 16px; text-align: center; font-size: 15px; font-weight: 600; color: var(--link); }
/* 지역 하나를 고르면(site.js .jl-one) 엔진에서 카테고리를 고를 때(.one-cat)와 같게: 상자 안 스크롤 없이 칸을 나눠 쭉 펼친다 */
@media (min-width: 1024px) {
  main.jl-one .map { height: 360px; }
  main.jl-one .mapbox.full .map { height: 100%; }
  .home.jl-one .secs:not(.secs-one) { display: block; }
  .home.jl-one .secs .list { height: auto; overflow: visible; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--col-gap); background: none; border-radius: 0; }
  .home.jl-one .secs .row { background: var(--card); border-radius: var(--r-card); corner-shape: var(--corner); overflow: hidden; border-top: 0; }
  .home.jl-one .secs .row a { height: 100%; }
  .home.jl-one .secs .row.extra:not([hidden]) { display: block; }
  .home.jl-one .jl-more { grid-column: 1 / -1; }
}
/* 배너 2 는 지역 상자 사이에서 한 줄을 다 차지한다 */
.secs-regions > .theme-banner { grid-column: 1 / -1; margin: 0; }
@media (max-width: 767px) {
  /* 휴대폰: 배너 2 는 고른 지역 목록 뒤로 */
  .secs-regions { display: flex; flex-direction: column; }
  .secs-regions > .theme-banner { order: 1; margin-top: var(--rule-gap, 30px); }
}

/* 사찰 칸: 이름 / 위치 / 소개 한 줄. 소개는 위치보다 흐리게 */
.rb .area + .snip { margin-top: 4px; color: var(--text3); }

/* 사찰 배지 (이름 옆): 연한 바탕 + 같은 계열 진한 글자. 색은 단청에서. .tb.tb-○ 로 써서 엔진의 .p-facts span 흰 바탕보다 앞선다 */
.tbs { display: inline; }
/* 포스터 판(PC, engine .lp)에서는 이름 옆 배지를 포스터 왼쪽 위로 [사용자 결정 2026-11-22] — 세부 페이지 대표 사진 위 배지와 같은 생각, 그림자 없음.
   작은 썸네일용 배지(.thm)는 같은 말을 겹쳐 보이니 숨긴다 */
@media (min-width: 1024px) {
  .lp .secs-one .row a, .lp .home.one-cat .secs .row a { position: relative; }
  .lp .secs-one .row .tbs, .lp .home.one-cat .secs .row .tbs { position: absolute; top: var(--sp-2_5, 10px); left: var(--sp-2_5, 10px); right: var(--sp-2_5, 10px); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--sp-1, 4px); }
  .lp .secs-one .row .tbs .tb, .lp .home.one-cat .secs .row .tbs .tb { margin-left: 0; }
  .lp .secs-one .row .thm, .lp .home.one-cat .secs .row .thm { display: none; }
  /* 사진 없는 글자 포스터: 왼쪽 위는 배지 자리라 'TEMPLE' 글자는 이름 바로 위(왼쪽 아래)로, 글자 크기는 엔진 큰 카드(.card)와 같게 */
  .lp .secs-one .row .ph, .lp .home.one-cat .secs .row .ph { justify-content: flex-end; gap: var(--sp-1, 4px); padding: var(--sp-2_5, 10px); }
  .lp .secs-one .row .ph-tag, .lp .home.one-cat .secs .row .ph-tag { font-size: 10px; }
  .lp .secs-one .row .ph-title, .lp .home.one-cat .secs .row .ph-title { font-size: 17px; }
}
.tb { display: inline-block; vertical-align: 0.15em; margin-left: 6px; padding: 1px 6px; border-radius: var(--r-chip); corner-shape: var(--corner); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.tb.tb-live { background: #FBE9E6; color: #B7382A; }  /* 행사 중: 주홍 */
.tb.tb-world { background: #F6EFDC; color: #6E5212; } /* 세계유산: 금(현판 글씨) */
.tb.tb-old { background: #F6EDE8; color: #8E3B2A; }   /* 천년고찰: 석간주 */
.tb.tb-san { background: #E6F2EC; color: #17694A; }   /* 산: 녹청 */
.tb.tb-city { background: #EFEFF2; color: #4A4A50; }  /* 도심: 먹 */
.tb.tb-nat { background: #24489A; color: #fff; }    /* 국보: 군청 꽉 찬 바탕 (가장 무게 있게) */
.tb.tb-trs { background: #E8EDF8; color: #24489A; }  /* 보물 N점: 군청 연하게 */
.tb.tb-river { background: #E4F1F7; color: #1D5F80; } /* 강가: 물빛 */
.tb.tb-sea { background: #DFF3F1; color: #0E6A66; }   /* 바닷가: 청록 (보물의 군청과 구분) */
.tb.tb-century { background: #F8F1EC; color: #9A5A40; } /* 백년고찰: 석간주 연하게 */
.tb.tb-hermit { background: #EEF3E6; color: #4F6B2A; }  /* 암자: 이끼색 */
.tb.tb-town { background: #EFEFF2; color: #4A4A50; }    /* 동네: 도심과 같은 먹색 */
.tb.tb-village { background: #F3EEE3; color: #6B5A3A; } /* 마을: 흙색 */
.tb.tb-ts { background: #17694A; color: #fff; }     /* 템플스테이 운영: 녹청 꽉 찬 바탕 */
/* 주말24 포스터의 종류 배지 [사용자 결정 2026-11-22]: 걷기 길은 산(녹청) · 캠핑은 흙색 · 축제는 행사 중(주홍)과 같은 계열 */
/* 포스터마다 첫 배지 '주말24': 예전 제목 옆 주말24 배지와 같은 주황 꽉 찬 바탕 [사용자 결정 2026-11-22] */
.tb.tb-jumal { background: #B64400; color: #fff; }
.tb.tb-jtrek { background: #E6F2EC; color: #17694A; }
.tb.tb-jcamp { background: #F3EEE3; color: #6B5A3A; }
.tb.tb-jfest { background: #FBE9E6; color: #B7382A; }
.tb.tb-transit { background: #EDEBF6; color: #4B3F8F; } /* 역·정류장 가까움: 보라빛 */
/* 절 페이지 머리의 핵심 칩: 목록과 같은 사찰 배지(색 그대로), 조금 크게 */
.p-facts.p-tbs .tb { margin-left: 0; padding: 5px 11px; border-radius: var(--r-pill); corner-shape: round; font-size: 14px; }

/* 편의 시설 상자: '장애인 화장실'처럼 이름이 길어 엔진 기본 이름 칸(56px)을 넘쳐 내용과 겹친다 → 넓힌다 */
.d-access .kv { grid-template-columns: 92px minmax(0, 1fr); }
/* ── 절 세부 페이지: 절로서(왼쪽 좁은 칸) | 여행지로(오른쪽 넓은 칸) [사용자 결정 2026-11-22] ── */
/* 글 사이에 나눠 넣은 사진: 한 장은 크게, 두세 장은 나란히 */
.jl-ph { display: grid; gap: var(--sp-2, 8px); border-radius: var(--r-card); corner-shape: var(--corner); overflow: hidden; }
.jl-ph img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* 2장 이상은 두 칸씩(4장이면 2×2), 3장만 세 칸 나란히 */
.jl-ph:has(img + img) { grid-template-columns: 1fr 1fr; }
.jl-ph.jl-ph3 { grid-template-columns: 1fr 1fr 1fr; }
.jl-ph:has(img + img) img { aspect-ratio: 4 / 3; }
/* 대표 사진 왼쪽 위 배지 [사용자 결정 2026-11-22]: 자리는 상자 안 버튼이 상자 가장자리에서 떨어진 만큼(.box 안쪽 여백 --sp-5, 20px),
   안쪽 여백은 엔진 버튼(.btn, 템플스테이 예약하러 가기)과 같게, 그림자 없음. 색은 이름 아래 배지 그대로 */
.jl-ph { position: relative; }
/* 2·3장 묶음도 사진마다 네 모서리를 둥글게 (곡률은 엔진 --r-card) [사용자 결정 2026-11-22] */
.jl-ph.jl-ph-each { border-radius: 0; overflow: visible; }
.jl-ph-each img { border-radius: var(--r-card); corner-shape: var(--corner); }
/* 사진 크게 보기 (site.js, 엔진 .lb 칸): 누를 수 있는 사진은 돋보기 손가락 [사용자 결정 2026-11-22] */
.jl-ph img, .jl-her img { cursor: zoom-in; }
/* 사진 없는 절의 빌린 사진 (고란사 시험 뒤 전체): 사진마다 아래에 무엇인지 한 줄 (사진 묶음과 같은 크기·곡률) [사용자 결정 2026-11-22] */
.jl-borrow { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.jl-borrow figure { margin: 0; }
.jl-borrow[style*="--n:2"] img { aspect-ratio: 4 / 3; }
.jl-borrow figcaption { margin-top: var(--sp-1_5, 6px); font-size: 13px; color: var(--text2); line-height: 1.4; }
.jl-ph-tbs { position: absolute; left: var(--sp-5, 20px); top: var(--sp-5, 20px); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--sp-1_5, 6px); }
.jl-ph-tbs .tb { margin-left: 0; padding: var(--sp-2, 8px) var(--sp-4, 16px); border-radius: var(--r-pill); corner-shape: round; font-size: 14px; }
.detail-place:has(.jl-ph-tbs) .p-facts.p-tbs { display: none; }
/* 다른 곳 이야기 묶음: PC 에서는 본문 흐름 그대로(묶음 틀 없이) */
.jl-others { display: contents; }
/* 휴대폰(한 줄) [사용자 결정 2026-11-22]: 이 절 이야기(여행) → 절로서 → 다른 곳 이야기 → 모아 보기·참고 자료.
   엔진은 왼쪽 칸을 먼저 쌓고 정보 상자(.d-info 등)를 따로 옮기므로, 칸 틀을 풀어(display: contents) 상자마다 순서를 다시 준다 */
@media (max-width: 767px) {
  .detail-place .p-body { display: contents; }
  .detail-place .p-body > * { order: 2; }
  .detail-place .p-side > * { order: 3; }
  .detail-place .jl-others > * { order: 4; }
  .detail-place .p-side > .hub-links:not(.d-themes), .detail-place .p-side > .d-ref { order: 5; }
}
/* 체험·수행 상자: 체험 칩(녹청 꽉 찬 바탕 — 템플스테이 배지와 같은 계열) + 근거 문장 */
.exp-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1_5, 6px); margin: 0 0 var(--sp-2_5, 10px); }
.exp-chip { display: inline-block; padding: 5px 11px; border-radius: var(--r-pill); corner-shape: round; background: #E6F2EC; color: #17694A; font-size: 14px; font-weight: 600; }
.exp-why { margin: 0 0 var(--sp-2, 8px); color: var(--text2); font-size: 14px; }
/* ── 상자 형식 통일 (.jl-card) [사용자 결정 2026-11-22] ──
   제목(+개수) → 핵심 한 줄 → 칩 → 정보 표 → 인용 → 접기 → 버튼 → 출처. 곡률·여백·크기는 엔진 눈금만 */
.jl-card { display: flex; flex-direction: column; gap: var(--sp-3, 12px); }
.jl-card > h2 { margin: 0; }
.jl-card h2 .cnt, .jl-card h3 .cnt { font-size: 14px; color: var(--text2); font-weight: 500; margin-left: 4px; }
.jl-lead { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text); letter-spacing: -0.01em; }
.jl-card p { margin: 0; }
.jl-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1_5, 6px); }
.jl-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--sp-3, 12px); border-radius: var(--r-pill); corner-shape: round; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
/* 세부 페이지에서 누를 수 있는 칩(테마 · 비슷한 곳 모아 보기): 마우스를 올리면 밑줄 없이 글자만 사이트 주황(--accent)으로 [사용자 결정 2026-11-22] */
a.jl-chip, .detail-place .chips-row a { text-decoration: none; }
a.jl-chip:hover, .detail-place .chips-row a:hover { text-decoration: none; color: var(--accent); }
.detail-place .chips-row a:hover span { color: var(--accent); }
.d-exp .jl-chip { background: #E6F2EC; color: #17694A; font-weight: 600; }
.jl-rows { margin: 0; }
.jl-rows .kv { grid-template-columns: 80px minmax(0, 1fr); }
.jl-quote { margin: 0; padding: var(--sp-1, 4px) 0 var(--sp-1, 4px) var(--sp-3, 12px); border-left: 3px solid var(--line2); color: var(--text2); font-size: 15px; line-height: 1.6; }
.jl-quote b { color: var(--text); margin-right: 4px; }
.jl-fold summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 600; list-style: none; }
.jl-fold summary::-webkit-details-marker { display: none; }
.jl-fold summary::after { content: ' ›'; }
.jl-fold[open] summary { margin-bottom: var(--sp-2, 8px); }
.jl-fold[open] summary::after { content: ' ‹'; }
.jl-fold p + p { margin-top: var(--sp-2, 8px); }
.jl-btn { align-self: stretch; justify-content: center; text-align: center; }
.jl-src { font-size: 12px; color: var(--text3); }
/* 긴 글 상자(소개·연혁): 한 줄 약 40자로 좁혀 읽기 쉽게, 줄·문단 간격은 넉넉히 (상자 폭은 그대로) */
.jl-text .jl-lead, .jl-text p, .d-history p { max-width: 40em; }
.jl-text p, .d-history p { font-size: 16px; line-height: 1.75; color: var(--text); }
.jl-text .jl-lead { font-size: 18px; line-height: 1.6; }
.jl-text .jl-fold p + p { margin-top: var(--sp-3, 12px); }
/* 연혁 연표: 왼쪽 연도 + 세로선 위 점, 오른쪽 그때 일 */
.jl-timeline { list-style: none; margin: 0; padding: 0; }
.jl-timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-3, 12px); padding: 0 0 var(--sp-3, 12px); }
.jl-timeline li::before { content: ''; position: absolute; left: 70px; top: 8px; bottom: -2px; width: 1px; background: var(--line); }
.jl-timeline li:last-child::before { display: none; }
/* 색은 사이트의 녹청(버튼·체험 칩과 같은 초록) [사용자 결정 2026-11-22] */
.jl-timeline li::after { content: ''; position: absolute; left: 67px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--btn); }
.jl-timeline b { font-size: 14px; font-weight: 700; color: var(--btn); white-space: nowrap; }
.jl-timeline span { padding-left: var(--sp-3, 12px); font-size: 15px; line-height: 1.6; color: var(--text); }
/* 행사: 한 상자 안에 행사마다 같은 뼈대, 사이는 가는 선 */
.jl-ev { display: flex; flex-direction: column; gap: var(--sp-2_5, 10px); scroll-margin-top: 70px; }
.jl-ev + .jl-ev { padding-top: var(--sp-4, 16px); border-top: 1px solid var(--line); }
.jl-ev h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.jl-ev .jl-lead { font-size: 15px; }
.jl-ev:target { background: #FBF6EE; border-radius: var(--r-inner); corner-shape: var(--corner); }
/* 문화유산마다 설명 칸 [사용자 결정 2026-11-22]: 왼쪽 사진 · 오른쪽 이름 · 등급·시대 · 설명. 칸 사이·종류별 줄과의 사이는 공통 구분선(1px var(--line), 위아래 14px).
   이름·글자 크기는 행사 칸(.jl-ev)과 목록 글(.jl-bul 15px)에 맞춤. 종류별 줄의 이름은 링크하지 않는다(칸이 바로 아래) */
.jl-her { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.jl-her li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-3, 12px); align-items: start; }
.jl-her li:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.jl-her li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.jl-her img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-inner); corner-shape: var(--corner); background: #E9E9EE; }
.jl-her h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); }
.jl-her .muted { margin: 2px 0 6px; font-size: 13px; }
.jl-her p:not(.muted) { font-size: 15px; line-height: 1.6; color: var(--text); }
.jl-her-more { margin-top: 14px; }
.jl-her-more .jl-her { margin-top: 0; }
/* 휴대폰: 사진을 줄여 설명 글 칸을 넓힌다 */
@media (max-width: 600px) {
  .jl-her li { grid-template-columns: 64px minmax(0, 1fr); }
  .jl-her img { width: 64px; height: 64px; }
}
/* 이번 주말 근처에서 · 주말24: 칸 이름(트레킹·캠핑·전국 축제)마다 엔진 근처 목록(.near-list) */
.jl-jumal .jl-sub, .jl-around .jl-sub, .jl-sec .jl-sub { margin: 0; font-size: 14px; font-weight: 700; color: var(--text2); }
/* 상자 안 구분선은 한 가지 [사용자 결정 2026-11-22]: 1px var(--line), 글 폭(상자 안쪽 여백 안)만큼, 선 위아래 14px — 이용 안내 등 카드의 줄 선(.kv)과 같다 */
.jl-around .list { margin: 6px 0; }
.jl-around .list:last-child { margin-bottom: -14px; }
.jl-around .row > a { padding-left: 0; padding-right: 0; }
.jl-around .list + .jl-sub, .jl-jumal .near-list + .jl-sub { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
/* 여행 핵심: 소제목 묶음마다 같은 선(카드 간격 12 + 2 = 선 위 14, 선 아래 14) · 점 목록은 연표 점 · 번호는 엔진 지도 번호표(.mp-n)와 같은 모양 */
.jl-tc { display: flex; flex-direction: column; gap: var(--sp-2, 8px); margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
/* 세 상자(.jl-sec)는 제목이 없어 첫 묶음 위에는 선을 두지 않는다. 소개 글은 다른 긴 글 상자와 같은 읽기 폭·간격 */
.jl-sec > .jl-tc:first-child, .jl-sec > .jl-vh + .jl-tc { margin-top: 0; padding-top: 0; border-top: 0; }
/* 화면에는 안 보이고 검색엔진·화면 읽기 프로그램만 읽는 제목 (자리도 차지하지 않는다) */
.jl-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* [내장사 시험 뒤 전체] 오른쪽 세 상자 안쪽 여백 40px (기본 20px, 30px 다음 40px 로) [사용자 결정 2026-11-22] */
.jl-sec.jl-roomy { padding: 40px; }
/* [내장사 시험 뒤 전체] 나눔선(기본 위아래 14px) → 30px, 본문선(기본 8px) → 10px [사용자 결정 2026-11-22, 나눔선 20 → 30]
   나눔선 위 = 상자 간격 12 + .jl-tc 위 여백, 아래 = .jl-tc 안쪽 여백 */
.jl-roomy > .jl-tc { margin-top: 18px; padding-top: 30px; }
.jl-roomy > .jl-tc:first-child, .jl-roomy > .jl-vh + .jl-tc { margin-top: 0; padding-top: 0; }
/* 소개 문단은 .jl-text 의 간격 12px 가 위에 더해져 위 여백을 18px 로 */
.jl-roomy .jl-paras p + p { margin-top: 18px; padding-top: 30px; }
.jl-roomy .jl-her, .jl-roomy .jl-her li + li { margin-top: 30px; padding-top: 30px; }
.jl-roomy .jl-her-more { margin-top: 30px; }
.jl-roomy .jl-her-more .jl-her { margin-top: 0; }
.jl-roomy .jl-rows .kv { padding: 10px 0; }
/* [내장사 시험 뒤 전체] 누를 수 있는 칩(여행 테마 · 기도·수행 테마 · 비슷한 곳 모아 보기)은 초록 [사용자 결정 2026-11-22]: 체험 칩(.d-exp)과 같은 연한 녹청 바탕 · 녹청 글자.
   누를 수 없는 칩(절에 들를 때 등)은 회색 그대로 */
.detail-place:has(.jl-roomy) a.jl-chip, .detail-place:has(.jl-roomy) .chips-row a { background: #E6F2EC; color: #17694A; font-weight: 600; }
.detail-place:has(.jl-roomy) .chips-row a span { color: #17694A; opacity: 0.75; }
/* 체험 상자의 칩(명상·참선 등)은 누를 수 없어 회색으로 (예전 초록을 되돌림) [사용자 결정 2026-11-22] */
.detail-place:has(.jl-roomy) .d-exp span.jl-chip { background: var(--bg); color: var(--text); font-weight: 500; }
/* [내장사 시험 뒤 전체] 문화유산 사진을 글의 '이름 + 등급·시대 + 설명 3줄' 높이(122px)에 맞춰 세로로 조금 길게 [사용자 결정 2026-11-22] */
.jl-roomy .jl-her img { width: 96px; height: 122px; }
@media (max-width: 600px) { .jl-roomy .jl-her img { width: 64px; height: 82px; } }
/* [내장사 시험 뒤 전체] 아래 상자들(주변 사찰 · 주말24 · 근처에서 함께 가볼 곳)도 같게 [사용자 결정 2026-11-22]: 안쪽 여백 40px,
   나눔선 30px — 소제목 묶음 사이 선과 목록 줄(절 하나하나) 사이 선. 목록 첫 줄 위·마지막 줄 아래는 그대로 */
.jl-roomy-low > .box { padding: 40px; }
.jl-roomy-low .list > .row > a { padding-top: 30px; padding-bottom: 30px; }
.jl-roomy-low .list > .row:first-child > a { padding-top: 14px; }
.jl-roomy-low .list > .row:last-child > a { padding-bottom: 14px; }
.jl-roomy-low .jl-around .list:not(:last-child) { margin-bottom: 16px; }
.jl-roomy-low .jl-around .list + .jl-sub, .jl-roomy-low .jl-jumal .near-list + .jl-sub { padding-top: 30px; }
.jl-roomy-low .jl-jumal .near-list + .jl-sub { margin-top: 18px; }
/* [내장사 시험 뒤 전체] 주변 사찰 4곳을 한 줄 포스터로 [사용자 결정 2026-11-22] — 첫 화면 PC 포스터 판(엔진 .lp)과 같은 모양:
   3:4 사진 · 사진 아래 이름·거리 · 배지는 사진 왼쪽 위. 휴대폰(600px 이하)은 두 줄(2칸) */
.jl-posters .list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5, 20px); margin: 0 !important; }
.jl-posters .row { background: none; border: 0 !important; border-radius: 0; overflow: visible; }
.jl-posters .row > a { position: relative; flex-direction: column; align-items: stretch; gap: var(--sp-3, 12px); padding: 0 !important; }
.jl-posters .row > a:hover { background: none; }
/* 포스터 아래는 절 이름과 거리·지역 줄만 (소개 한 줄은 뺀다) [사용자 결정 2026-11-22] */
.jl-posters .row .snip { display: none; }
.jl-posters .row .poster { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: var(--r-card); }
.jl-posters .row .chev, .jl-posters .row .thm { display: none; }
.jl-posters .row .title { font-size: 15px; }
.jl-posters .row .tbs { position: absolute; top: var(--sp-2_5, 10px); left: var(--sp-2_5, 10px); right: var(--sp-2_5, 10px); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--sp-1, 4px); }
.jl-posters .row .tbs .tb { margin-left: 0; }
.jl-posters .row .ph { justify-content: flex-end; gap: var(--sp-1, 4px); padding: var(--sp-2_5, 10px); }
@media (max-width: 600px) { .jl-posters .list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* [내장사 시험 뒤 전체] 왼쪽 상자들도 같게 [사용자 결정 2026-11-22]: 안쪽 여백 40px · 나눔선 30px(행사 칸 사이) · 본문선 10px(이름·값 줄, 공식 안내 줄).
   왼쪽 칸은 엔진이 그려 오른쪽 세 상자(.jl-roomy)가 있는 절 페이지인지로 고른다 */
.detail-place:has(.jl-roomy) .p-side > .box { padding: 40px; }
.detail-place:has(.jl-roomy) .p-side .kv, .detail-place:has(.jl-roomy) .p-side .d-ref li { padding-top: 10px; padding-bottom: 10px; }
.detail-place:has(.jl-roomy) .p-side .jl-ev + .jl-ev { margin-top: 14px; padding-top: 30px; }
/* 휴대폰(600px 이하): 상자 안쪽 여백 20px · 나눔선 위아래 20px [사용자 결정 2026-11-22] — 40·30 은 375px 화면에서 글 폭이 너무 좁아진다. 본문선 10px 은 그대로 */
@media (max-width: 600px) {
  .jl-sec.jl-roomy, .jl-roomy-low > .box, .detail-place:has(.jl-roomy) .p-side > .box { padding: 20px; }
  .jl-roomy > .jl-tc { margin-top: 8px; padding-top: 20px; }
  .jl-roomy > .jl-tc:first-child, .jl-roomy > .jl-vh + .jl-tc { margin-top: 0; padding-top: 0; }
  .jl-roomy .jl-paras p + p { margin-top: 8px; padding-top: 20px; }
  .jl-roomy .jl-her, .jl-roomy .jl-her li + li { margin-top: 20px; padding-top: 20px; }
  .jl-roomy .jl-her-more { margin-top: 20px; }
  .jl-roomy .jl-her-more .jl-her { margin-top: 0; }
  .detail-place:has(.jl-roomy) .p-side .jl-ev + .jl-ev { margin-top: 6px; padding-top: 20px; }
}
.jl-sec .jl-text { display: flex; flex-direction: column; gap: var(--sp-3, 12px); }
.jl-bul, .jl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1_5, 6px); font-size: 15px; line-height: 1.6; color: var(--text); }
.jl-bul li { position: relative; padding-left: 15px; }
/* 소개 문단 사이: 공통 구분선(1px var(--line), 선 위아래 14px). 글자는 다른 긴 글 상자(.jl-text p)와 같다 [사용자 결정 2026-11-22] */
.jl-paras p + p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.jl-bul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--btn); }
.jl-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--sp-2_5, 10px); align-items: baseline; }
.jl-steps strong { margin-right: 4px; }
.jl-steps span { color: var(--text2); }
.jl-steps strong { color: var(--text); }
.jl-num { display: inline-block; min-width: 22px; padding: 2px var(--sp-1_5, 6px); border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; }
.jl-route { height: 240px; border-radius: var(--r-card); corner-shape: var(--corner); overflow: hidden; background: #E9E9EE; }
/* 주말24 항목은 썸네일이 작아 묶음 안에서는 엔진 근처 목록 그대로 가로 두 칸, 선은 묶음(트레킹·캠핑·축제) 사이에만 [사용자 결정 2026-11-22] */
.jl-jumal .near-list { margin: 0; }
.jl-more-link { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }
/* 위치 상자의 대중교통 줄 */
.glist.transit { margin: 8px 0 4px; }

/* ── 테마 [2026-11-20] ── */
/* 썸네일 왼쪽 위 테마 배지 */
.poster { position: relative; }
.thm { position: absolute; top: 4px; left: 4px; z-index: 1; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px 1px 3px; border-radius: var(--r-chip); corner-shape: var(--corner); font-size: 10px; font-weight: 700; line-height: 1.5; color: #fff; background: rgba(23, 105, 74, 0.92); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); white-space: nowrap; }
.thm svg { width: 11px; height: 11px; }
/* 테마 배지 색 (site/themes.mjs 의 tone, 단청 색) */
.thm-red { background: rgba(183, 56, 42, 0.92); }    /* 주홍 */
.thm-gold { background: rgba(110, 82, 18, 0.92); }   /* 금 */
.thm-green { background: rgba(23, 105, 74, 0.92); }  /* 녹청 */
.thm-brown { background: rgba(142, 59, 42, 0.92); }  /* 석간주 */
.thm-blue { background: rgba(36, 72, 154, 0.92); }   /* 군청 */
.thm-ink { background: rgba(27, 27, 27, 0.85); }     /* 먹 */
/* 배너는 카드를 모두 넣고 앞의 3개만 보인다 (site.js 가 열 때마다 순서를 섞는다) */
.tb-cards[data-pick="3"] > .tb-card:nth-child(n+4) { display: none; }
/* 첫 화면 테마 배너: PC 는 3칸 나란히, 좁으면 옆으로 넘겨 보기 */
.theme-banner { margin: var(--rule-gap, 30px) 0 0; }
.theme-banner h2 { margin: 0 0 12px; font-size: 22px; }
.tb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* [내장사 시험 뒤 전체] 세부 페이지 왼쪽 '이 절이 든 테마': 첫 화면 배너 카드를 한 줄에 하나씩, 좁은 칸에 맞게 낮게 (카드 사이 간격은 배너와 같은 12px) */
.tb-stack { display: flex; flex-direction: column; gap: 12px; }
.tb-stack .tb-card { height: 120px; }
/* 휴대폰 첫 화면 배너용 규칙(.tb-card { flex: 0 0 82% } 가로 넘기기)이 세로로 쌓은 카드에서는 높이를 0 으로 만들어 되돌린다 */
@media (max-width: 767px) { .tb-stack .tb-card { flex: none; height: 120px; } }
.tb-stack .tb-title { font-size: 17px; }
.tb-card { position: relative; display: block; height: 190px; border-radius: var(--r-card); corner-shape: var(--corner); overflow: hidden; background: #2b2b2b; color: #fff; text-decoration: none; }
.tb-card:hover { text-decoration: none; }
.tb-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tb-card:hover img { transform: scale(1.04); }
.tb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%); }
.tb-text { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.tb-kicker { font-size: 13px; opacity: .9; }
.tb-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.tb-n { font-size: 13px; font-weight: 600; opacity: .95; }
@media (max-width: 767px) {
  /* 넘겨 보기: 카드가 화면 끝에 붙지 않게 멈추는 자리(scroll-padding)도 위 요소들과 같은 여백으로 */
  .tb-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .tb-cards::-webkit-scrollbar { display: none; }
  /* 마지막 카드 뒤에도 같은 여백 (가로 스크롤 상자는 오른쪽 padding 을 무시하는 브라우저가 있다) */
  .tb-cards::after { content: ''; flex: 0 0 1px; }
  .tb-card { flex: 0 0 82%; height: 170px; scroll-snap-align: start; }
}
/* 걸러 보는 중(지역·검색)에는 배너를 숨긴다 */
html.results .home .theme-banner { display: none; }
/* 테마 페이지 머리말 */
.theme-kicker { margin: 0 0 4px; color: var(--accent); font-weight: 600; }
.theme-intro { max-width: 720px; margin: 10px 0 0; color: var(--text2); line-height: 1.6; }
/* 테마 페이지: AI 가 쓴 '이 절에 가야 할 이유' (소개 한 줄 자리) */
.rb .area + .snip.why { color: var(--btn); font-weight: 500; }
.d-themes .why { margin: 10px 0 4px; }

/* 절 페이지 안의 행사 카드 (절과 이어진 행사는 따로 페이지가 없다) */
.d-events h2 .cnt { font-size: 14px; color: var(--text2); font-weight: 500; margin-left: 4px; }
.ev-card { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.ev-card:first-of-type { border-top: 0; padding-top: 4px; }
.ev-card h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.35; }
.ev-card p { margin: 6px 0; }
.ev-card .tb { margin-left: 0; margin-right: 6px; }
.ev-card:target { background: #FBF6EE; border-radius: var(--r-inner); corner-shape: var(--corner); padding-left: 10px; padding-right: 10px; }

/* 좌표가 없는 절: 볼 때 주소로 위치를 찾아 그린 맨 위 지도 (site.js). 못 찾으면 지도 칸 없이 카카오맵 버튼만 */
.p-hero.place-failed { background: none; border-radius: 0; }
.place-failed .place-map, .place-failed .map-zoom { display: none; }
