/* V143.58 문구·줄바꿈 수정 + 한글 줄바꿈 기본 개선 */
/* 한글 단어 중간에서 줄이 끊기지 않게(예: "남겨주시 / 면"). 아주 긴 단어는 넘치지 않게 끊는다. */
.page:not(#page-admin) :is(h1,h2,h3,h4,p){word-break:keep-all;overflow-wrap:anywhere}
@media (max-width:760px){br.hana-br-pc{display:none}}
@media (min-width:761px){br.hana-br-mobile{display:none}}
html.htt-on .htt-tunable{outline:2px dashed rgba(169,139,96,.75);outline-offset:3px;cursor:text;border-radius:2px;transition:background .15s}
html.htt-on .htt-tunable:hover{background:rgba(255,236,190,.45);outline-color:#a98b60}
html.htt-on body{padding-bottom:64px}
.htt-bar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:2147483000;display:flex;align-items:center;gap:14px;max-width:calc(100% - 24px);padding:12px 14px 12px 18px;border-radius:10px;background:#2b2926;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:13px;line-height:1.45}
.htt-bar b{white-space:nowrap}.htt-bar span{color:#d8d2c8}
.htt-bar button{flex:none;border:0;border-radius:6px;background:#fff;color:#2b2926;font-weight:700;padding:8px 12px;cursor:pointer}
@media (max-width:760px){.htt-bar{flex-wrap:wrap;gap:6px 10px;bottom:10px}.htt-bar span{display:none}}
.htt-modal-wrap{position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,18,16,.45)}
.htt-modal{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:10px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.3);color:#2b2926;font-size:14px}
.htt-modal h3{margin:0 0 12px;font-size:18px}
.htt-orig{background:#f6f4f0;border-radius:6px;padding:10px 12px;margin-bottom:14px}
.htt-orig small{color:#8a8379;font-size:12px}.htt-orig p{margin:4px 0 0;line-height:1.55;word-break:keep-all}
.htt-label{display:block;font-weight:650;margin-bottom:6px}.htt-label small{font-weight:500;color:#8a8379;margin-left:6px}
.htt-modal textarea{width:100%;box-sizing:border-box;border:1px solid #d6d1c9;border-radius:6px;padding:10px 12px;font:inherit;font-size:15px;line-height:1.6;resize:vertical}
.htt-modal textarea:focus{outline:none;border-color:#a98b60;box-shadow:0 0 0 3px rgba(169,139,96,.15)}
.htt-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:12px 0 4px;font-size:13px}
.htt-row>span{font-weight:650}.htt-row label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.htt-note{margin:8px 0 0;font-size:12px;color:#8a8379}
.htt-actions{display:flex;align-items:center;gap:8px;margin-top:16px}.htt-actions>span{flex:1}
.htt-actions button{border-radius:6px;padding:9px 14px;font-weight:650;cursor:pointer;border:1px solid #d6d1c9;background:#fff;color:#2b2926}
.htt-actions .htt-save{background:#2b2926;border-color:#2b2926;color:#fff}
.htt-actions .htt-reset{color:#b4483a;border-color:#e3c9c4;background:#fff7f5}
.htt-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.htt-admin-head h3{margin:0 0 4px}.htt-admin-head p{margin:0;color:#6b665f;font-size:13.5px}
.htt-howto{margin:14px 0 18px;padding:12px 16px 12px 34px;background:#faf8f4;border:1px solid #ebe6de;border-radius:8px;font-size:13px;line-height:1.75;color:#5f5950}
.htt-admin h4{margin:0 0 8px;font-size:15px}
.htt-table{width:100%;border-collapse:collapse;border-top:2px solid #2b2926;font-size:13px}
.htt-table th{background:#f6f4f0;text-align:left;padding:9px 10px;border-bottom:1px solid #ddd8d0;white-space:nowrap}
.htt-table td{padding:10px;border-bottom:1px solid #ebe6de;vertical-align:top;word-break:keep-all}
.htt-table td:last-child{width:1%;white-space:nowrap}.htt-new{color:#22211f;font-weight:600}
.htt-enter{color:#a98b60;font-weight:700;margin-left:2px}
.htt-empty{color:#8a8379;font-size:13px}
.htt-oneline{border:1px solid #d6d1c9;background:#fff;border-radius:6px;padding:6px 10px;font:inherit;font-size:12.5px;font-weight:650;color:#3a3732;cursor:pointer}
.htt-oneline:hover{background:#faf8f4}
.htt-brline{padding:14px;border:1px solid #e6dfd3;border-radius:8px;background:#fbf9f5;font-size:17px;font-weight:700;line-height:1.9;color:#22211f;word-break:keep-all}
.htt-brtoggle{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;margin:0 4px;padding:0 6px;border:1.5px solid #a98b60;border-radius:6px;background:#fff;color:#8a6a3c;font:inherit;font-size:13px;font-weight:800;vertical-align:2px;cursor:pointer}
.htt-brtoggle.is-off{border-style:dashed;border-color:#c9c2b6;color:#a39b8f;background:#f3f0ea}
/* V143.58 한 줄로 이어서 보이기 */
.hana-oneline{white-space:nowrap!important;max-width:100%!important;overflow:visible}
.hana-oneline br,.hana-oneline .hana-br,.hana-oneline .hana-br-pc,.hana-oneline .hana-br-mobile{display:none!important}
.htt-one{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 4px;padding:10px 12px;border:1px solid #c7d2fe;border-radius:10px;background:#eef2ff;cursor:pointer;font-size:14px}
.htt-one input{width:18px;height:18px;margin:0}
.htt-one small{flex-basis:100%;color:#4f46e5;font-size:12px;line-height:1.5}
/* V143.58 PC 글자 칸 너비 */
@media (min-width:981px){html body .hana-pcw.hana-pcw.hana-pcw,html body #page-home .hana-pcw.hana-pcw,html body #genericBody .hana-pcw.hana-pcw{width:var(--htt-pcw)!important;max-width:none!important;min-width:0!important;flex:none!important}}
.htt-wh{position:fixed;z-index:99980;display:none;width:14px;align-items:center;justify-content:center;cursor:ew-resize;touch-action:none}
.htt-wh::before{content:"";position:absolute;inset:0 5px;border-radius:3px;background:#2563eb;opacity:.85}
.htt-wh span{position:relative;width:22px;height:22px;border-radius:50%;background:#2563eb;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(37,99,235,.5)}
.htt-wh[data-w]::after{content:attr(data-w);position:absolute;left:18px;top:-26px;background:#111827;color:#fff;font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap}
.htt-resizing{outline:2px solid #2563eb!important;outline-offset:2px}
.htt-pcw-row{display:flex;align-items:center;gap:10px}
.htt-pcw-reset{height:32px;padding:0 12px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;cursor:pointer}
/* V143.58 글자 편집기 (서식) */
.htt-modal.htt-rich{width:min(720px,100%)}
.htt-tb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.htt-grp{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #e3ded6;border-radius:10px;background:#faf8f4}
.htt-tb button,.htt-tb .htt-color{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:36px;height:34px;padding:0 9px;border:1px solid transparent;border-radius:7px;background:#fff;color:#2b2926;font:inherit;font-size:14px;cursor:pointer;box-sizing:border-box}
.htt-tb button:hover,.htt-tb .htt-color:hover{border-color:#a98b60}
.htt-tb button.on{background:#2b2926;color:#fff}
.htt-tb svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.htt-color input[type=color]{width:24px;height:22px;padding:0;border:0;background:none;cursor:pointer}
.htt-hl span{background:linear-gradient(transparent 50%,#fff176 50%);font-size:13px;font-weight:700}
.htt-tb2{padding:8px 10px;border:1px solid #e3ded6;border-radius:10px;background:#faf8f4;font-size:13px;font-weight:650}
.htt-tb2 label{display:inline-flex;align-items:center;gap:6px}
.htt-tb2 select{height:32px;border:1px solid #d6d1c9;border-radius:7px;padding:0 6px;font:inherit;font-weight:500;background:#fff}
.htt-size{display:inline-flex;align-items:center;gap:4px}.htt-size output{min-width:44px;text-align:center}
.htt-tb2 .htt-allc{height:32px;font-weight:650}.htt-tb2 .htt-allc.on{border-color:#a98b60}
.htt-tb2 .htt-c-x{min-width:26px;height:26px;padding:0}
.htt-ed{min-height:84px;max-height:40vh;overflow:auto;padding:14px 16px;border:1.5px solid #d6d1c9;border-radius:8px;line-height:1.6;word-break:keep-all;outline:none;white-space:normal}
.htt-ed:focus{border-color:#a98b60;box-shadow:0 0 0 3px rgba(169,139,96,.15)}
.htt-ed-add{min-height:56px}
.htt-addwrap{margin-top:12px}
.htt-elops{gap:8px}
.htt-elops button{border:1px solid #d6d1c9;background:#fff;border-radius:7px;padding:7px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.htt-elops .htt-hidebtn{color:#b4483a;border-color:#e3c9c4;background:#fff7f5}
.htt-elops .htt-hidebtn.on{color:#166534;border-color:#bbf7d0;background:#f0fdf4}
.htt-modal.is-hidden .htt-ed:not(.htt-ed-add){opacity:.45;text-decoration:line-through}
/* 숨긴 글: 방문자에게는 안 보이고, 편집 중에는 흐리게 */
.htt-hidden{display:none!important}
html.htt-on .htt-hidden{display:revert!important;opacity:.35;outline:2px dashed #ef4444!important}
html.htt-on .htt-hidden::before{content:"숨김 ";color:#ef4444;font-size:12px;font-weight:800}
.htt-tb2 label,.htt-size{white-space:nowrap}
/* V143.58 떠 있는 글자 편집 설정창 + 그 자리에서 고치기 */
.htt-editing{outline:2px solid #2563eb!important;outline-offset:4px!important;border-radius:3px;cursor:text!important;background:rgba(37,99,235,.05)!important;caret-color:#2563eb;min-width:1em}
.htt-editing:focus{outline-color:#1d4ed8!important}
.htt-will-hide{opacity:.35;text-decoration:line-through}
.htt-add-edit{outline:2px dashed #7c3aed!important;outline-offset:4px;min-height:1.4em;cursor:text}
.htt-add-edit:empty::before{content:attr(data-placeholder);color:#a1a1aa}
.htt-float{position:fixed;z-index:2147483002;width:min(600px,calc(100vw - 16px));background:#fff;border:1px solid #e4e4e7;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.28);color:#1f1f1f;font-size:13px;font-family:inherit;user-select:none}
.htt-float.is-sheet{left:8px!important;right:8px;bottom:8px;top:auto!important;width:auto}
.htf-head{display:flex;align-items:center;gap:8px;padding:9px 10px 9px 12px;border-bottom:1px solid #f0f0f2;cursor:move;border-radius:14px 14px 0 0;background:#fafafa}
.htf-grip{color:#a1a1aa;letter-spacing:-2px}
.htf-head b{font-size:14px}.htf-head small{flex:1;color:#71717a;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.htf-x{width:30px;height:30px;border:0;background:transparent;font-size:22px;color:#71717a;cursor:pointer;line-height:1}
.htf-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 12px 0}
.htf-row3{padding-top:10px}
.htf-seg{display:inline-flex;gap:2px;padding:3px;border:1px solid #e4e4e7;border-radius:9px;background:#f8f8fa}
.htt-float button{font-family:inherit}
.htf-seg button,.htf-seg .htf-color{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:32px;height:30px;padding:0 7px;border:0;border-radius:6px;background:transparent;color:#27272a;font-size:14px;cursor:pointer}
.htf-seg button:hover,.htf-seg .htf-color:hover{background:#fff;box-shadow:0 0 0 1px #d4d4d8}
.htf-seg button.on{background:#1f1f1f;color:#fff}
.htf-seg svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.htf-color input{width:20px;height:20px;padding:0;border:0;background:none;cursor:pointer}
.htf-hl span{background:linear-gradient(transparent 50%,#fff176 50%);font-weight:700;font-size:12px}
.htf-f{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:#3f3f46;white-space:nowrap}
.htf-f select{height:30px;border:1px solid #d4d4d8;border-radius:7px;padding:0 4px;font:inherit;font-weight:500;background:#fff;max-width:130px}
.htf-size{display:inline-flex;align-items:center;gap:2px}
.htf-size button{width:26px;height:30px;border:1px solid #d4d4d8;border-radius:7px;background:#fff;cursor:pointer}
.htf-allc{padding:0 6px;height:30px;border:1px solid #d4d4d8;border-radius:7px}
.htf-allc.on{border-color:#2563eb;background:#eff4ff}
.htf-allc input{width:20px;height:20px;border:0;padding:0;background:none}
.htf-c-x{border:0;background:transparent;cursor:pointer;padding:0 2px}
.htf-addbtn,.htf-hidebtn{height:30px;padding:0 10px;border:1px solid #d4d4d8;border-radius:7px;background:#fff;font-weight:700;cursor:pointer}
.htf-addbtn.on{border-color:#7c3aed;color:#6d28d9;background:#f5f3ff}
.htf-hidebtn{color:#b4483a;border-color:#e3c9c4;background:#fff7f5}
.htf-hidebtn.on{color:#166534;border-color:#bbf7d0;background:#f0fdf4}
.htf-chk{display:inline-flex;align-items:center;gap:5px;font-weight:700;cursor:pointer}
.htf-note{color:#52525b}
.htf-note button{height:26px;padding:0 8px;border:1px solid #d4d4d8;border-radius:6px;background:#fff;cursor:pointer}
.htf-foot{display:flex;align-items:center;gap:6px;padding:10px 12px;margin-top:10px;border-top:1px solid #f0f0f2}
.htf-tip{flex:1;color:#a1a1aa;font-size:11.5px;line-height:1.35}
.htf-foot button{height:34px;padding:0 14px;border-radius:8px;font-weight:800;cursor:pointer;border:1px solid #d4d4d8;background:#fff}
.htf-foot .htf-save{background:#1f1f1f;border-color:#1f1f1f;color:#fff}
.htf-foot .htf-reset{color:#b4483a;border-color:#e3c9c4;background:#fff7f5}
@media (max-width:600px){.htf-tip{display:none}.htf-head small{display:none}}
