/* Joyhouse 2D — 모든 쪽이 함께 쓰는 스타일 */
:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #1b2233;
  --ink-2: #4a5263;
  --muted: #7b8191;
  --line: #e6e0d4;
  --navy: #14213d;
  --gold: #b08d57;
  --red: #8a1c1c;
  --green: #1f6f5a;
  --blue: #2d4a7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .16);
  --wrap: 1180px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ── 머리 ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; padding: 8px 11px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: #efe9dd; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: #efe9dd; }
.nav .btn-3d { margin-left: 8px; background: var(--navy); color: #fff; font-weight: 600; }
.nav .btn-3d:hover { background: #22325a; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn-3d { margin: 8px 0 0; text-align: center; }
}

/* ── 히어로 ── */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s ease; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 32, .15) 0%, rgba(10, 16, 32, .35) 45%, rgba(10, 16, 32, .85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 104px; padding-top: 120px; width: 100%; }
.hero .eyebrow { color: #e6cf9f; }
.hero p.lead { color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-dots { position: absolute; right: 24px; bottom: 28px; z-index: 2; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); padding: 0; cursor: pointer; }
.hero-dots button.on { background: #fff; width: 26px; border-radius: 6px; }
.photo-credit { position: absolute; left: 24px; bottom: 10px; z-index: 2; font-size: .7rem; color: rgba(255, 255, 255, .6); }
.photo-credit a { color: inherit; }

.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: var(--navy) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 32, .2), rgba(10, 16, 32, .82)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 54px; width: 100%; }
.page-hero .eyebrow { color: #e6cf9f; }
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 44em; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; }

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .96rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #9c7a48; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ── 섹션 ── */
section.block { padding: 96px 0; }
section.block.tight { padding: 64px 0; }
section.alt { background: #f3eee5; }
section.dark { background: var(--navy); color: #e9ecf3; }
section.dark .lead, section.dark .muted { color: #b7bfd0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .lead { margin: 0; }

/* ── 숫자 ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: -64px; position: relative; z-index: 3; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 2.2rem/1.1 var(--serif); color: var(--navy); }
.stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ── 카드 ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border: 1px solid #efe9de; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e9e3d7; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .95rem; }
.card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.card-foot { margin-top: auto; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.tag { display: inline-block; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: #f1ebdf; color: var(--ink-2); margin: 0 6px 6px 0; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--red); font-weight: 600; }

/* 방 카드: 그림 위 글자 */
.room-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; color: #fff; text-decoration: none; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.room-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 16, 32, .85)); }
.room-card:hover img { transform: scale(1.06); }
.room-card div { position: relative; z-index: 1; padding: 24px; }
.room-card h3 { color: #fff; margin-bottom: 4px; font-size: 1.35rem; }
.room-card p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.room-card .card-kicker { color: #e6cf9f; }
.room-card.big { grid-row: span 2; min-height: 624px; }
.room-card.wide { grid-column: 1 / -1; min-height: 240px; }
@media (max-width: 960px) { .room-card.big { grid-row: auto; min-height: 340px; } }

/* 반반 */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mosaic img:first-child { grid-row: span 2; }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* 연표 */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 2px; background: linear-gradient(90deg, var(--gold), #6a7aa0); }
.era { position: relative; padding-top: 44px; }
.era::before { content: ""; position: absolute; top: 13px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
section.dark .era::before { background: var(--navy); }
.era b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.era small { display: block; color: var(--muted); font-size: .8rem; }
.era span { font-size: .86rem; color: var(--ink-2); }
section.dark .era span { color: #c8cfdd; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr; gap: 0; } .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .era { padding: 0 0 22px 36px; } .era::before { top: 6px; } }

/* 책 */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 22px; }
.book { text-decoration: none; }
.book-cover { aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 6px 10px 22px rgba(20, 33, 61, .22), inset 4px 0 0 rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: #fff; font: 600 .95rem/1.4 var(--serif); transition: transform .25s; }
.book:hover .book-cover { transform: translateY(-6px) rotate(-1deg); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book h4 { font-size: .9rem; margin: 12px 0 2px; line-height: 1.4; }
.book small { color: var(--muted); font-size: .8rem; }

/* 블로그 */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--paper); border-radius: var(--radius); padding: 26px; text-decoration: none; border: 1px solid #efe9de; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post h3 { font-size: 1.08rem; margin: 6px 0 10px; }
.post p { font-size: .9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post time { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* 갤러리 */
.gallery { columns: 3 300px; column-gap: 22px; }
.art { break-inside: avoid; margin: 0 0 22px; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; border: 0; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.art img { width: 100%; }
.art figcaption { padding: 14px 16px 16px; }
.art figcaption b { font-family: var(--serif); display: block; }
.art figcaption small { color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 24, .92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; flex-direction: column; gap: 14px; color: #fff; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 80vh; max-width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox p { margin: 0; text-align: center; color: #cfd5e2; }

/* 지도 */
.map-box { background: #0f1a33; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); }
.map-box svg { width: 100%; height: auto; display: block; }
.map-box .land { fill: #2a3a5e; stroke: #3c4f7a; stroke-width: .4; }
.map-box .pin { fill: #f2c46b; stroke: #fff; stroke-width: .6; opacity: .92; }
.map-box .pin:hover { fill: #ff7a59; }
.pin-list { columns: 4 160px; column-gap: 24px; font-size: .9rem; padding: 0; list-style: none; }
.pin-list li { break-inside: avoid; display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.pin-list b { color: var(--gold); }

/* 여행지 카드 (여행 지도의 Destinations 와 같은 꼴) */
.dest .card-img { position: relative; }
.dest .visits { position: absolute; right: 12px; top: 12px; background: rgba(20, 33, 61, .82); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dest h3 { margin-bottom: 2px; }
.dest .where { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.dest .intro { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dest .card-foot { align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; }
.dest .card-foot a { white-space: nowrap; font-size: .85rem; }
.pin-list small { font-size: .78rem; margin-left: 4px; }

/* 앱 */
.app-card .card-body { padding-top: 20px; }
.app-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 1.1rem var(--serif); margin-bottom: 14px; }
.app-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.app-links a { font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* 인용·안내 */
.quote { font: 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.6 var(--serif); max-width: 30em; margin: 0 auto; text-align: center; }
.quote cite { display: block; font: 500 .9rem var(--sans); color: var(--gold); margin-top: 18px; font-style: normal; }
.cta-band { position: relative; color: #fff; text-align: center; padding: 110px 0; background: var(--navy) center/cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(12, 20, 40, .72); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band p { color: #d5dbe7; max-width: 40em; margin: 0 auto 28px; }
.notice { background: #fff7e8; border: 1px solid #ecd7ad; border-radius: 12px; padding: 18px 20px; color: #6b5226; font-size: .95rem; }

/* ── 꼬리 ── */
.site-footer { background: #0e1730; color: #aab3c6; padding: 64px 0 32px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font: 600 .95rem var(--sans); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #aab3c6; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .bottom { border-top: 1px solid #22304f; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }

/* 크레딧 표 */
.credits { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; overflow: hidden; }
.credits th, .credits td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.credits img { width: 88px; height: 56px; object-fit: cover; border-radius: 6px; }
.table-scroll { overflow-x: auto; }

/* ── 아이디어 랩 ── */
.idea-featured { display: grid; grid-template-columns: 280px 1fr; gap: 0; align-items: stretch; margin-bottom: 28px; background: var(--navy); color: #e9ecf3; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.idea-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.idea-featured div { padding: 24px 28px; }
.idea-featured h3 { color: #fff; font-size: 1.35rem; }
.idea-featured p { margin: 0; color: #c3cad8; }
.idea-featured .card-kicker { color: #e6cf9f; }
.idea-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.idea-filter button { font: 500 .92rem var(--sans); padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.idea-filter button small { color: var(--muted); margin-left: 2px; }
.idea-filter button[aria-pressed="true"] { background: var(--tc, var(--navy)); border-color: var(--tc, var(--navy)); color: #fff; }
.idea-filter button[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.idea-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid #efe9de; border-top: 4px solid var(--tc); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.idea-card[hidden] { display: none; }
.idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.idea-img { position: relative; aspect-ratio: 16 / 9; background: #e9e3d7; overflow: hidden; }
.idea-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.idea-card:hover .idea-img img { transform: scale(1.05); }
.idea-no { position: absolute; left: 12px; top: 10px; font: 700 .85rem var(--serif); color: #fff; background: rgba(10, 16, 32, .6); padding: 3px 9px; border-radius: 6px; }
.idea-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.idea-body h3 { margin-bottom: 6px; }
.idea-body p { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }
.idea-badges { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.idea-badges span { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: #f1ebdf; color: var(--ink-2); }
.idea-note { margin-top: 24px; font-size: .85rem; }
@media (max-width: 960px) { .idea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .idea-grid { grid-template-columns: 1fr; } .idea-featured { grid-template-columns: 1fr; } .idea-featured img { max-height: 180px; } }

.idea-hero { min-height: 480px; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.idea-tags span { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.idea-detail .eyebrow { color: var(--tc, var(--gold)); }
.idea-ps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks.x li::before { width: 12px; height: 12px; border: 0; top: .4em; transform: none; background: linear-gradient(45deg, transparent 44%, var(--red) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--red) 44% 56%, transparent 56%); }
.idea-who { margin-top: 28px; padding: 22px 26px; background: var(--paper); border-left: 4px solid var(--tc); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.idea-who ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.bmc { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto auto auto; gap: 10px; }
.bmc > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.bmc h4 { margin: 0 0 6px; font: 700 .78rem var(--sans); letter-spacing: .06em; color: var(--tc); }
.bmc p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.bmc-part { grid-column: 1; grid-row: 1 / 3; }
.bmc-act { grid-column: 2; grid-row: 1; }
.bmc-res { grid-column: 2; grid-row: 2; }
.bmc-value { grid-column: 3; grid-row: 1 / 3; background: color-mix(in srgb, var(--tc) 8%, var(--paper)) !important; border-color: var(--tc) !important; }
.bmc-rel { grid-column: 4; grid-row: 1; }
.bmc-chan { grid-column: 4; grid-row: 2; }
.bmc-seg { grid-column: 5; grid-row: 1 / 3; }
.bmc-cost { grid-column: 1 / 3; grid-row: 3; }
.bmc-rev { grid-column: 3 / 6; grid-row: 3; }
.idea-money { margin-top: 26px; background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.idea-money small { font: 500 .75rem var(--sans); color: var(--muted); margin-left: 6px; }
.idea-money table, .idea-alt, .idea-risk table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.idea-money th, .idea-money td, .idea-alt th, .idea-alt td, .idea-risk th, .idea-risk td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.idea-money th { width: 40%; color: var(--ink-2); font-weight: 500; }
.idea-money td { font-weight: 700; color: var(--navy); }
.idea-money p { margin: 12px 0 0; font-size: .85rem; }
.idea-alt thead th, .idea-risk thead th { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.idea-edge { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 9%, var(--paper)); }
.idea-edge b { color: var(--tc); margin-right: 6px; }
.idea-detail-table { margin-bottom: 26px; background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.idea-detail-table h3 { color: var(--tc); }
.idea-detail-table .table-scroll { overflow-x: auto; }
.idea-detail-table table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.idea-detail-table th, .idea-detail-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.idea-detail-table thead th { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.idea-detail-table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.idea-road { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: r; }
.idea-road li { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--tc); }
.idea-road b { display: block; font-family: var(--serif); color: var(--tc); margin-bottom: 6px; }
.idea-road span { color: var(--ink-2); font-size: .93rem; }
.idea-risk { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.idea-why { margin: 0 0 30px; padding: 26px 32px; border-left: 4px solid var(--gold); background: #f3eee5; border-radius: 0 var(--radius) var(--radius) 0; }
.idea-why p { margin: 0; font: 500 1.15rem/1.8 var(--serif); color: var(--navy); }
.idea-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.idea-pager a { text-decoration: none; font-weight: 600; color: var(--navy); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.idea-pager a:hover { border-color: var(--tc); }
@media (max-width: 900px) {
  .idea-ps { grid-template-columns: 1fr; gap: 12px; }
  .bmc { grid-template-columns: 1fr 1fr; }
  .bmc > div { grid-column: auto !important; grid-row: auto !important; }
  .bmc-value, .bmc-rev, .bmc-cost { grid-column: 1 / -1 !important; }
  .idea-road { grid-template-columns: 1fr; }
}

/* ── 홈 단면도 (웨스 앤더슨식 대칭 단면) ── */
section.house { padding-top: 72px; }
.house-plate { text-align: center; max-width: 560px; margin: 0 auto 28px; padding: 18px 28px 6px; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; background: var(--paper); }
.house-plate h2 { margin-bottom: .2em; }
.house-plate p { margin: 0 0 .9em; font-size: .95rem; }
.house-figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.house-svg { display: block; width: 100%; height: auto; }
.hs-room { cursor: pointer; outline: none; }
.hs-room .hs-wall { transition: filter .25s; }
.hs-room:hover .hs-wall, .hs-room:focus-visible .hs-wall { filter: brightness(1.06) saturate(1.25); stroke: var(--gold); stroke-width: 4; }
.hs-room .hs-ico { transition: transform .35s; transform-box: fill-box; transform-origin: center bottom; }
.hs-room:hover .hs-ico, .hs-room:focus-visible .hs-ico { transform: translateY(-3px); }
.hs-kicker { font: 700 10px var(--sans); letter-spacing: .2em; fill: var(--gold); text-anchor: middle; }
.hs-name { font: 700 19px var(--serif); fill: var(--navy); text-anchor: middle; }
.hs-plaque { font: 700 15px var(--serif); letter-spacing: .24em; fill: #e6cf9f; }
.hs-sign { font: 700 20px var(--serif); fill: var(--red); }
.house-desc { padding: 14px 20px; border-top: 1px solid var(--line); text-align: center; font-size: .95rem; color: var(--ink-2); min-height: 3.2em; }
.house-chips { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.house-chips a { text-decoration: none; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); }
@media (max-width: 720px) {
  .house-svg text { display: none; }
  .house-chips { display: flex; }
  .house-plate { padding: 14px 16px 4px; }
}
@media (prefers-reduced-motion: reduce) { .hs-room .hs-ico, .hs-room .hs-wall { transition: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-slides img { transition: none; } html { scroll-behavior: auto; } }

/* 신앙: 연재별 카드 목록 + 글 상세 */
.faith-series { margin-bottom: 64px; }
.faith-series-head { border-left: 4px solid var(--tc); padding-left: 18px; margin-bottom: 26px; }
.faith-series-head h2 { margin-bottom: .2em; }
.faith-series-head p { color: var(--ink-2); margin: 0; }
.faith-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.faith-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid #efe9de; border-top: 4px solid var(--tc); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.faith-card[hidden] { display: none; }
.faith-filter { margin: -6px 0 22px; }
.faith-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.faith-img { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.faith-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.faith-card:hover .faith-img img { transform: scale(1.05); }
.faith-body { padding: 16px 18px 20px; }
.faith-body h3 { font-size: 1.08rem; margin: .3em 0 .4em; }
.faith-body p { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.6; }
.faith-article { max-width: 720px; }
.faith-article > p { font-size: 1.06rem; line-height: 1.95; margin: 0 0 1.3em; }
.faith-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.faith-meta span { color: var(--tc); font-weight: 700; }
.faith-verse { margin: 0 0 32px; padding: 20px 24px; background: #faf6ee; border-left: 4px solid var(--tc); font-family: var(--serif); font-size: 1.08rem; line-height: 1.8; }
.faith-q { margin: 36px 0 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faith-q p { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
@media (max-width: 1080px) { .faith-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .faith-grid { grid-template-columns: 1fr; } .faith-article > p { font-size: 1rem; } }
