/* 아플때 — 약봉투: 흰 종이, 청록 테두리와 머리 띠, 굵은 숫자 세 칸. Wanted Sans. */
:root {
  --paper: #ffffff;
  --ink: #1d2b2e;
  --ink-2: #44555a;
  --ink-3: #5c6d72;
  --teal: #0b7a85;
  --teal-deep: #075f68;
  --teal-soft: #e7f3f4;
  --teal-line: #a9d3d8;
  --rule: #e3e9ea;
  --font: "Wanted Sans Variable", "Wanted Sans", "Apple SD Gothic Neo", sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5h5.5V8M9.5 2.5 2.5 9.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--teal-line) transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--teal-soft); color: var(--ink); }
a { color: var(--teal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.hd { border-bottom: 6px solid var(--teal); }
.hd-in { max-width: 760px; margin: 0 auto; padding: 16px 20px 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.title { font-size: 25px; font-weight: 800; color: var(--teal); text-decoration: none; letter-spacing: -0.02em; }
.line { font-size: 13.5px; color: var(--ink-3); }
.menu { max-width: 760px; margin: 0 auto; padding: 6px 20px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.mn { flex: none; font-size: 14.5px; font-weight: 600; color: var(--teal-deep); text-decoration: none; padding: 5px 12px; border: 1.5px solid var(--teal-line); border-radius: 4px; transition: background .18s ease-out, color .18s ease-out; }
.mn:hover { background: var(--teal-soft); }
.mn[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.main { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; }
.hello h1, .post h1 { font-size: 27px; font-weight: 800; line-height: 1.4; letter-spacing: -0.025em; margin: 8px 0 10px; text-wrap: balance; }
.hello p { margin: 0 0 26px; color: var(--ink-2); font-size: 16.5px; }

/* 약봉투 */
.bag { border: 2px solid var(--teal); border-radius: 4px; margin: 6px 0 20px; overflow: hidden; }
.bag-top { display: flex; justify-content: space-between; gap: 12px; margin: 0; background: var(--teal); color: #fff; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.bag-top span:last-child { font-weight: 500; color: #d6eef0; font-variant-numeric: tabular-nums; }
.doses { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.dose { padding: 12px 10px 14px; text-align: center; border-right: 1px solid var(--teal-line); }
.dose:last-child { border-right: 0; }
.dose dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dose dd { margin: 4px 0 0; font-size: 19px; font-weight: 800; color: var(--teal-deep); line-height: 1.3; font-variant-numeric: tabular-nums; }
.lead { margin: 0 0 18px; font-size: 17.5px; font-weight: 600; line-height: 1.75; }

/* 홈 목록 */
.grp { margin: 0 0 24px; }
.grp h2 { font-size: 15px; font-weight: 800; color: var(--teal-deep); margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--teal); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--rule); }
.list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 2px; color: var(--ink); text-decoration: none; transition: background .18s ease-out; }
.list a.row:hover { background: var(--teal-soft); }
.nm { font-size: 16.5px; font-weight: 700; }
.nm small { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.key { flex: none; font-size: 16.5px; font-weight: 800; color: var(--teal-deep); text-align: right; font-variant-numeric: tabular-nums; }
.end { display: flex; align-items: center; gap: 6px; }
.arr { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.note { font-size: 13.5px; color: var(--ink-3); margin: 0 2px 34px; }

/* 글 */
.crumb { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 6px; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--teal-deep); }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 10px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.toc ol { margin: 8px 0 2px; padding-left: 22px; font-size: 15.5px; line-height: 1.9; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal-deep); }
.body { max-width: 68ch; }
.body h2 { font-size: 21px; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 16px; padding-left: 12px; box-shadow: inset 4px 0 0 var(--teal); }
.body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.body p { margin: 0 0 18px; }
.body ul, .body ol { margin: 0 0 18px; padding-left: 22px; }
.body li { margin: 6px 0; }
.body b { font-weight: 800; }
.tip { background: var(--teal-soft); border-radius: 4px; padding: 13px 16px; margin: 0 0 20px; }
.tip p { margin: 0; font-size: 16px; }
.table-wrap { margin: 6px 0 22px; border: 1.5px solid var(--teal-line); border-radius: 4px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
th { background: var(--teal-soft); text-align: left; font-weight: 700; padding: 10px 13px; }
td { padding: 10px 13px; border-top: 1px solid var(--rule); vertical-align: top; }
.more h2, .refs h2 { font-size: 18px; font-weight: 800; margin: 40px 0 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: block; padding: 14px 2px; color: var(--ink); text-decoration: none; }
.rows a:hover .t { color: var(--teal-deep); }
.rows .t { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.rows .m { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.refs ul { margin: 0; padding-left: 20px; font-size: 15px; }
.refs li { margin: 6px 0; }
.out::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: 3px; background: currentColor; -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; }
.ft { border-top: 1px solid var(--rule); max-width: 760px; margin: 0 auto; padding: 22px 20px 40px; font-size: 13.5px; color: var(--ink-3); }
.ft p { margin: 0 0 6px; }
.ft a { color: var(--ink-2); }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .post h1, .hello h1 { font-size: 23px; }
  .dose dd { font-size: 16.5px; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border: 1.5px solid var(--teal-line); border-radius: 4px; margin: 0 0 10px; padding: 6px 13px; }
  td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  td::before { content: attr(data-k); color: var(--ink-3); font-size: 13.5px; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  td:first-child { font-weight: 800; text-align: left; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
  td:first-child::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
