/* 바날 개편 공개 화면 보조(운영에서 관리자 글을 시안 모양으로 그릴 때) */
/* Notice popups use the legacy markup, but this theme does not load site-extra.css. */
.notice-popups,.notice-popups *{box-sizing:border-box}
.notice-popups{position:fixed;z-index:95;left:50%;top:50%;width:min(420px,calc(100vw - 32px - var(--stack-offset,0px)));transform:translate(calc(-50% - var(--stack-offset,0px)/2),-50%);pointer-events:none}
.notice-deck{position:relative;min-height:120px}
.notice-top-close{position:absolute;z-index:2;top:20px;right:20px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #e2ebf0;border-radius:50%;background:#fff;color:#648191;box-shadow:none;font:25px/1 Arial,sans-serif;cursor:pointer}
.notice-top-close:hover{background:#f0f8fb;color:#1e617f}
.notice-card :is(button,a):focus-visible{outline:3px solid #5eb6d4;outline-offset:3px}
.notice-card:not(.is-front) .notice-top-close{visibility:hidden}
.notice-card{position:absolute;top:0;left:0;width:100%;background:#fff;color:#173c51;border-radius:20px;border:1px solid #d9e7ee;box-shadow:0 24px 64px #12344847,0 8px 24px #12344829,0 0 32px #12344814;overflow:hidden;pointer-events:auto;transform:translate(calc(var(--depth,0)*14px),calc(var(--depth,0)*14px));z-index:calc(20 - var(--depth,0));transition:transform .25s;max-height:calc(100vh - 96px - var(--stack-offset,0px));max-height:calc(100dvh - 96px - var(--stack-offset,0px));display:flex;flex-direction:column;text-align:start}
.notice-card:not(.is-front){cursor:pointer;filter:brightness(.98)}
.notice-edge{position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;overflow:hidden}
.notice-edge svg{display:block;width:100%;height:100%}
.notice-edge-run{stroke:#2487b0;stroke-width:1;stroke-dasharray:10 90;opacity:0}
.notice-card.is-front .notice-edge-run{animation:notice-edge-lap 3.8s linear infinite,notice-edge-fade 3.8s ease-in-out infinite}
@keyframes notice-edge-lap{0%{stroke-dashoffset:0}44.736842%,100%{stroke-dashoffset:-100}}
@keyframes notice-edge-fade{0%{opacity:0}5.263158%,28.947368%{opacity:.75}44.736842%,100%{opacity:0}}
.notice-heading{display:flex;flex-shrink:0;align-items:center;gap:10px;padding:28px 28px 20px;padding-inline-end:70px}
.notice-mark{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#eff8fc;border:1px solid #d7edf6;border-radius:11px;color:#288caf}
.notice-mark svg{width:21px;height:21px}
.notice-label{color:#6a8695;font-size:12px;font-weight:600;letter-spacing:.02em}
.notice-body{padding:0 28px;min-height:0;overflow:auto;overscroll-behavior:contain}
.notice-media{display:block;margin:0 0 22px;border-radius:12px;overflow:hidden;background:#f5f9fb}
.notice-card .notice-media img{display:block;width:100%;height:auto;max-height:36vh;max-height:36dvh;object-fit:contain;background:#f5f9fb}
.notice-body h2{font-size:22px;font-weight:700;line-height:1.45;margin:0 0 12px;letter-spacing:-.035em;color:#173c51;overflow-wrap:anywhere}
.notice-body p{margin:0;color:#668190;font-size:14px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}
.notice-actions{display:flex;flex-direction:column;flex-shrink:0;padding:24px 28px 19px;gap:12px}
.notice-buttons{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.notice-buttons:has(.notice-link){grid-template-columns:repeat(2,minmax(0,1fr))}
.notice-buttons :is(button,a){display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;padding:11px 12px;border:1px solid #2487b0;border-radius:9px;background:#2487b0;color:#fff;font:inherit;font-size:13px;font-weight:700;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.notice-buttons :is(button,a):hover{background:#1d7296;border-color:#1d7296}
.notice-buttons:has(.notice-link) .notice-x{background:#fff;border-color:#d5e3eb;color:#547180}
.notice-buttons:has(.notice-link) .notice-x:hover{background:#f5f9fb;border-color:#a8c8d8}
.notice-today{display:flex;align-items:center;align-self:flex-start;gap:8px;min-height:30px;max-width:100%;padding:0;border:0;background:transparent;color:#7c919f;font:inherit;font-size:11px;line-height:1.5;text-align:start;cursor:pointer}
.notice-today:before{content:"";display:block;width:13px;height:13px;box-sizing:border-box;border:1px solid #bdced8;border-radius:3px;flex-shrink:0}
.notice-today:hover{color:#287b9e}
.notice-popups-bar{position:relative;display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:calc(var(--bar-offset,0px) + 10px);pointer-events:auto}
.notice-popups-bar button{min-height:36px;min-width:36px;border:1px solid #d5e3eb;border-radius:18px;background:#fff;font:inherit;font-size:13px;color:#4f6f81;cursor:pointer}
.notice-count{font-size:13px;background:#fffd;border-radius:10px;padding:2px 8px}
.notice-popups:not([data-count]) .notice-popups-bar,.notice-popups[data-count="1"] .notice-popups-bar{display:none}
@media (max-width:768px){
  .notice-popups{left:50%;right:auto;top:50%;bottom:auto;width:calc(100vw - 32px);max-width:420px;transform:translate(-50%,-50%)}
  .notice-card{position:relative;display:none;transform:none;max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);border-radius:18px}
  .notice-card.is-front{display:flex}
  .notice-heading{padding:24px 24px 18px;padding-inline-end:68px}
  .notice-top-close{top:17px;right:17px}
  .notice-body{padding:0 24px}
  .notice-body h2{font-size:21px}
  .notice-body p{font-size:13px;line-height:1.8}
  .notice-media{margin-bottom:20px}
  .notice-actions{padding:22px 24px 16px;gap:10px}
  .notice-deck{min-height:0}
}
@media (prefers-reduced-motion:reduce){.notice-card{transition:none}.notice-card .notice-edge-run{animation:none}.notice-edge{display:none}}
@media print{.notice-popups{display:none!important}}

.b-post .b-fig img,.b-post figure img{max-width:100%;height:auto}
.map .map-label-bg{stroke:none;pointer-events:none}
.map[data-labels-ready] :is(.lb,.sub,.rd){stroke:none}
/* The Japanese raster logo contains translucent black lettering. Reuse its alpha
   only over クリニック; ordinary text colour follows automatic dark mode. Lighten
   leaves the light-mode logo unchanged and preserves the blue name/wave. */
@supports(mask-composite:add){
  .hd .logo:has(>img[src*="clinic-logo-ja.webp"]){position:relative}
  .hd .logo:has(>img[src*="clinic-logo-ja.webp"])::after{
    content:"";position:absolute;inset:0;pointer-events:none;color:#000;background:currentColor;mix-blend-mode:lighten;
    --ja-logo-mask:url('/static/s/clinic-logo-ja.webp');
    mask-image:var(--ja-logo-mask),var(--ja-logo-mask),var(--ja-logo-mask),var(--ja-logo-mask);
    mask-position:center;mask-size:100% 100%;mask-repeat:no-repeat;mask-mode:alpha;mask-composite:add;
    clip-path:inset(35% 13% 0 33%);
  }
}
@media(max-width:860px){
  html[lang="en"] #filter .chips.docs{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[lang="en"] #filter .chips.docs button{height:auto;min-height:44px;padding:8px 6px;white-space:normal;line-height:1.3}
}
.b-post .cms-table-scroll{overflow-x:auto}
.b-post .clinic-block{margin:28px 0;padding:20px 22px;border-radius:14px;background:#f4f9fc}
.sian-404{padding:12vh 0 16vh;text-align:center}
.sian-404 .btn{margin-top:28px}

/* Medical team: a quiet six-essay grid, scoped away from individual profiles. */
.care-philosophy{background:#f6f9fb;border-block:1px solid #e5edf2}
.care-philosophy .sh h2{max-width:none;font-size:clamp(26px,3vw,38px);letter-spacing:-.035em}
.care-philosophy .sh p{color:#607382;max-width:44em;font-size:16px}
.care-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.care-item{min-width:0}
.care-essay{height:100%;min-height:280px;display:flex;flex-direction:column;align-items:flex-start;padding:28px;border:1px solid #dce6ed;border-radius:16px;background:#fff;text-decoration:none;color:var(--ink);transition:border-color .18s,box-shadow .18s}
.care-essay:hover{border-color:#9bbfce;box-shadow:0 5px 18px rgba(22,62,82,.055)}
.care-essay:focus-visible{outline:3px solid #1585b3;outline-offset:4px}
.care-category{font-size:12px;font-weight:600;line-height:1.5;color:#50778c;margin-bottom:14px}
.care-essay h3{font-size:20px;line-height:1.5;letter-spacing:-.025em;word-break:keep-all;text-wrap:pretty;margin:0 0 12px}
.care-excerpt{font-size:15px;line-height:1.75;color:#607382;margin:0 0 24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.care-footer{display:flex;align-items:center;gap:10px;width:100%;margin-top:auto;padding-top:18px;border-top:1px solid #edf1f4}
.care-avatar,.care-mark{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#eef6fa}
.care-avatar{object-fit:cover;object-position:50% 24%}
.care-mark{display:grid;place-items:center;color:#238ab1;font-size:29px;font-weight:500;line-height:1}
.care-author{color:#496475;font-size:13px;font-weight:600;line-height:1.5}
.care-arrow{margin-inline-start:auto;color:#6b8a9a;font-size:22px;line-height:1}
[dir="rtl"] .care-arrow{transform:scaleX(-1)}
@media(max-width:960px){.care-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.care-grid{grid-template-columns:1fr;gap:16px}.care-essay{min-height:0;padding:24px}.care-philosophy .sh{margin-bottom:28px}.care-essay h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.care-essay{transition:none}}

/* Only the small source icon is a link; academic rows remain plain text. */
.aca .aca-source{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-inline-start:4px;vertical-align:middle;border-radius:6px;color:#387e9e;text-decoration:none;line-height:1}
.aca .aca-source svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aca .aca-source:hover{color:#12688f;background:#eaf4f9}
.aca .aca-source:focus-visible{outline:2px solid #1585b3;outline-offset:2px;background:#eaf4f9}

/* ---- 회원(2026-11-24): 머리줄 단추, 로그인·회원가입·내 정보, 전후 사진 ---- */
.hd-mem{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);transition:border-color .2s,background .2s,color .2s}
.hd-mem svg{width:20px;height:20px;display:block}
.hd-mem:hover{border-color:var(--sky)}
.hd-mem.in{background:var(--sky);border-color:var(--sky);color:#fff}
.hd-mem:focus-visible{outline:3px solid rgba(22,132,197,.35);outline-offset:2px}
/* 단추가 하나 늘면서 언어 단추(KO)가 두 줄로 눌리지 않게 */
.hd-side .lang{flex:none;white-space:nowrap}
.mem-ph{text-align:center}
.mem-ph h1,.mem-ph .lead{margin-inline:auto}
.mem-ph .lead{word-break:keep-all;text-wrap:balance}
.mem-wrap{max-width:520px}
.mem-form{display:grid;gap:18px}
.mem-f{display:grid;gap:8px;font-size:15px;font-weight:700;color:var(--ink)}
.mem-f small{font-weight:500;color:var(--muted);font-size:13px;margin-inline-start:4px}
.mem-f input{width:100%;height:52px;padding:0 16px;border:1px solid #c9dbe7;border-radius:12px;font:inherit;font-weight:500;font-size:16px;background:#fff;color:var(--ink)}
.mem-f input:focus-visible{outline:3px solid rgba(22,132,197,.28);border-color:var(--sky)}
.mem-form .btn{display:inline-flex;justify-content:center;width:100%;cursor:pointer}
.mem-form .btn:disabled{opacity:.6;cursor:default}
.mem-hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;opacity:0}
.mem-agree{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--tint)}
.mem-c{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.55;cursor:pointer}
.mem-c input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--sky)}
.mem-c a{color:var(--sky-d);text-decoration:underline;white-space:nowrap}
.mem-box{margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13.5px;line-height:1.7;color:var(--muted)}
.mem-msg{margin:0;padding:12px 14px;border-radius:10px;background:#fdecec;color:#a02424;font-size:14.5px;line-height:1.5}
.mem-msg.good{background:#e8f6ee;color:#1d6b40}
.mem-alt{margin-top:26px;text-align:center;font-size:15px;color:var(--muted)}
.mem-alt a{color:var(--sky-d);font-weight:700;text-decoration:underline}
.mem-note{margin-top:14px;text-align:center;font-size:13.5px;line-height:1.7;color:var(--muted);word-break:keep-all}
.mem-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:40px}
.mem-card dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;margin:0 0 22px;font-size:15.5px}
.mem-card dt{color:var(--muted)}
.mem-card dd{margin:0;font-weight:700;word-break:break-all}
.mem-row{display:flex;gap:10px;flex-wrap:wrap}
.mem-row .btn{display:inline-flex;cursor:pointer}
.mem-form h2{font-size:20px;margin:0}
.mem-form+.mem-form{margin-top:44px;padding-top:36px;border-top:1px solid var(--line)}
.mem-out p:not(.mem-msg){margin:0;color:var(--muted);font-size:14.5px;line-height:1.7}
.mem-gate{max-width:580px;margin-inline:auto;text-align:center;padding:48px 28px;border:1px solid var(--line);border-radius:20px;background:var(--tint)}
.mem-gate i{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;border-radius:50%;background:#fff;border:1px solid var(--line);color:var(--sky-d)}
.mem-gate i svg{width:26px;height:26px}
.mem-gate h2{font-size:clamp(20px,2.4vw,26px);margin:0 0 12px}
.mem-gate p{margin:0 0 26px;color:var(--muted);line-height:1.75;word-break:keep-all;text-wrap:pretty}
.mem-gate .mem-row{justify-content:center}
.ba-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.ba-filter button{height:40px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.ba-filter button.on{background:var(--sky);border-color:var(--sky);color:#fff}
.ba-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.ba-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.ba-card[hidden]{display:none}
.ba-pair{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--line)}
.ba-pair figure{margin:0;position:relative;background:#eef4f8}
.ba-pair img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;cursor:zoom-in;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.ba-pair figcaption{position:absolute;inset-inline-start:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:rgba(22,58,80,.78);color:#fff;font-size:12.5px;font-weight:700}
.ba-meta{padding:16px 18px 18px}
.ba-meta p{margin:8px 0 0;color:var(--muted);font-size:14.5px;line-height:1.7}
.ba-empty{margin:0;padding:56px 20px;text-align:center;color:var(--muted);border:1px dashed #c9dbe7;border-radius:16px;word-break:keep-all}
.ba-notice{margin:32px 0 0;font-size:13.5px;line-height:1.75;color:var(--muted);word-break:keep-all}
.ba-zoom{border:0;padding:0;background:transparent;max-width:min(92vw,900px);max-height:92vh;overflow:visible}
.ba-zoom::backdrop{background:rgba(10,24,34,.84)}
.ba-zoom img{display:block;max-width:100%;max-height:88vh;border-radius:10px;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.ba-zoom button{position:absolute;top:8px;inset-inline-end:8px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:22px;line-height:1;cursor:pointer}
.card-lock{display:block;width:100%;aspect-ratio:3/2;background:var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2.2' fill='none' stroke='%237fa3b8' stroke-width='1.5'/%3E%3Cpath d='M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5' fill='none' stroke='%237fa3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/34px no-repeat}
@media(max-width:760px){.ba-grid{grid-template-columns:1fr;gap:20px}.mem-gate{padding:36px 20px}.mem-row .btn{flex:1 1 auto;justify-content:center}}
/* PC 머리줄 폭: 로그인 단추는 자리가 넉넉한 폭에서만 머리줄에 둔다(좁은 PC·긴 언어는 전체 메뉴 ≡ 안의 「회원」 묶음으로).
   그리고 개편 때부터 있던 겹침(좁은 PC 1081~1199px 의 외국어 메뉴, 베트남어 전 구간)을 메뉴 간격·글자 크기로 푼다. */
@media(min-width:1081px) and (max-width:1279px){.hd-mem{display:none}}
@media(min-width:1081px) and (max-width:1799px){html:is([lang=vi],[lang=ms]) .hd-mem{display:none}html[lang=vi] .gnb>ul>li>a{padding-inline:9px;font-size:15px}html[lang=vi] .gnb>ul>li>a::after{left:9px;right:9px}}
@media(min-width:1081px) and (max-width:1199px){
.gnb>ul>li>a{padding-inline:10px}.gnb>ul>li>a::after{left:10px;right:10px}
html:is([lang=ms],[lang=id],[lang=ar]) .gnb>ul>li>a{padding-inline:5px}html:is([lang=ms],[lang=id],[lang=ar]) .gnb>ul>li>a::after{left:5px;right:5px}
html[lang=vi] .gnb>ul>li>a{padding-inline:4px;font-size:13px}html[lang=vi] .gnb>ul>li>a::after{left:4px;right:4px}html[lang=vi] .hd-side .btn.pri{display:none}
}
