/* 반숙 — 동물병원 대기 번호표: 아주 연한 미색 대기실, 흰 번호표 종이, 자두색 큰 숫자 하나, 점선 아래 안내 줄. Paperlogy. */
:root {
  --room: #f6f2ea;
  --slip: #ffffff;
  --ink: #2e2620;
  --ink-2: #54493f;
  --ink-3: #6d6157;
  --plum: #6b2a5c;
  --plum-soft: #f5e9f1;
  --dash: #d3c6b6;
  --rule: #e9e1d6;
  --font: "Paperlogy", "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(--dash) transparent; }
body { margin: 0; background: var(--room); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--plum-soft); color: var(--ink); }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.desk { width: calc(100% - 40px); max-width: 720px; margin: 0 auto; padding: 20px 0 0; }
.name { font-size: 28px; font-weight: 800; color: var(--plum); text-decoration: none; letter-spacing: -0.02em; }
.hello { display: inline-block; margin-left: 10px; font-size: 13.5px; color: var(--ink-3); }
.tabs { display: flex; gap: 8px; padding: 12px 0 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--dash); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 5px 13px; border-radius: 999px; background: var(--slip); transition: background .18s ease-out, color .18s ease-out; }
.tab:hover { background: var(--plum-soft); color: var(--ink); }
.tab[aria-current="page"] { background: var(--plum); color: #fff; font-weight: 700; }

.wait { width: calc(100% - 40px); max-width: 720px; margin: 0 auto; padding: 26px 0 56px; }
.intro h1, .post h1 { font-size: 27px; font-weight: 700; line-height: 1.42; letter-spacing: -0.02em; margin: 6px 0 12px; text-wrap: balance; }
.intro p { margin: 0 0 24px; color: var(--ink-2); font-size: 16.5px; }

/* 번호표 */
.ticket { max-width: 340px; margin: 6px auto 26px; background: var(--slip); padding: 16px 20px 14px; text-align: center; border-radius: 6px; box-shadow: 0 3px 12px rgba(60, 40, 20, .1); }
.t-top { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.num { margin: 6px 0 4px; font-size: 60px; font-weight: 900; line-height: 1.05; color: var(--plum); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-bottom: 4px; }
.ticket ul { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.ticket li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--dash); font-size: 15px; }
.ticket li span { color: var(--ink-3); }
.ticket li b { font-weight: 700; text-align: right; }
.t-date { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 홈 번호표 묶음 */
.numbers h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.numbers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.numbers li a, .numbers li div { display: block; height: 100%; background: var(--slip); border-radius: 6px; padding: 14px 12px 12px; text-align: center; color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(60, 40, 20, .08); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.numbers li a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60, 40, 20, .12); }
.numbers small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.numbers b { display: block; font-size: 30px; font-weight: 900; color: var(--plum); line-height: 1.2; margin: 4px 0; }
.numbers span { display: block; font-size: 14px; font-weight: 700; border-top: 1px dashed var(--dash); padding-top: 6px; }
.numbers .t-date { text-align: right; margin: 8px 0 28px; }

/* 글 */
.crumb { font-size: 13.5px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--plum); }
.paper { background: var(--slip); border-radius: 6px; padding: 18px 22px 10px; }
.lead { margin: 0 0 14px; font-size: 17.5px; font-weight: 700; line-height: 1.75; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 8px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--plum); }
.toc[open] summary::before { background: var(--plum); }
.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(--plum); text-decoration: underline; }
.body > * { max-width: 68ch; }
.body > .table-wrap { max-width: none; }
.body h2 { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 40px 0 12px; scroll-margin-top: 16px; }
.body h3 { font-size: 18px; margin: 26px 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: 700; }
.tip { background: var(--plum-soft); border-radius: 6px; padding: 13px 16px; margin: 0 0 20px; }
.tip p { margin: 0; font-size: 16px; }
.table-wrap { margin: 6px 0 22px; overflow-x: auto; }
.body table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.body th { text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--plum); }
.body td { padding: 10px 12px; border-bottom: 1px dashed var(--dash); vertical-align: top; }
.refs, .more { margin-top: 26px; }
.refs h2, .more h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.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; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px dashed var(--dash); }
.rows a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; }
.rows .t { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.5; }
.rows a:hover .t { color: var(--plum); }
.rows .m { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.wait > .rows, .wait > .more { background: var(--slip); border-radius: 6px; padding: 6px 18px; }
.bye { width: calc(100% - 40px); max-width: 720px; margin: 0 auto; padding: 22px 0 40px; border-top: 1px solid var(--dash); font-size: 13.5px; color: var(--ink-3); }
.bye p { margin: 0 0 6px; }
.bye a { color: var(--ink-2); }
.nw { white-space: nowrap; }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .intro h1, .post h1 { font-size: 23px; }
  .hello { display: block; margin: 2px 0 0; }
  .paper { padding: 16px 16px 8px; }
  .num { font-size: 52px; }
  .numbers ul { grid-template-columns: repeat(2, 1fr); }
  .body table:not(.narrow), .body table:not(.narrow) thead, .body table:not(.narrow) tbody, .body table:not(.narrow) tr, .body table:not(.narrow) td { display: block; }
  .body table:not(.narrow) thead { display: none; }
  .body table:not(.narrow) tr { border-top: 2px solid var(--plum); margin: 0 0 12px; padding: 4px 0; }
  .body table:not(.narrow) td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .body table:not(.narrow) td::before { content: attr(data-k); color: var(--ink-3); font-size: 13.5px; font-weight: 700; text-align: left; flex: none; max-width: 45%; }
  .body table:not(.narrow) td:first-child { font-weight: 700; text-align: left; }
  .body table:not(.narrow) td:first-child::before { display: none; }
  .body .narrow { font-size: 14.5px; }
  .body .narrow th, .body .narrow td { padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
