/* 성경 읽기 듣기 | 연한 회색 바탕, 흰 카드, 보더와 밑줄 없음, 각진 박스 | 글자 크기 24, 18, 16, 14px */
@font-face{font-family:Pretendard;font-weight:400;font-display:swap;src:url(../fonts/Pretendard-Regular.woff2) format("woff2")}
@font-face{font-family:Pretendard;font-weight:700;font-display:swap;src:url(../fonts/Pretendard-Bold.woff2) format("woff2")}

:root{
  --bg:#f4f5f7;--pan:#fff;--soft:#eef0f3;--soft2:#e2e5ea;--ink:#1f2226;--sub:#4f545b;--sub2:#6b7078;
  --c1:#f7e4a6;--c2:#f5bda4;--c3:#bad6b2;--c4:#b9d5e8;
  --c1a:#fbf2d6;--c3a:#e7f1e3;--c4a:#e3eef7;
  --d1:#8f6912;--d2:#a24b29;--d3:#41723a;--d4:#2f6390;
  --sel:#e3eef7;
  --fs-l:24px;--fs-m:18px;--fs-s:16px;--fs-xs:14px;
  --rb:2px;--side:270px;--sh:0 1px 3px rgba(30,34,40,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;scrollbar-gutter:stable}
body{font:400 var(--fs-m)/1.8 Pretendard,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg);min-height:100vh;word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit;text-decoration:none}
button,select,input{font-family:inherit;color:inherit}
:focus-visible{outline:2px solid var(--d4);outline-offset:2px}
ul,ol{list-style:none}
svg{display:block}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:8px 14px;z-index:90;font-size:var(--fs-s)}
.skip:focus{left:8px;top:8px}
/* 안쪽 스크롤 영역은 막대만 숨김 (스크롤은 그대로) */
.side,.sugg,.adv{scrollbar-width:none;-ms-overflow-style:none}
.side::-webkit-scrollbar,.sugg::-webkit-scrollbar,.adv::-webkit-scrollbar{display:none}

.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.pan{background:var(--pan);box-shadow:var(--sh)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 18px;border:0;border-radius:var(--rb);background:var(--soft);font:700 var(--fs-s) Pretendard,sans-serif;white-space:nowrap;cursor:pointer}
.btn:hover{background:var(--soft2)}
.btn.pri{background:var(--c4)}.btn.pri:hover{background:#a6c8df}
.btn svg{width:18px;height:18px;fill:currentColor}
.btn:disabled{opacity:.45;cursor:default}

/* 머리글 */
.top{background:var(--pan)}
.top-in{min-height:64px;display:flex;align-items:center;gap:20px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:var(--fs-m);flex:none}
.logo img{display:block;width:26px;height:26px}
.top-s{flex:1;max-width:520px}
.topnav{display:flex;gap:2px;font-size:var(--fs-s);margin-left:auto;flex:none}
.topnav a{padding:6px 12px;border-radius:var(--rb)}.topnav a:hover{background:var(--soft)}

/* 사진 (JS가 data-bg에 Unsplash 사진을 넣음, 사진 가운데를 영역 가운데에 맞춤) */
.ph{position:relative;background-color:#c9d3db;overflow:hidden}
.ph::before{content:"";position:absolute;inset:0;background:var(--bgi,none) center center/cover no-repeat;opacity:0;transition:opacity .5s}
.ph.on::before{opacity:1}
.ph>*{position:relative;z-index:1}

/* 이미지 띠 */
.band.thin{height:96px}
.home-band{height:300px;color:#fff}
.band-in{position:relative;z-index:2;padding-top:52px;text-align:center}
.band-in h1{font-size:var(--fs-l)}
.band-in p{font-size:var(--fs-s);max-width:640px;margin:6px auto 0;line-height:1.7}

/* 2단 배치 */
.layout{display:grid;grid-template-columns:var(--side) minmax(0,1fr);gap:20px;align-items:start;margin-top:20px}
.band.thin+.layout{margin-top:-36px}
.side{position:sticky;top:16px;padding:14px 12px;max-height:calc(100vh - 32px);overflow:auto;z-index:2}
.main{position:relative;z-index:2;padding:26px 34px 30px;min-height:60vh}
.main.solo{margin-top:20px}

.seg{display:flex;background:var(--soft);padding:3px;margin-bottom:8px}
.seg a{flex:1;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--rb);font:700 var(--fs-s) Pretendard,sans-serif;color:var(--sub)}
.seg a.on{background:var(--pan);color:var(--ink);box-shadow:var(--sh)}

/* 앞뒤 2권 목록 */
.wheel{display:flex;flex-direction:column;margin:2px 0}
.wheel .w{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:var(--fs-s);border-radius:var(--rb);color:var(--sub)}
.wheel .w.d2{color:var(--sub2)}
.wheel a.w:hover{color:var(--ink);background:var(--soft)}
.wheel .w.on{background:var(--c3a);color:var(--ink);font-weight:700;height:44px}
.wheel .w small{font-size:var(--fs-xs);color:var(--sub);font-weight:400}
.all{display:block;text-align:center;font:700 var(--fs-xs) Pretendard,sans-serif;color:var(--d4);padding:6px 0 4px}
.sh{font:700 var(--fs-xs) Pretendard,sans-serif;color:var(--sub);margin:12px 4px 6px}

.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.dot.k1{background:var(--d1)}.dot.k2{background:var(--d2)}.dot.k3{background:var(--d3)}.dot.k4{background:var(--d4)}

/* 번호 칩 */
.chips{display:grid;gap:5px;grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
.chips.c6{grid-template-columns:repeat(6,1fr)}
.chips.c8{grid-template-columns:repeat(10,1fr)}
.chips a{height:34px;display:flex;align-items:center;justify-content:center;border-radius:var(--rb);background:var(--soft);font:700 var(--fs-xs) Pretendard,sans-serif}
.chips a:hover{background:var(--soft2)}
.chips a.on{background:var(--c2)}
.chips.big{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}
.chips.big a{height:44px;font-size:var(--fs-s)}

/* 본문 머리 */
.crumb{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;font-size:var(--fs-xs);color:var(--sub);margin-bottom:10px}
.crumb a:hover{color:var(--ink)}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.hd-r{display:flex;align-items:center;gap:8px;flex:none}
h1{font-size:var(--fs-l);line-height:1.4;font-weight:700}
.meta{font-size:var(--fs-xs);color:var(--sub)}
.en{margin-right:4px}
.cnav{display:flex;gap:8px}
.lead{font-size:var(--fs-s);line-height:1.85;color:var(--ink);margin:6px 0 20px}
.sec{font-size:var(--fs-m);font-weight:700;margin:24px 0 10px;scroll-margin-top:16px}
.fs{display:flex;gap:4px}
.fs button{min-width:42px;height:42px;padding:0 8px;border:0;border-radius:var(--rb);background:var(--soft);font:700 var(--fs-xs) Pretendard,sans-serif;cursor:pointer}
.fs button:hover{background:var(--soft2)}

/* 고르기 펼침 (모바일) */
details>summary{list-style:none;cursor:pointer}
details>summary::-webkit-details-marker{display:none}
.pick{display:none}
.vj{margin:0 0 14px}
.vj>summary{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:var(--rb);background:var(--soft);font:700 var(--fs-xs) Pretendard,sans-serif}
.vj>summary::after,.pick>summary::after,.bk>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:4px;opacity:.6}
.vj[open]>summary::after,.pick[open]>summary::after,.bk[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.vj .chips{margin-top:10px}

/* 본문 */
.text{margin-top:6px}
.v{position:relative;margin:0 -10px 10px;padding:2px 10px;line-height:1.95;scroll-margin-top:16px}
html:not(.js) .v:target{background:var(--sel)}
.js .text .v{cursor:pointer}
.v.sel{background:var(--sel)}
.vn{display:inline-block;min-width:22px;padding:0 4px 0 0;font:700 var(--fs-xs)/1 Pretendard,sans-serif;color:var(--d2);vertical-align:super}
.vp{position:absolute;left:-30px;top:5px;width:26px;height:26px;border:0;border-radius:var(--rb);background:var(--c4);color:var(--ink);display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;transition:opacity .12s}
.vp svg{width:14px;height:14px;fill:currentColor}
.vp:focus-visible{opacity:1}
@media (hover:hover){.v.sel:hover .vp{opacity:1}}
@media (hover:none){.vp{display:none}}
.pager{display:flex;justify-content:space-between;gap:12px;margin-top:28px;font:700 var(--fs-s) Pretendard,sans-serif}
.pager a{padding:8px 16px;border-radius:var(--rb);background:var(--soft)}
.pager a:hover{background:var(--soft2)}
.lnote{font-size:var(--fs-xs);color:var(--ink);background:var(--c1a);padding:8px 12px;margin:0 0 12px}
.lnote a{color:var(--d4);font-weight:700}

/* 책 소개 */
.firsts{font-size:var(--fs-s);display:grid;gap:2px}
.firsts a{display:block;padding:8px 10px;line-height:1.6}
.firsts a:hover{background:var(--soft)}
.firsts b{display:inline-block;min-width:56px;color:var(--d2)}

/* 홈 */
.home{padding-bottom:8px}
.start{position:relative;z-index:3;max-width:820px;margin:-96px auto 20px;padding:24px 26px 20px;box-shadow:0 10px 30px rgba(30,34,40,.12)}
.start .ns{font-size:var(--fs-s);color:var(--sub);margin-top:10px}
.tes-box{padding:22px 26px 14px;margin-bottom:16px}
.tes{font-size:var(--fs-l);margin:0 0 10px;scroll-margin-top:12px}
.tes small{font-size:var(--fs-s);color:var(--sub);font-weight:400;margin-left:6px}
.cat{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start;padding:8px 0}
.cat h3{display:flex;align-items:center;gap:8px;font-size:var(--fs-s);color:var(--sub);height:38px}
.bks{display:flex;flex-wrap:wrap;gap:6px}
.bks a{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:var(--rb);background:var(--soft);font-size:var(--fs-s)}
.bks a:hover{background:var(--c4a)}
.recent{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.recent .sh{margin:0 4px 0 0;font-weight:400}
.recent ul{display:flex;flex-wrap:wrap;gap:6px}
.recent a{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--rb);background:var(--c3a);font-size:var(--fs-xs)}
.recent a:hover{background:#d8e9d2}

/* 오늘의 말씀 (사진 배경) */
.today{min-height:340px;display:flex;align-items:center;color:#fff;margin-bottom:16px;background-color:#3c4650}
.today-in{position:relative;z-index:2;width:100%;max-width:780px;padding:48px 44px}
.today .lab{display:inline-block;font:700 var(--fs-xs) Pretendard,sans-serif;letter-spacing:.08em;padding:4px 10px;background:rgba(0,0,0,.35);margin-bottom:18px}
.today .q{font-size:var(--fs-l);line-height:1.75;font-weight:400}
.today .q::before{content:"“";display:block;font:700 56px/0.6 Georgia,serif;opacity:.55;margin-bottom:12px}
.today .ref{font:700 var(--fs-s) Pretendard,sans-serif;margin-top:14px;opacity:.92}
.t-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.t-act .btn{background:#fff;color:var(--ink)}
.t-act .btn:hover{background:var(--soft)}
.t-act .btn.gh{background:rgba(255,255,255,.18);color:#fff}
.t-act .btn.gh:hover{background:rgba(255,255,255,.3)}

/* 홈 소개 */
.about-box{padding:24px 26px 18px;margin-bottom:16px}
.about-box h2{font-size:var(--fs-m);margin-bottom:10px}
.about-box h3{font-size:var(--fs-s);margin:16px 0 4px}
.about-box p{font-size:var(--fs-s);line-height:1.85;color:var(--ink);margin-bottom:8px}

/* 문서 */
.doc p,.doc li{font-size:var(--fs-s);line-height:1.9;margin-bottom:8px}
.doc ul{margin:0 0 10px 4px}
.doc li::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--d3);margin-right:8px;vertical-align:middle}
.doc a,.tips a{color:var(--d4);font-weight:700}
.doc .crumb a{color:inherit;font-weight:400}
.doc a:hover,.tips a:hover{color:var(--ink)}

/* 글자 크기 (본문만) */
html[data-fs="1"] .text .v{font-size:var(--fs-s)}
html[data-fs="3"] .text .v{font-size:20px}
html[data-fs="4"] .text .v{font-size:var(--fs-l)}

/* 검색 입력창 */
.sbox{position:relative;display:flex;align-items:center;height:46px;background:var(--soft);padding:0 4px 0 16px}
.sbox:focus-within{box-shadow:0 0 0 2px var(--d4)}
.sbox input{flex:1;min-width:0;height:100%;border:0;border-radius:0;background:transparent;font:400 var(--fs-s) Pretendard,sans-serif;outline:0}
.sbox input::placeholder{color:var(--sub)}
.sbox input::-webkit-search-cancel-button{cursor:pointer}
.sbox button{height:38px;border:0;border-radius:var(--rb);font:700 var(--fs-s) Pretendard,sans-serif;cursor:pointer;background:transparent;flex:none}
.sbox .mic{width:40px;display:flex;align-items:center;justify-content:center;color:var(--d4)}
.sbox .mic svg{width:20px;height:20px;fill:currentColor}
.sbox .mic:hover{background:var(--soft2)}
.sbox .mic.rec{background:var(--c2);color:var(--ink)}
.sbox .go{padding:0 18px;background:var(--c4)}
.sbox .go:hover{background:#a6c8df}
.sbox.big{height:52px}
.sbox.big input{font-size:var(--fs-m)}
.sbox.big button{height:44px}
.sugg{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--pan);padding:6px;box-shadow:0 12px 30px rgba(30,34,40,.18);max-height:min(70vh,520px);overflow:auto}
.sg{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:var(--rb);background:transparent;font:400 var(--fs-s) Pretendard,sans-serif;text-align:left;cursor:pointer}
.sg span{flex:1}.sg small{font-size:var(--fs-xs);color:var(--sub)}
.sg:hover,.sg:focus{background:var(--soft);outline:0}
.sg.kw{margin-top:4px;background:var(--bg)}
.sg.back{font-weight:700}
.sg-ch{padding:4px 8px 10px}
.sg-ch .chips a{height:40px;font-size:var(--fs-s)}

/* 휠 (JS) */
.js .wheel{touch-action:none;outline:0;user-select:none;-webkit-user-select:none}
.js .wheel:focus-visible{box-shadow:0 0 0 2px var(--d4)}

/* 검색 결과 */
.find .sbox{margin:6px 0 4px}
.find .sec small{font-size:var(--fs-s);color:var(--sub);font-weight:400;margin-left:6px}
.cands{display:grid;gap:4px}
.cands .go{margin:2px 0 10px}
.bk>summary{display:flex;align-items:center;gap:10px;height:44px;padding:0 10px;font-size:var(--fs-m)}
.bk>summary small{margin-left:auto;font-size:var(--fs-xs);color:var(--sub)}
.bk>summary:hover{background:var(--soft)}
.bk[open]{background:var(--c3a)}
.bk[open]>summary{font-weight:700}
.bk-in{padding:2px 8px 12px}
.bk-in .chips a{height:40px;font-size:var(--fs-s);background:var(--pan)}
.more{display:block;margin-top:8px;font:700 var(--fs-xs) Pretendard,sans-serif;color:var(--d4)}
.hits{display:grid;gap:2px}
.hits a{display:flex;flex-direction:column;gap:2px;padding:10px 10px;font-size:var(--fs-s);line-height:1.75}
.hits a:hover{background:var(--soft)}
.hits b{display:flex;align-items:center;gap:8px;font-size:var(--fs-xs)}
mark{background:var(--c1);color:inherit;padding:0 1px}
.tips li{font-size:var(--fs-s);line-height:1.9;margin-bottom:6px}

/* 고르기와 듣기 (홈 카드, 하단 듣기 창 공통) */
.ctl{margin-top:14px}
.ctl .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ctl .row+.row{margin-top:10px}
.fld{display:block;min-width:0}
.fld.fb{flex:2 1 150px}.fld.fc,.fld.fv{flex:1 1 92px}
.ctl select{display:block;width:100%;height:44px;border:0;border-radius:0;background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f545b' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center/11px 8px;padding:0 30px 0 12px;font:400 var(--fs-s) Pretendard,sans-serif;-webkit-appearance:none;appearance:none;cursor:pointer}
.ctl select:hover{background-color:var(--soft2)}
.ctl select:disabled{opacity:.5;cursor:default}
.ctl .acts .btn{height:44px}
.ctl .btn,.ctl .last a{font-weight:400}
.ctl .acts .pri{min-width:116px}
/* 홈: 구약 신약 고르기 */
.tsg{display:flex;gap:2px;flex:none}
.tsg button{height:44px;padding:0 16px;border:0;border-radius:0;background:var(--soft);font:400 var(--fs-s) Pretendard,sans-serif;color:var(--sub);cursor:pointer}
.tsg button:hover{background:var(--soft2)}
.tsg button[aria-pressed=true]{background:var(--soft2);color:var(--ink)}
/* 홈 카드 소제목 (검색, 직접 찾기) */
.start .cl{font:400 var(--fs-xs) Pretendard,sans-serif;color:var(--sub2);margin:0 0 8px}
.start .cl.fd{margin-top:18px;padding-top:16px;box-shadow:inset 0 2px 0 var(--soft)}
.start .ctl{margin-top:0}
.start .sbox .go{background:var(--soft2);font-weight:400}
.start .sbox .go:hover{background:#d5d9df}
.start .sbox .mic{color:var(--sub)}
.ib{width:44px;height:44px;border:0;border-radius:var(--rb);background:var(--soft);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.ib:hover{background:var(--soft2)}
.ib svg{width:20px;height:20px;fill:currentColor}
.share{display:flex;gap:4px;margin-left:auto}
.share .ib svg{width:18px;height:18px}
.lk{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 6px;border:0;background:transparent;font:700 var(--fs-s) Pretendard,sans-serif;color:var(--d4);cursor:pointer}
.lk:hover{color:var(--ink)}
.lk.tg::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.lk.tg[aria-expanded=true]::after{transform:rotate(-135deg) translateY(-2px)}
.ctl .push{margin-left:auto}
.ctl .lk{font-weight:400;color:var(--sub)}
.ctl .lk:hover{color:var(--ink)}
.share+.push{margin-left:0}
.stat{font-size:var(--fs-xs);color:var(--sub);margin-top:10px}
.stat:empty{display:none}
.stat b{color:var(--ink);font-weight:400}
.last{display:flex;align-items:center;gap:8px;margin-top:12px;padding:6px 6px 6px 14px;background:var(--c4a);font-size:var(--fs-s)}
.last span{flex:none;color:var(--sub);font-size:var(--fs-xs)}
.last a{flex:0 1 auto;min-width:0;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.last .ib{width:38px;height:38px;background:var(--pan)}
.last .ib:hover{background:var(--soft)}
.adv{margin-top:12px;padding:14px 16px;background:var(--bg);display:grid;gap:10px}
/* 상세 설정 한 줄: 라벨 칸 + 같은 너비 4칸 */
.ar{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;align-items:center}
.ar[hidden]{display:none}
.ar .lab{font:400 var(--fs-xs) Pretendard,sans-serif;color:var(--sub2)}
.opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.opts button,.ob{height:40px;padding:0 6px;border:0;border-radius:var(--rb);background:var(--pan);font:400 var(--fs-xs) Pretendard,sans-serif;color:var(--sub);white-space:nowrap;cursor:pointer}
.opts button:hover{background:var(--soft)}
.opts button[aria-pressed=true]{background:var(--soft2);color:var(--ink)}
.opts button:disabled,.ob:disabled{opacity:.45;cursor:default}
.ob:hover{background:var(--soft)}
.opts .w2{grid-column:span 2}.opts .w3{grid-column:span 3}
.adv select{height:40px;background-color:var(--pan);font-size:var(--fs-xs)}
.adv select:hover{background-color:var(--soft)}
.adv .note{font-size:var(--fs-xs);color:var(--sub)}

/* 하단 듣기 창 */
.dock{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:40;width:min(860px,calc(100% - 24px));background:var(--pan);box-shadow:0 10px 36px rgba(30,34,40,.22);padding:6px 16px 14px}
.dock .ctl{margin-top:4px}
.dock .adv{max-height:min(46vh,420px);overflow:auto}
.dk-top{display:flex;justify-content:center}
.dk-fold{display:flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 14px;border:0;border-radius:var(--rb);background:transparent;font:700 var(--fs-xs) Pretendard,sans-serif;color:var(--sub);cursor:pointer}
.dk-fold:hover{background:var(--soft)}
.dk-fold svg{width:14px;height:14px;fill:currentColor}
html.dock-on body{padding-bottom:var(--dock-h,180px)}

/* 퀵버튼 (반투명, 뒤 글자가 비쳐 보임) */
.fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:39;display:flex;align-items:center;gap:6px}
.fab button{display:flex;align-items:center;justify-content:center;gap:6px;height:48px;border:0;border-radius:var(--rb);font:700 var(--fs-s) Pretendard,sans-serif;cursor:pointer;box-shadow:0 2px 10px rgba(30,34,40,.12);color:var(--ink)}
.fab svg{width:18px;height:18px;fill:currentColor}
.fab-b{padding:0 20px 0 16px;background:rgba(255,255,255,.6)}
.fab-b.on{background:rgba(185,213,232,.7)}
.fab-u{width:48px;background:rgba(255,255,255,.6)}
.fab button:hover,.fab button:focus-visible{background:var(--pan)}
.fab-b.on:hover,.fab-b.on:focus-visible{background:var(--c4)}
html.fab-on body{padding-bottom:88px}

/* 맨 위로 */
.totop{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:38;width:48px;height:48px;border:0;border-radius:var(--rb);background:rgba(255,255,255,.6);color:var(--ink);box-shadow:0 2px 10px rgba(30,34,40,.12);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.totop.on{opacity:1;visibility:visible}
.totop:hover,.totop:focus-visible{background:var(--pan)}
.totop svg{width:22px;height:22px;fill:currentColor}
html.fab-on .totop{bottom:calc(72px + env(safe-area-inset-bottom))}
html.dock-on .totop{bottom:calc(var(--dock-h,180px) - 16px)}

.toast{position:fixed;left:50%;bottom:120px;transform:translate(-50%,20px);z-index:70;background:var(--ink);color:#fff;padding:8px 16px;font-size:var(--fs-xs);opacity:0;pointer-events:none;transition:.2s}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* 바닥글 */
.foot{margin-top:40px;padding:26px 0 34px;font-size:var(--fs-xs);color:var(--sub);text-align:center}
.foot .brand{color:var(--ink);margin-bottom:6px}
.foot,.foot *{font-weight:400}
.fl{display:flex;justify-content:center;gap:10px}
.fl a:hover{color:var(--ink)}

/* 모바일, 태블릿 (768px 미만) */
@media (max-width:767px){
  .wrap{padding:0 12px}
  .top-in{flex-wrap:wrap;min-height:56px;gap:6px 10px;padding-top:8px;padding-bottom:8px}
  .topnav a{padding:6px 8px}
  .top-s{order:3;flex:0 0 auto;width:100%;max-width:none;height:44px}
  .home-band{height:250px}
  .band-in{padding-top:26px}
  .band-in p{font-size:var(--fs-xs)}
  .band.thin{height:64px}
  .band.thin+.layout{margin-top:-24px}
  .layout{display:block;margin-top:12px}
  .side{display:none}
  .main{padding:18px 18px 22px}
  .main.solo{margin-top:12px}
  .head{align-items:flex-start;flex-wrap:wrap}
  .hd-r{margin-left:auto}
  .cnav .btn{padding:0 14px}
  .pick{display:block;margin:0 0 12px;background:var(--soft)}
  .pick>summary{display:flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;font-size:var(--fs-s)}
  .pick>summary b{margin-right:auto}
  .pick[open]{background:var(--bg)}
  .pick-in{padding:0 12px 12px}
  .pick .chips a{height:44px;font-size:var(--fs-s);background:var(--pan)}
  .chips.c8{grid-template-columns:repeat(6,1fr)}
  .vj .chips a{height:44px;font-size:var(--fs-s)}
  .start{margin-top:-56px;padding:18px 16px 16px}
  .tes-box{padding:18px 16px 10px}
  .cat{grid-template-columns:1fr;gap:4px;padding:6px 0 10px}
  .cat h3{height:auto}
  .today{min-height:0}
  .today-in{padding:32px 22px}
  .today .q{font-size:var(--fs-m)}
  .about-box{padding:20px 18px 14px}
  .fld.fb{flex:1 1 60%}.fld.fc,.fld.fv{flex:1 1 40%}
  .start .row.sel{flex-wrap:nowrap}
  .start .fld.fb{flex:1.6 1 0}.start .fld.fc{flex:1 1 0}
  .tsg button{padding:0 10px}
  .start select{padding:0 24px 0 10px;background-position:right 9px center}
  .ar{grid-template-columns:1fr;gap:6px}
  .opts.rg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opts.ed{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opts.vo{grid-template-columns:minmax(0,1fr) auto}
  .opts.vo .w3{grid-column:auto}
  .sbox.big input{font-size:var(--fs-s)}
  .sbox.big .go{padding:0 14px}
  .ob{padding:0 14px}
  .ctl .acts .btn{flex:1}
  .ctl .acts .lk{flex:none}
  .dock{left:0;right:0;bottom:0;transform:none;width:100%;padding:4px 12px calc(12px + env(safe-area-inset-bottom))}
  .dock .row.sel{flex-wrap:nowrap}
  .dock .fld.fb{flex:1.5 1 0;min-width:0}.dock .fld.fc,.dock .fld.fv{flex:1 1 0;min-width:0}
  .dock select{padding:0 24px 0 10px;background-position:right 9px center}
  .dock .acts{flex-wrap:nowrap;gap:6px}
  .dock .acts .play{min-width:0;padding:0 12px}
  .dock .share{gap:2px}
  .dock .share .ib{width:40px}
  .dock .lk{padding:0 2px}
  .dock .adv{max-height:48vh}
  .fab,.totop{right:12px}
}
@media (min-width:768px) and (max-width:1023px){
  :root{--side:230px}
  .main{padding:22px 30px}
}
@media print{
  .top,.band,.side,.pick,.vj,.cnav,.fs,.pager,.foot,.dock,.fab,.totop,.lnote,.today,.about-box{display:none!important}
  .layout{display:block}.pan{box-shadow:none}
  body{background:#fff;padding:0!important}
}