/* 성경 팩 전용(틀 밖): 연도 표기·언어 단추를 ☰ 메뉴 안에 맞춘다 */
/* ui.year_style(연도 표기 고르기): 우측 상단 [신고·제안][AD CE HE][한 EN 日 ES]. 좁은 화면(폭 600 이하)은 지금 값 하나만 보이고 누르면 목록(언어 단추와 같은 방식) */
#ys-switch { position: relative; display: inline-flex; height: var(--btn-h); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--btn-r); box-sizing: border-box; }
#ys-list { display: inline-flex; }
#ys-switch .dbtn { height: auto; min-width: 34px; padding: 0 9px; border: 0; border-radius: 0; background: transparent; color: var(--btn-fg); white-space: nowrap; }
#ys-list .dbtn:not(:first-child) { border-left: 1px solid var(--btn-sep); }
#ys-list .dbtn:first-child { border-radius: calc(var(--btn-r) - 1px) 0 0 calc(var(--btn-r) - 1px); }
#ys-list .dbtn:last-child { border-radius: 0 calc(var(--btn-r) - 1px) calc(var(--btn-r) - 1px) 0; }
#ys-switch .dbtn:hover { background: rgba(200, 133, 14, .55); color: #fff8e6; }
#ys-switch .dbtn.on { background: var(--btn-hot); color: #fff8e6; }
#ys-cur { display: none; }
#ys-cur { display: inline-flex; border-radius: calc(var(--btn-r) - 1px); }
#ys-list { display: none; position: absolute; top: calc(100% + 4px); right: 0; flex-direction: column; background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--btn-r); min-width: 56px; }
#ys-switch.open #ys-list { display: flex; }
#ys-list .dbtn { height: var(--btn-h); border-radius: 0 !important; }
#ys-list .dbtn:not(:first-child) { border-left: 0; border-top: 1px solid var(--btn-sep); }
#mmenu #top-right{position:static;display:flex;flex-direction:column;gap:6px;padding:6px 10px}
#mmenu #ys-switch,#mmenu #lang-switch{display:flex;position:static;width:fit-content}
#mmenu #ys-cur,#mmenu #lang-cur{display:none!important}
#mmenu #ys-list,#mmenu #lang-list{display:inline-flex!important;position:static;flex-direction:row;border:0;min-width:0}
#mmenu #ys-list .dbtn,#mmenu #lang-list .dbtn{height:var(--btn-h,30px);border-radius:0!important;border-left:1px solid var(--btn-sep,#b8ad98)}
#mmenu #ys-list .dbtn:first-child,#mmenu #lang-list .dbtn:first-child{border-left:0}
#mmenu #gospel-row{display:flex!important;flex-direction:column;gap:4px;padding:4px 10px}
#mmenu #citation-bar{padding:2px 10px}
#hud-panel>#citation-bar{display:block;margin:4px 8px}
/* 11/11 발주처: 오른쪽 판 글이 판 가장자리에 붙어 있음 → 안쪽 여백 */
#hud-panel .detail{padding:14px 20px 18px}
#hud-panel .detail .ev-chars{padding-left:0;margin-left:0}
#hud-panel .detail li{margin-left:0}
#hud-panel #citation-bar{margin:8px 12px 4px}

/* 11/11 같은 때 다른 곳(UI.parallel): 지도 보조 핀 + 옆판 카드 */
#sphere-map .event-pin.par .pin-dot,.event-pin.par .pin-dot{fill:#1f5a6e;stroke:#f7ecd6;stroke-width:2}
#sphere-map .event-pin.par .par-label,.event-pin.par .par-label{fill:#12394a;font-size:calc(12.5px*var(--inv,1))}
.par-box{margin:8px 0 10px;padding:8px 10px 6px;border:1px solid #c9b98f;border-left:3px solid #1f5a6e;background:rgba(31,90,110,.07);border-radius:3px}
.par-h{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;font-size:13px;color:#12394a;margin-bottom:6px}
.par-fit{border:1px solid #1f5a6e;background:#fff8e6;color:#12394a;font-size:12px;padding:3px 8px;border-radius:3px;cursor:pointer}
.par-list{display:flex;flex-direction:column;gap:4px}
.par-card{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;text-align:left;border:1px solid #d8cba5;background:#fffaf0;color:#2b2013;padding:5px 8px;border-radius:3px;cursor:pointer;font:inherit;font-size:13px;line-height:1.35}
.par-card:hover{border-color:#1f5a6e;background:#f4efe3}
.par-card .pc-yr{font-size:11.5px;color:#5a4a33;grid-row:1}.par-card .pc-loc{font-weight:800;color:#12394a;grid-row:1}
.par-card .pc-t{grid-column:1/3}.par-card .pc-era{grid-column:1/3;font-size:11px;color:#6b5a3a}
@media (max-width: 600px){.par-list{flex-direction:row;overflow-x:auto;padding-bottom:4px}.par-card{flex:0 0 190px}}

/* 11/11 해 단위 v2: 시대 띠 밑 숫자는 글에 단위가 들어 있다 · 옆판 목록 줄 앞 칸 = 장소 이름 */
#ages-dial .adyrs span::after{content:""}
#hud-panel #year-events .nev .nh{grid-template-columns:5.4em 1fr auto!important}
#hud-panel #year-events .nev .ny{min-width:0;text-align:right;font-size:12px;line-height:1.3;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}

/* 11/13 발주처(성경 그리기): 나라 면·테두리를 세계 지도(/ko/)와 같은 값으로 — ages_tone.css 의 연한 면(.26)·크림 얇은 테두리·채도 0.7 을 이 팩에서만 덮는다.
   ★!important 금지: .dim/.hatch/.fief/.influence-* 같은 상태 규칙이 (0,2,0) 이라 body .sphere-polity (0,1,1) 보다 이긴다 */
body .sphere-polity{fill-opacity:var(--pol-fo,.5);stroke:var(--pol-sc,#1b1710);stroke-width:var(--pol-sw,1.5);stroke-opacity:var(--pol-so,.9);filter:none}
body .sphere-nominal{fill-opacity:.16;stroke:#4a443a;stroke-opacity:.55}
body .sphere-polity.hatch{stroke:#4a443a}
/* 오늘 지도 겹치기(현대 지명·국경·도시 점) 단추는 성경 팩에서 뺀다 — 눌러 켜 놓으면 옛 나라 면 아래로 현대 글자가 비친다 */
#today-btn{display:none!important}
