/* 소설가 문서하 — 200자 원고지 원고 묶음 (디코랩 디자인 샘플)
   섹션 = 원고지 한 장, 제목·첫 문장은 칸에 한 글자씩(js), 본문은 원고지 줄 위 일반 문단 */

:root {
  --c-desk: #E9E8E4;        /* 책상: 페이지 바탕 */
  --c-sheet: #FFFEFA;       /* 원고지 종이 */
  --c-ink: #5B5F66;         /* 먹 회색: 주 버튼·로고 */
  --c-ink-deep: #2C2E33;    /* 본문 글자 */
  --c-ink-soft: #62666D;    /* 보조 글자 */
  --c-rule: #F1AE95;        /* 원고지 칸선 연한 주홍 */
  --c-rule-soft: #F7D3C4;   /* 본문 줄 */
  --c-redpen: #D2532C;      /* 교정 펜 */
  --c-paper-edge: #D8D6D0;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-pen: "Song Myung", "Nanum Myeongjo", "AppleMyungjo", serif;
  --lh: 30px;               /* 본문 줄 높이 = 원고지 줄 간격 */
  --gutter: 16px;
  --radius: 2px;
}
@media (min-width: 760px) { :root { --lh: 32px; --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-desk); color: var(--c-ink-deep);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
@media (min-width: 760px) { body { font-size: 17px; padding-bottom: 0; } }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-ink-deep); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--c-redpen); outline-offset: 3px; }
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: var(--radius); opacity: .78; font-size: .92em; line-height: 1.5; }

/* 샘플 안내 띠 (고정은 /demo/_shared/sample-banner.css) */
.sample-banner { background: var(--c-ink-deep); color: #E7E7E4; font-size: .78rem; line-height: 1.55; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; max-width: 1200px; margin-inline: auto; padding: 7px var(--gutter); }
.sample-banner__inner p { margin: 0; }
.sample-banner__tag { flex: none; padding: 0 8px; border-radius: var(--radius); background: var(--c-rule); color: var(--c-ink-deep); font-weight: 700; font-size: .72rem; }
.sample-banner a { color: #F6B8A1; font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--c-ink); border-radius: var(--radius); font-weight: 700; font-size: 1rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: var(--c-ink-deep); border-color: var(--c-ink-deep); }
.btn--line { background: transparent; color: var(--c-ink-deep); }
.btn--line:hover { background: #F1F0EC; }
.link-pen {
  display: inline-block; padding: 6px 0; font-weight: 700; color: var(--c-ink-deep); text-decoration: underline wavy var(--c-redpen) 1.5px;
  text-underline-offset: 6px; text-decoration-skip-ink: none;
}
.link-pen:hover { color: var(--c-redpen); }

/* ---------- 머리글 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-desk); border-bottom: 1px solid var(--c-paper-edge); }
.site-header__inner { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin-inline: auto; padding: 8px var(--gutter); min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__cells { display: inline-flex; }
.logo__cells span {
  display: grid; place-items: center; width: 30px; height: 30px; background: var(--c-sheet);
  outline: 1px solid var(--c-rule); outline-offset: -.5px; font-family: var(--font-pen); font-size: 19px; line-height: 1; color: var(--c-ink-deep);
}
.logo__role { font-size: .82rem; color: var(--c-ink-soft); font-weight: 600; }
.site-header__cta { display: none; min-height: 42px; font-size: .95rem; }
.toc-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--c-ink);
  border-radius: var(--radius); background: var(--c-sheet); color: var(--c-ink-deep); font-size: .88rem; font-weight: 700; cursor: pointer;
}
.toc-btn__count { font-variant-numeric: tabular-nums; color: var(--c-ink-soft); }
.toc-btn__count b { color: var(--c-redpen); }
.toc-btn[aria-expanded="true"] { background: var(--c-ink); color: #fff; }
.toc-btn[aria-expanded="true"] .toc-btn__count, .toc-btn[aria-expanded="true"] .toc-btn__count b { color: #fff; }
@media (max-width: 420px) { .logo__role { display: none; } }
@media (min-width: 760px) { .site-header__cta { display: inline-flex; } }

/* ---------- 책상과 원고 묶음 ---------- */
.desk { max-width: 1200px; margin-inline: auto; padding: 22px var(--gutter) 8px; }
@media (min-width: 1180px) {
  .desk { display: grid; grid-template-columns: minmax(0, 880px) 248px; gap: 44px; justify-content: center; align-items: start; padding-top: 40px; }
  .toc-btn { display: none; }
}

.sheet {
  --cols: 10;
  position: relative; margin: 0 0 26px; padding: 22px 14px 64px; background: var(--c-sheet);
  border: 1px solid var(--c-paper-edge); border-radius: 1px;
  box-shadow: 0 1px 0 var(--c-paper-edge), 0 14px 26px -22px rgba(44, 46, 51, .45);
}
@media (min-width: 700px) { .sheet { --cols: 16; padding: 40px 36px 74px; } }
@media (min-width: 1000px) { .sheet { --cols: 20; padding: 52px 56px 80px; margin-bottom: 36px; } }
.sheet__no {
  position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: .92rem; color: var(--c-ink-soft);
}
.sheet__print { position: absolute; left: 14px; bottom: 22px; margin: 0; font-size: .7rem; color: #D98A6E; letter-spacing: .02em; }
@media (min-width: 1000px) { .sheet__print { left: 56px; } }
.clip { position: absolute; top: -18px; left: 34px; width: 20px; height: 48px; }

/* ---------- 원고지 칸 (js 가 [data-cells] 를 칸으로 바꾼다) ---------- */
.cellhead { position: relative; margin: 0; container-type: inline-size; font-family: var(--font-pen); font-weight: 400; color: var(--c-ink-deep); }
/* js 가 없을 때의 보통 글자 */
h1.cellhead, h2.cellhead { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; }
.cellhead--lead { font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem); line-height: 1.6; margin-top: 8px; }
.cellhead.is-cells { font-size: 1rem; line-height: 1; letter-spacing: 0; margin-top: 0; }
.cells {
  --c: calc(100cqw / var(--cols));
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  row-gap: calc(var(--c) * .3); padding-top: calc(var(--c) * .3);
  font-size: calc(var(--c) * .62); line-height: 1;
}
.cell {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0;
  outline: 1px solid var(--c-rule); outline-offset: -.5px;
}
.cell i { display: block; font-style: normal; transition: opacity .32s ease-out, transform .32s ease-out; transition-delay: calc(var(--base, 0ms) + var(--k, 0) * 30ms); }
.cell.is-punct { place-items: end start; padding: 0 0 .18em .22em; }
.cell.is-pair i { font-size: .8em; letter-spacing: -.12em; }
.cell.is-num i { font-family: var(--font); font-size: .78em; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.marks { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.marks path {
  fill: none; stroke: var(--c-redpen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease-out; transition-delay: var(--md, 0ms);
}
.has-motion .cellhead.is-cells:not(.is-written) .cell i { opacity: 0; transform: translateY(-.14em); }
.has-motion .cellhead.is-cells:not(.is-written) .marks path { stroke-dashoffset: 1; }

/* 본문 — 원고지 줄 위의 일반 문단 */
.prose p {
  margin: 0 0 var(--lh); line-height: var(--lh); max-width: 38em;
  background-image: linear-gradient(transparent calc(var(--lh) - 1px), var(--c-rule-soft) 0);
  background-size: 100% var(--lh);
}
.prose strong { font-weight: 700; box-shadow: inset 0 -.4em 0 #FBE3D8; }

/* ---------- 1매: 첫 장 ---------- */
.hero { display: grid; gap: 20px; margin-top: 22px; }
.hero__text p { margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__art { margin: 0; }
.hero__art svg { display: block; width: 100%; height: auto; border: 1px solid var(--c-paper-edge); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; margin-top: 32px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- 2매: 쓴 책 ---------- */
.books { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 30px; }
.book { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; align-content: start; }
.book__cover { display: block; width: 100%; height: auto; box-shadow: 3px 4px 0 rgba(44, 46, 51, .16); }
.book__body > * { margin: 0; }
.book__kind { font-size: .82rem; font-weight: 700; color: var(--c-ink-soft); }
.book h3 { font-family: var(--font-pen); font-weight: 400; font-size: 1.4rem; line-height: 1.3; margin: 2px 0 4px; }
.book__meta { font-size: .86rem; color: var(--c-ink-soft); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.book__body p:not([class]) { font-size: .95rem; line-height: 1.75; }
.book__line { margin: 12px 0 6px; padding-left: 12px; border-left: 2px solid var(--c-rule); font-family: var(--font-pen); font-size: 1.02rem; line-height: 1.6; color: var(--c-ink); }
@media (min-width: 700px) { .book { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; } }
@media (min-width: 1000px) {
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
  .book { grid-template-columns: 1fr; gap: 16px; }
  .book__cover { max-width: 190px; }
}

/* ---------- 3매: 작가 소개 ---------- */
.about { display: grid; gap: 14px; margin-top: 26px; }
.chrono h3, .steps h3 { margin: 0 0 8px; font-family: var(--font-pen); font-weight: 400; font-size: 1.3rem; }
.chrono ol { list-style: none; margin: 0; padding: 0; }
.chrono li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--c-rule); font-size: .95rem; line-height: 1.6; }
.chrono__y { font-family: var(--font-pen); font-size: 1.05rem; color: var(--c-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; gap: 44px; margin-top: 36px; } }

/* ---------- 4매: 강연과 수업 ---------- */
.programs { margin-top: 26px; }
.prog { padding: 20px 0 22px; border-top: 1.5px solid var(--c-ink-deep); }
.prog:last-child { border-bottom: 1.5px solid var(--c-ink-deep); }
.prog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.prog h3 { margin: 0; font-family: var(--font-pen); font-weight: 400; font-size: 1.45rem; line-height: 1.3; }
.prog__desc { margin: 8px 0 12px; max-width: 40em; }
.prog__spec { margin: 0; display: grid; gap: 0 28px; }
.prog__spec div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--c-rule); font-size: .94rem; }
.prog__spec dt { font-weight: 700; color: var(--c-ink-soft); }
.prog__spec dd { margin: 0; }
@media (min-width: 760px) { .prog__spec { grid-template-columns: 1fr 1fr; } }

/* ---------- 5매: 섭외 요청서 ---------- */
.req-form { margin-top: 24px; display: grid; gap: 16px; }
.req-help { margin: 0; font-size: .92rem; color: var(--c-ink-soft); }
.chips { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #C6C7CA; border-radius: var(--radius);
  background: var(--c-sheet); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.chips label:hover span { border-color: var(--c-ink); }
.chips input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--c-redpen); outline-offset: 2px; }
.chips--book span { font-family: var(--font-pen); font-weight: 400; font-size: 1.05rem; }
@media (min-width: 1000px) { .req-form { grid-template-columns: 1fr 1fr; gap: 20px 32px; } .req-help, .chips--book { grid-column: 1 / -1; } }

.req-paper { margin-top: 26px; }
.req-paper__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font-size: .84rem; color: var(--c-ink-soft); font-weight: 700; }
.req-count { font-variant-numeric: tabular-nums; color: var(--c-redpen); }
.req-sheet { container-type: inline-size; font-family: var(--font-pen); color: var(--c-ink-deep); }
.req-fallback { margin: 0; font-size: 1.15rem; line-height: 1.8; }
.req-sheet .cells { padding-bottom: 2px; }
.req-sheet .cell i { opacity: 1; transition: opacity .12s; }
.req-sheet.is-typing .cell:not(.on) i { opacity: 0; }
.req-sheet .cell.caret { background: #FCE9E0; }

.req-result { margin-top: 22px; display: grid; gap: 16px; }
.req-facts { margin: 0; }
.req-facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--c-rule); }
.req-facts dt { font-weight: 700; color: var(--c-ink-soft); font-size: .92rem; }
.req-facts dd { margin: 0; }
.req-fee dd b { font-family: var(--font-pen); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin-right: 8px; }
.req-fee dd span { font-size: .92rem; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.req-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--c-redpen); background: #FDF1EB; font-size: .94rem; }
.req-small { margin: 0; font-size: .84rem; color: var(--c-ink-soft); }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.req-actions .btn { flex: 1 1 auto; }
@media (min-width: 1000px) {
  .req-result { grid-template-columns: 1.3fr 1fr; gap: 12px 40px; align-items: start; }
  .req-facts { grid-row: span 3; }
  .req-actions { flex-direction: column; }
}

/* ---------- 6매: 지난 자리 ---------- */
.records { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: .95rem; }
.records th { text-align: left; font-size: .82rem; color: var(--c-ink-soft); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--c-ink-deep); }
.records td { padding: 13px 10px 13px 0; border-bottom: 1px dashed var(--c-rule); vertical-align: top; }
.records td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.records__memo { font-family: var(--font-pen); color: var(--c-ink); font-size: 1.02rem; }
@media (max-width: 759px) {
  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .records, .records tbody { display: block; }
  .records tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: 1px dashed var(--c-rule); }
  .records td { display: block; padding: 0; border: 0; }
  .records td:nth-child(2) { font-weight: 700; }
  .records td:nth-child(3), .records td:nth-child(4) { grid-column: 2; font-size: .88rem; color: var(--c-ink-soft); }
  .records__memo { grid-column: 1 / -1; margin-top: 6px; }
}

/* ---------- 7매: 묻고 답하기 ---------- */
.faq { margin-top: 22px; border-top: 1.5px solid var(--c-ink-deep); }
.faq details { border-bottom: 1px dashed var(--c-rule); }
.faq summary { position: relative; list-style: none; padding: 15px 40px 15px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--c-ink), var(--c-ink)) center / 16px 2px no-repeat, linear-gradient(var(--c-ink), var(--c-ink)) center / 2px 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a p { margin: 0 0 16px; max-width: 40em; }

/* ---------- 8매: 연락 ---------- */
.contact { display: grid; gap: 28px; margin-top: 24px; }
.contact__list { margin: 0; }
.contact__list div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--c-rule); }
.contact__list dt { font-family: var(--font-pen); font-size: 1.12rem; }
.contact__list dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.contact__list dd a { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.contact__list small { font-size: .86rem; color: var(--c-ink-soft); }
.steps ol { list-style: none; counter-reset: step; margin: 0 0 18px; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 7px 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-top: -1px;
  outline: 1px solid var(--c-rule); outline-offset: -.5px; font-family: var(--font-pen); font-size: 1.05rem;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* ---------- 원고 목차 (메뉴) ---------- */
.toc {
  position: fixed; top: var(--menu-top, 100px); left: 0; right: 0; z-index: 45;
  max-height: calc(100vh - var(--menu-top, 100px)); overflow: auto;
  padding: 18px var(--gutter) 22px; background: var(--c-sheet); border-bottom: 1px solid var(--c-paper-edge);
  box-shadow: 0 18px 30px -24px rgba(44, 46, 51, .6);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.toc.is-open { opacity: 1; visibility: visible; transform: none; }
.toc__title { margin: 0; font-family: var(--font-pen); font-size: 1.25rem; }
.toc__count { margin: 2px 0 10px; font-size: .88rem; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.toc__count b { color: var(--c-redpen); }
.toc__list { list-style: none; margin: 0 0 16px; padding: 0; }
.toc__list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px dotted var(--c-rule); }
.toc__no {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px;
  outline: 1px solid var(--c-rule); outline-offset: -.5px; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--c-ink-soft);
}
.toc__no::after {
  content: ""; position: absolute; inset: -6px -7px; border: 2px solid var(--c-redpen); border-radius: 52% 46% 55% 44% / 48% 56% 44% 52%;
  transform: rotate(-12deg) scale(.6); opacity: 0; transition: opacity .25s, transform .3s;
}
.toc__list a.is-active .toc__no { color: var(--c-ink-deep); font-weight: 800; }
.toc__list a.is-active .toc__no::after { opacity: 1; transform: rotate(-12deg) scale(1); }
.toc__list a.is-active .toc__name { font-weight: 800; }
.toc__list a:hover .toc__name { text-decoration: underline wavy var(--c-redpen) 1.5px; text-underline-offset: 5px; }
.toc__cta { width: 100%; }
@media (min-width: 760px) { .toc { left: auto; width: 320px; border-left: 1px solid var(--c-paper-edge); } }
@media (min-width: 1180px) {
  .toc {
    position: sticky; top: 92px; left: auto; right: auto; width: auto; max-height: none; overflow: visible; z-index: 1;
    opacity: 1; visibility: visible; transform: none; border: 1px solid var(--c-paper-edge); box-shadow: none; padding: 22px 20px;
  }
}

/* ---------- 푸터 ---------- */
.site-footer { padding: 18px var(--gutter) 40px; text-align: center; color: var(--c-ink-soft); font-size: .86rem; }
.site-footer__end { margin: 0 0 18px; font-family: var(--font-pen); font-size: 1.4rem; color: var(--c-ink-deep); }
.site-footer__inner { max-width: 760px; margin-inline: auto; }
.site-footer__inner p { margin: 0 0 6px; }
.site-footer__name { font-family: var(--font-pen); font-size: 1.1rem; color: var(--c-ink-deep); }
.site-footer .strong { font-weight: 800; color: var(--c-ink-deep); }
.site-footer__credit a { font-weight: 700; }

/* ---------- 하단 연락 바 (모바일) ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--c-desk); border-top: 1px solid var(--c-paper-edge);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1.5px solid var(--c-ink);
  border-radius: var(--radius); background: var(--c-sheet); font-weight: 800; font-size: .93rem; text-decoration: none;
}
.quickbar svg { width: 18px; height: 18px; }
.quickbar__cta { background: var(--c-ink) !important; color: #fff; }
body.toc-open .quickbar { visibility: hidden; }
@media (min-width: 760px) { .quickbar { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border-radius: var(--radius);
  background: var(--c-ink-deep); color: #fff; font-size: .92rem;
}
@media (min-width: 760px) { .toast { bottom: 32px; } }

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .btn, .chips span, .toc, .toc__no::after { transition-duration: .2s !important; }
}
