/* dailyhealthnote.org 전용 디자인 (11-05) — '달별 노트'. 글을 쓴 달마다 묶은 공책: 첫 화면은 공책 표지와 달마다 색 탭,
   그 아래 달마다 달력(노트를 쓴 날에 그 달 색 동그라미)과 그 달 노트. 볼펜 파랑 하나 + 달마다 탭 색 12가지. 글꼴은 Pretendard 하나. */
:root {
  --paper: #FFFFFF;
  --desk: #E8ECEA;
  --ink: #1F2A37;
  --ink-2: #4A5566;
  --ink-3: #66717F;
  --rule: #DCE3EA;
  --pen: #2F55A4;
  --tab: #C9D3DD;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --wrap: 1160px;
}
/* 달마다 탭 색 — 1월부터 12월 (글자는 늘 --ink 라 밝은 색만) */
.mo1 { --tab: #A9C4E0; } .mo2 { --tab: #DDB6C4; } .mo3 { --tab: #BCD8AB; } .mo4 { --tab: #F2C8D1; }
.mo5 { --tab: #A9D6C9; } .mo6 { --tab: #BAC5EC; } .mo7 { --tab: #F3D27C; } .mo8 { --tab: #F3B482; }
.mo9 { --tab: #D9C98E; } .mo10 { --tab: #E8A991; } .mo11 { --tab: #C5B8DF; } .mo12 { --tab: #A3C7C9; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 광고 표시 — 모든 페이지 맨 위 (지우지 말 것) */
.ad-band { background: var(--ink); color: #E4E8EE; font-size: 13px; line-height: 1.55; padding: 9px 20px; text-align: center; }

/* 헤더 — 공책 모양 표시 + 최근 달 */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.mark { position: relative; flex: none; width: 17px; height: 21px; border: 2px solid currentColor; border-radius: 2px 4px 4px 2px; }
.mark::before { content: ""; position: absolute; left: 2px; top: -2px; bottom: -2px; border-left: 2px solid currentColor; }
.mark::after { content: ""; position: absolute; right: -7px; top: 3px; width: 5px; height: 7px; background: var(--pen); border-radius: 0 2px 2px 0; }
.nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 4px; white-space: nowrap; }
.nav a i { width: 9px; height: 9px; border-radius: 2px; background: var(--tab); box-shadow: inset 0 0 0 1px rgba(31, 42, 55, .25); }
.nav a:hover { background: var(--desk); color: var(--ink); }

/* 첫 화면 — 공책 표지(묶음 구멍 난 종이)와 오른쪽 가장자리에 달마다 탭 */
.cover { background: var(--desk); padding: 56px 0 64px; }
.cover-in { display: grid; grid-template-columns: minmax(0, 1fr) 156px; align-items: start; }
.sheet { position: relative; padding: 64px 56px 60px 104px; background: var(--paper);
  border-radius: 6px 0 0 6px; box-shadow: 0 1px 0 rgba(31, 42, 55, .06), 0 22px 44px -28px rgba(31, 42, 55, .45); }
/* 묶음 구멍 */
.sheet::before { content: ""; position: absolute; left: 34px; top: 44px; bottom: 44px; width: 16px;
  background: radial-gradient(circle at 8px 8px, var(--desk) 0 6.5px, rgba(31, 42, 55, .18) 7px, transparent 7.6px) 0 0 / 16px 58px no-repeat space; }
.sheet h1 { max-width: 13em; text-wrap: balance; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.16; letter-spacing: -0.045em; }
.sheet .lede { margin-top: 16px; max-width: 30em; text-wrap: pretty; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.tally { display: flex; flex-wrap: wrap; row-gap: 14px; margin-top: 44px; }
.tally div { padding: 0 26px; border-left: 1px solid var(--rule); }
.tally div:first-child { padding-left: 0; border-left: 0; }
.tally dt { font-size: 13px; color: var(--ink-3); }
.tally div { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.tally dd { margin-top: 2px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tabs ol { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 6px; }
.tab { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 12px 16px 12px 16px; background: var(--tab); border-radius: 0 9px 9px 0; box-shadow: inset 6px 0 6px -6px rgba(31, 42, 55, .35); transition: transform .15s ease; }
.tab b { grid-column: 1 / -1; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.tab .y { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: rgba(31, 42, 55, .7); font-variant-numeric: tabular-nums; }
.tab .n { font-size: 13px; color: rgba(31, 42, 55, .82); }
.tab:hover, .tab:focus-visible { transform: translateX(5px); }

/* 달마다 — 왼쪽에 달 이름·달력(따라 내려옴), 오른쪽에 그 달 노트 */
.month { padding: 64px 0 76px; border-top: 1px solid var(--rule); scroll-margin-top: 64px; }
.month-in { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 56px; align-items: start; }
.month-head { position: sticky; top: 92px; }
.month-head::before { content: ""; display: block; width: 58px; height: 10px; margin-bottom: 18px; background: var(--tab); border-radius: 0 0 5px 5px; }
.month-head h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.month-head .ml { font-size: 56px; line-height: 1; letter-spacing: -0.05em; }
.month-head .my { font-size: 16px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.month-head .mc { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

.cal { width: 100%; max-width: 284px; margin-top: 22px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal th { padding-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; }
.cal th.sun { color: #B0463E; }
.cal td { height: 38px; padding: 2px 0; text-align: center; font-size: 13.5px; color: #8D97A3; }
.cal td span, .cal td a { position: relative; display: inline-flex; width: 33px; height: 33px; align-items: center; justify-content: center; border-radius: 50%; }
.cal td.has a { background: var(--tab); color: var(--ink); font-weight: 700; }
.cal td.has a:hover, .cal td.now a { box-shadow: 0 0 0 2px var(--ink); }
.cal td a i { position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #FFFFFF; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 17px; }

.notes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.note { scroll-margin-top: 84px; }
.note > a { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.note:has(+ .cont) > a { border-bottom-style: dashed; } /* 같은 날 노트끼리는 점선 */
.day { font-variant-numeric: tabular-nums; }
.day b { display: block; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.day span { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.day .dm { margin: 0 0 6px; color: var(--ink-2); }
.topic { display: block; font-size: 13px; font-weight: 700; color: var(--pen); }
.note h3 { margin-top: 4px; font-size: 19px; line-height: 1.45; font-weight: 700; }
.note .ex { display: -webkit-box; margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note > a:hover h3 { text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* 달력에서 날짜를 누르면 그날 노트에 그 달 색 띠 */
.note:target > a { background: linear-gradient(90deg, var(--tab) 0 6px, transparent 6px); padding-left: 18px; margin-left: -18px; }

/* 주제·태그·목록 페이지 */
.sec-hero { padding: 44px 0 40px; background: var(--desk); }
.crumb { font-size: 13.5px; color: var(--ink-3); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span[aria-hidden] { margin: 0 9px; color: #A6AFBA; }
.sec-hero h1 { margin-top: 14px; text-wrap: balance; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -0.04em; }
.sec-hero .count { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.list-view { padding: 44px 0 96px; }
.list-in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.rows .note > a { grid-template-columns: 92px minmax(0, 1fr); }
.rows .day b { position: relative; display: inline-block; }
.rows .day .dm::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--tab); box-shadow: inset 0 0 0 1px rgba(31, 42, 55, .25); }
.topics { position: sticky; top: 92px; }
.topics h2 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 15px; }
.topics ul { list-style: none; margin: 0; padding: 0; }
.topics li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; font-weight: 600; }
.topics li a .n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.topics li a:hover { color: var(--pen); }
.topics li a[aria-current] { color: var(--pen); }
.back { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--pen); }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.pager { margin-top: 44px; display: flex; justify-content: center; gap: 6px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; }
.pager [aria-current] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* 글 페이지 — 머리에 그 달 탭 색, 큰 날짜 도장 */
.post-head { padding: 38px 0 36px; background: var(--desk); border-top: 8px solid var(--tab); }
.post-head .wrap { max-width: 1120px; }
.stamp { margin-top: 24px; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.stamp b { font-size: 64px; font-weight: 800; line-height: .9; letter-spacing: -0.05em; }
.stamp .m { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.stamp .w { display: block; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.post-head h1 { margin-top: 18px; max-width: 22em; text-wrap: balance; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.32; letter-spacing: -0.035em; }
.post-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-3); }
.post-layout { max-width: 1120px; margin: 0 auto; padding: 40px 28px 88px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.rail { position: sticky; top: 88px; display: grid; gap: 30px; }
.rail h2 { font-size: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.rail ul { list-style: none; margin: 0; padding: 0; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc li a { display: block; padding: 6px 0 6px 14px; border-left: 3px solid var(--rule); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.toc li a:hover, .toc li a.on { border-left-color: var(--pen); color: var(--ink); }
.this-month h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom-color: var(--tab); border-bottom-width: 4px; }
.this-month h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.this-month h2 .n { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.this-month .cal { margin-top: 12px; max-width: none; }
.rail .more li a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.rail .more .d { font-size: 18px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rail .more .d small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.rail .more a:hover .t { text-decoration: underline; text-underline-offset: 3px; }

.post-body { font-size: 17.5px; line-height: 1.88; color: #2A3442; max-width: 40em; }
.post-body > * + * { margin-top: 1.15em; }
.post-body > aside.site-disclosure { margin: 0 0 1.6em !important; }
.post-body > aside.site-disclosure + p, .post-body > p:first-child { font-size: 19px; line-height: 1.8; color: var(--ink); }
.post-body h1, .post-body h2 { margin-top: 2.2em; font-size: 26px; line-height: 1.42; scroll-margin-top: 90px; }
.post-body h2::before, .post-body h1::before { content: ""; display: block; width: 40px; height: 7px; margin-bottom: 14px; background: var(--tab); border-radius: 0 0 4px 4px; }
.post-body h3 { margin-top: 1.9em; font-size: 19.5px; line-height: 1.45; }
.post-body h2 + *, .post-body h3 + * { margin-top: .7em; }
.post-body a { color: var(--pen); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47, 85, 164, .35); }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; } .post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--ink-3); }
.post-body figure { margin: 2em 0; }
.post-body figure img, .post-body > img, .post-body p img { width: 100%; border-radius: 6px; }
/* 로고 — 흰 글씨 로고와 검은 글씨 로고가 둘 다 보이게 중간 회색 바탕 */
.post-body img[alt*="로고"], .post-body img[alt*="logo" i] { width: auto; max-width: min(100%, 320px); padding: 20px 28px; background: #7F8A94; border-radius: 6px; }
.post-body figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.post-body blockquote { margin: 1.6em 0; padding: .6em 1.2em; border-left: 3px solid var(--pen); background: var(--desk); color: var(--ink-2); }
.post-body .overflow-x-auto { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--rule); border-radius: 6px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.post-body th, .post-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); min-width: 5.5em; }
.post-body thead th { background: var(--desk); color: var(--ink); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body details { border-top: 1px solid var(--rule); padding: 12px 0; }
.post-body summary { cursor: pointer; font-weight: 700; }
.post-body p[class*="border-t"], .post-body .disclaimer { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.post-body small { font-size: 13.5px; color: var(--ink-3); }

.post-foot { margin-top: 48px; max-width: 40em; }
.post-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-foot .tags a { font-size: 13.5px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-2); }
.post-foot .tags a:hover { border-color: var(--ink); color: var(--ink); }
.pn { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); padding-top: 20px; }
.pn a { display: block; }
.pn small { display: block; font-size: 13px; color: var(--ink-3); }
.pn span { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.pn a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pn .next { text-align: right; }
.sources { margin-top: 40px; max-width: 40em; padding: 20px 22px; background: var(--desk); border-radius: 6px; font-size: 14px; }
.sources h2 { font-size: 16px; }
.sources ol { margin: 10px 0 0; padding-left: 1.2em; }
.related { padding: 64px 0 96px; background: var(--desk); }
.related .sec-title { font-size: 24px; }
.related .rows { margin-top: 22px; max-width: 880px; }

/* 푸터 */
.foot { background: var(--ink); color: #B8C0CB; padding: 56px 0 40px; font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.foot .brand { color: #FFFFFF; }
.foot .about-site { margin-top: 14px; max-width: 28em; }
.foot h2 { font-size: 14px; color: #FFFFFF; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot li .n { color: #8C96A3; margin-left: 2px; }
.foot a:hover { color: #FFFFFF; text-decoration: underline; }
.foot .tags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot .disclosure { margin-top: 40px; padding-top: 20px; border-top: 1px solid #36414F; color: #DDE2E9; font-size: 13px; line-height: 1.6; }
.foot .copy { margin-top: 10px; font-size: 12.5px; color: #8C96A3; }

@media (max-width: 1040px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .rail .toc { display: none; }
  .month-in { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .list-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .topics { position: static; }
  .foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* 작은 화면 — 탭은 표지 아래로 내려 가로로, 달력은 달 이름 아래 */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .top .wrap { gap: 8px; height: 58px; }
  .brand { min-width: 0; font-size: 16.5px; gap: 10px; }
  .nav { display: none; } /* 달은 첫 화면 탭·글 머리 위치 줄로 */
  .langs { margin-left: auto; }
  .cover { padding: 28px 0 36px; }
  .cover-in { grid-template-columns: minmax(0, 1fr); }
  .sheet { min-height: 0; padding: 40px 22px 34px 54px; border-radius: 6px 6px 0 0; }
  .sheet::before { left: 18px; top: 28px; bottom: 28px; }
  .sheet .lede { font-size: 17px; }
  .tally { margin-top: 30px; }
  .tally { column-gap: 22px; }
  .tally div { padding: 0 0 8px; border-left: 0; }
  .tally dd { font-size: 15.5px; }
  .tabs ol { margin: 0; display: flex; gap: 6px; overflow-x: auto; padding-left: 54px; scrollbar-width: none; }
  .tabs ol::-webkit-scrollbar { display: none; }
  .tab { min-width: 132px; white-space: nowrap; padding: 10px 14px 12px; border-radius: 0 0 9px 9px; box-shadow: inset 0 6px 6px -6px rgba(31, 42, 55, .35); }
  .tab b { font-size: 17px; }
  .tab:hover, .tab:focus-visible { transform: translateY(3px); }
  .month { padding: 44px 0 52px; }
  .month-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .month-head { position: static; }
  .month-head .ml { font-size: 46px; }
  .note > a, .rows .note > a { grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; padding: 18px 0; }
  .day b { font-size: 28px; }
  .note h3 { font-size: 17.5px; }
  .note:target > a { padding-left: 12px; margin-left: -12px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .stamp b { font-size: 52px; }
  .post-layout { padding: 26px 20px 56px; }
  .post-body { font-size: 16.5px; }
  .post-body > aside.site-disclosure + p, .post-body > p:first-child { font-size: 17.5px; }
  .post-body h1, .post-body h2 { font-size: 22px; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* 11-05 다국어 — 언어 고르기(머리말 오른쪽, 펼치는 목록) */
.langs { position: relative; flex: none; font-size: 14px; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-2); cursor: pointer; white-space: nowrap; font-weight: 600; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: var(--ink); color: var(--ink); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 140px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 0 10px 28px rgba(31, 42, 55, .16); }
.langs a { display: block; padding: 7px 10px; border-radius: 3px; color: var(--ink); }
.langs a:hover { background: var(--desk); }
.langs a[aria-current] { font-weight: 800; background: var(--desk); box-shadow: inset 3px 0 0 var(--pen); }
@media (max-width: 760px) {
  .langs summary { padding: 5px 8px; }
}
/* 일본어·중국어: keep-all 은 한자·가나 사이 줄바꿈을 막는다 → 보통 줄바꿈 + 그 언어 글꼴 */
:lang(ja), :lang(zh) { word-break: normal; line-break: strict; }
html:lang(ja) { --font: 'Noto Sans JP', 'Pretendard Variable', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif; }
html:lang(zh) { --font: 'Noto Sans SC', 'Pretendard Variable', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
/* 11-05 일본어 — 낱말(구) 단위로 줄바꿈 (지원 브라우저만, 나머지는 보통 줄바꿈) */
:lang(ja) { word-break: auto-phrase; }

/* 11-05 여러 병원 공용 — 병원이 둘 이상일 때 목록 카드마다 '광고 · 병원 이름' (글 첫머리 광고 표시와 같은 호박색) */
.mag-ad{display:block;width:fit-content;margin:.3rem 0 .2rem;padding:1px 7px;border:1px solid #e7c873;border-radius:3px;background:#fffbeb;color:#78350f;font-size:.75rem;font-weight:600;line-height:1.5;letter-spacing:0}
