/* ==========================================================
   페이지투웹 kit · 디자인 "플립북" (flip) — 책상 위에 펼친 책을 모서리를 잡아 넘긴다.
   page.css 다음에 읽는다. 팝업·차트는 page.css 것을 그대로 쓴다.
   넘김 계산과 그림자는 StPageFlip(page-flip 2.0.7, MIT). 아래 .stf__ 규칙은 그 패키지의 stPageFlip.css를 옮긴 것.
   다시 꾸밈 2026-11-16: 색 하나로 찍은 책. 흰 종이 + 검정 글 + theme.accent 하나, 장 첫 쪽은 그 색 통짜 면. 책상은 그 색을 짙게 한 통짜 면.
   글꼴: Hahmlet(제목 · 숫자 · 쪽 번호, 가변, SIL OFL 1.1, engine/kit/fonts/flip-Hahmlet-*) + Pretendard(본문).
   종이 결 · 접힘선 음영 · 책 그림자 · 쪽 두께는 실물 재현이라 남긴다. 가는 줄 · 점선 리더 · 제목 위 작은 라벨은 뺐다.
   ========================================================== */

/* 사장님 손글씨 쪽지만: 나눔손글씨 펜(SIL OFL 1.1, Google Fonts). 못 불러오면 Pretendard */
@import url("https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap");
@font-face { font-family: "FB Hahmlet"; src: url("../fonts/flip-Hahmlet-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --f-serif: "FB Hahmlet", "Pretendard Variable", Pretendard, serif;   /* 제목 · 숫자 */
  --f-latin: "FB Hahmlet", Georgia, serif;
  --f-body: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --f-ui: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --fb-bar: 56px;
  --fb-foot: 56px;
  --fb-paper: #F7F7F4;
  --fb-ink: #111418;
  --fb-muted: #4A505A;
  --fb-tint: color-mix(in oklab, var(--accent) 9%, var(--fb-paper));
  --fb-desk: color-mix(in oklab, var(--accent) 62%, #03060c);
  --fb-desk-ink: #EEF0F2;
  --fb-cover: var(--accent);
  /* 종이 결: 아주 옅은 섬유 잡음 */
  --fb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .32 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fb-ease: cubic-bezier(.22, .8, .24, 1);
}

html, body { height: 100%; overflow: hidden; }
body { background: var(--fb-desk); color: var(--fb-ink); }
main { display: block; }

/* ---------- StPageFlip 기본 규칙 ---------- */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
.stf__wrapper { position: relative; width: 100%; box-sizing: border-box; }
.stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; pointer-events: none; }

/* ---------- 책상 ---------- */
.fb {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  padding: var(--fb-bar) 0 var(--fb-foot);
  background: var(--fb-desk);
}
.fb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }

.fb-frame {
  position: relative; flex: none;
  opacity: 0; transform: translate(var(--shift, 0), 14px);
  transition: transform .75s var(--fb-ease), opacity .6s ease;
}
.fb.is-ready .fb-frame { opacity: 1; transform: translate(var(--shift, 0), 0); }
.fb[data-closed="front"] { --shift: calc(var(--pw) / -2); }
.fb[data-closed="back"] { --shift: calc(var(--pw) / 2); }
.fb.is-calm .fb-frame { transform: translate(var(--shift, 0), 0); transition: opacity .6s ease; }
.fb-block { position: absolute; inset: 0; }
.fb-frame .stf__parent { width: 100%; height: 100%; }

/* 책 밑: 바닥 그림자와 쪽 두께(읽은 쪽은 왼쪽, 남은 쪽은 오른쪽에 쌓인다) */
.fb-under {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 26px -10px rgba(0, 0, 0, .5), 0 46px 70px -34px rgba(0, 0, 0, .6);   /* 책 그림자: 실물 재현 */ /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
  transition: left .75s var(--fb-ease), right .75s var(--fb-ease);
}
.fb[data-closed="front"] .fb-under { left: 50%; }
.fb[data-closed="back"] .fb-under { right: 50%; }
.fb-under::before, .fb-under::after {
  content: ""; position: absolute; top: 3px; bottom: -3px; width: 6px;
  background: repeating-linear-gradient(90deg, #f2f2ef 0 1px, #c9cbcd 1px 2px);   /* 쪽 두께: 실물 재현 */ /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
  transition: width .5s ease;
}
.fb-under::before { right: 100%; width: calc(1px + 6px * var(--read, 0)); border-radius: 2px 0 0 2px; }
.fb-under::after { left: 100%; width: calc(1px + 6px * (1 - var(--read, 0))); border-radius: 0 2px 2px 0; }
.fb[data-closed="front"] .fb-under::before, .fb[data-closed="back"] .fb-under::after, .fb.is-portrait .fb-under::before { width: 0; }

/* 가장자리 화살표: 책상 위 얇은 꺾쇠 */
.fb-side {
  flex: none; width: 52px; height: 96px; display: grid; place-items: center; padding: 0;
  border: 0; background: none; color: color-mix(in srgb, var(--fb-desk-ink) 70%, transparent); cursor: pointer;
  transition: color .25s, transform .35s var(--fb-ease), opacity .3s;
}
.fb-side svg { width: 34px; height: 34px; }
.fb-side.is-prev:hover { color: var(--fb-desk-ink); transform: translateX(-4px); }
.fb-side.is-next:hover { color: var(--fb-desk-ink); transform: translateX(4px); }
.fb-side:disabled { opacity: 0; pointer-events: none; }

/* ---------- 위 줄 · 아래 쪽수 ---------- */
.fb-bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--fb-bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px); color: var(--fb-desk-ink);
}
.fb-brand img { height: 24px; width: auto; display: block; filter: invert(1) brightness(1.6); }
.fb-name { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-tools { justify-self: end; display: flex; gap: clamp(14px, 2vw, 28px); }
.fb-tool {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 99px;
  background: rgb(238 240 242 / .1); cursor: pointer; font-family: var(--f-ui); font-size: 14px; font-weight: 700; color: var(--fb-desk-ink);
  transition: background-color .2s, color .2s;
}
.fb-tool svg { width: 18px; height: 18px; }
.fb-act { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 99px; font-family: var(--f-ui); font-size: 14px; font-weight: 800; color: var(--fb-desk-ink); text-decoration: underline; text-underline-offset: 4px; transition: background-color .2s, transform .2s; }
.fb-act.is-main { background: var(--fb-desk-ink); color: var(--accent); text-decoration: none; }
.fb-act.is-main:hover { background: #fff; }
.fb-act:active { transform: scale(.97); }
.fb-rise { animation: fb-rise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes fb-rise { from { opacity: 0; transform: translateY(14px); } }
.fb-tool:hover, .fb-tool[aria-expanded="true"] { background: var(--fb-desk-ink); color: var(--fb-ink); }

.fb-foot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fb-foot); display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 20; }
.fb-step { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--fb-desk-ink); transition: background-color .2s; }
.fb-step:hover:not(:disabled) { background: rgb(238 240 242 / .12); }
.fb-step svg { width: 18px; height: 18px; }
.fb-step:disabled { opacity: .25; cursor: default; }
.fb-count { margin: 0; min-width: 116px; text-align: center; font-family: var(--f-latin); font-size: 18px; font-variant-numeric: lining-nums tabular-nums; color: var(--fb-desk-ink); }
.fb-count b { font-weight: 700; }
.fb-count span { margin-left: 6px; color: color-mix(in srgb, var(--fb-desk-ink) 78%, transparent); }

/* ---------- 목차 패널 (왼쪽에서 나오는 종이 한 장) ---------- */
.fb-toc {
  position: absolute; top: var(--fb-bar); bottom: 12px; left: 12px; z-index: 40; width: min(380px, calc(100% - 24px));
  display: flex; flex-direction: column; padding: 22px 26px 18px; overflow-y: auto;
  background: var(--fb-grain), var(--fb-paper); border-radius: 3px;
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .55);   /* 떠 있는 패널 */ /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
  animation: fb-in .45s var(--fb-ease) both;
}
@keyframes fb-in { from { opacity: 0; transform: translateX(-16px); } }
.fb-toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fb-toc-head p { margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 26px; color: var(--accent); }
.fb-toc-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--fb-muted); }
.fb-toc-close svg { width: 20px; height: 20px; }
.fb-toc ol, .fb-contents { margin: 0; padding: 0; list-style: none; }
.fb-toc ol button, .fb-contents button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 10px; border: 0;
  background: none; cursor: pointer; text-align: left; color: var(--fb-ink); font-family: var(--f-body); font-weight: 600; font-size: 16px; transition: background-color .2s;
}
.fb-toc button > *, .fb-contents button > *, .fb-link > *, .fb-thumb > * { pointer-events: none; }
.fb-toc ol button i, .fb-contents button i { display: none; }
.fb-toc li:nth-child(odd) button, .fb-contents li:nth-child(odd) button { background: var(--fb-tint); }
.fb-toc ol button b, .fb-contents button b { font-family: var(--f-latin); font-weight: 700; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.fb-toc ol button:hover, .fb-toc ol button.is-here { background: var(--accent); color: var(--fb-paper); }
.fb-toc ol button:hover b, .fb-toc ol button.is-here b { color: var(--fb-paper); }
.fb-toc[hidden], .fb-thumbs[hidden] { display: none; }

/* ---------- 전체 쪽 (아래에서 올라오는 썸네일 줄) ---------- */
.fb-thumbs {
  position: absolute; left: 0; right: 0; bottom: var(--fb-foot); z-index: 35; padding: 16px 0 12px;
  background: color-mix(in oklab, var(--fb-desk) 80%, #fff 8%);
  animation: fb-up .4s var(--fb-ease) both;
}
@keyframes fb-up { from { opacity: 0; transform: translateY(12px); } }
.fb-thumbs-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px clamp(16px, 3vw, 40px) 8px; scrollbar-width: thin; }
.fb-thumb-pair { flex: none; display: flex; }
.fb-thumb { --tw: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.fb-thumb-pg {
  position: relative; display: block; width: var(--tw); height: calc(var(--tw) / .7); overflow: hidden;
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .25s var(--fb-ease);
}
.fb-thumb-pg .fb-page { position: absolute; left: 0; top: 0; width: 520px; height: 743px; transform: scale(calc(64 / 520)); transform-origin: 0 0; }
.fb-thumb small { font-family: var(--f-ui); font-size: 13px; color: color-mix(in srgb, var(--fb-desk-ink) 80%, transparent); font-variant-numeric: lining-nums; }
.fb-thumb:hover .fb-thumb-pg { transform: translateY(-3px); }
.fb-thumb.is-here .fb-thumb-pg { outline-color: var(--fb-desk-ink); }
.fb-thumb.is-here small { color: var(--fb-desk-ink); font-weight: 700; }
.fb-thumb-pg .chart .bar { transform: none; transition: none; }
.fb-thumb-pg .chart .val, .fb-thumb-pg .chart .callout * { opacity: 1; transition: none; }

/* ==========================================================
   종이 한 쪽
   ========================================================== */
.fb-page { background: var(--fb-grain), var(--fb-paper); color: var(--fb-ink); container-type: size; overflow: hidden; }
.fb-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }
.fb-measure .fb-page { position: relative; }

.fb-in {
  --fit: 1;
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.15em;
  padding: 11cqh 10cqw 9cqh;
  font-family: var(--f-body); font-size: calc(clamp(13.5px, 2.8cqw, 16.5px) * var(--fit)); line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word; overflow: hidden;
}
.fb-in > * { margin: 0; flex: none; }

/* 접힘선: 가운데로 갈수록 종이가 살짝 어두워지고, 그 옆에 빛이 한 줄 */
.fb-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.fb-page.is-left::after { background: linear-gradient(to left, rgba(20, 24, 30, .2), rgba(20, 24, 30, .07) 2.4%, rgba(255, 255, 255, .16) 4%, transparent 9%); } /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
.fb-page.is-right::after { background: linear-gradient(to right, rgba(20, 24, 30, .22), rgba(20, 24, 30, .08) 2.6%, rgba(255, 255, 255, .16) 4.4%, transparent 10%); } /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
.fb-page.is-cover::after { background: linear-gradient(to right, rgba(20, 24, 30, .16), transparent 3%, rgba(255, 255, 255, .12) 3.6%, transparent 6%); } /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
.fb-page.is-back::after { background: linear-gradient(to left, rgba(0, 0, 0, .22), transparent 3%, rgba(255, 255, 255, .08) 3.6%, transparent 6%); } /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
.fb.is-portrait .fb-page:not(.is-cover)::after { background: linear-gradient(to right, rgba(20, 24, 30, .12), transparent 3.5%); } /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */

/* 머리글과 쪽 번호 */
.fb-running {
  position: absolute; top: 4.6cqh; left: 10cqw; right: 10cqw; margin: 0;
  font-family: var(--f-ui); font-size: max(13px, .7em); font-weight: 600; letter-spacing: 0; line-height: 1; color: var(--fb-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-folio {
  position: absolute; bottom: 4.2cqh; left: 10cqw; right: 10cqw; margin: 0;
  font-family: var(--f-latin); font-weight: 700; font-size: max(13px, .9em); line-height: 1; color: var(--accent); font-variant-numeric: lining-nums;
}
.is-right > .fb-in > .fb-running, .is-right > .fb-in > .fb-folio { text-align: right; }
.fb.is-portrait .fb-running, .fb.is-portrait .fb-folio { text-align: right; }

/* ---------- 블록 ---------- */
.fb-title { margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 2em; line-height: 1.22; letter-spacing: -.03em; color: var(--accent); text-wrap: balance; }
.fb-lead { margin: .8em 0 0; font-size: 1.08em; font-weight: 500; line-height: 1.7; color: var(--fb-ink); }
.fb-text p { margin: 0 0 .75em; color: var(--fb-ink); }
.fb-text p:last-child { margin-bottom: 0; }
.fb-text h3, .fb-table h3, .fb-list h3 {
  margin: 0 0 .5em; font-family: var(--f-serif); font-weight: 800; font-size: 1.08em; line-height: 1.4; color: var(--accent);
}

/* 사진: 남는 높이를 채운다. 종이에 인쇄된 느낌으로 색을 조금 눌러 둔다 */
.fb-photo { flex: 1 1 0 !important; min-height: 24cqh; display: flex; flex-direction: column; gap: .55em; }
.fb-photo-img { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--fb-tint); }
.fb-photo-img img, .fb-bleed img, .fb-cover-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.fb-photo-img::after, .fb-bleed::after, .fb-cover-photo::after { content: ""; position: absolute; inset: 0; background: var(--fb-grain); mix-blend-mode: multiply; opacity: .7; pointer-events: none; }   /* 종이에 찍힌 결 */
.fb-photo.is-contain .fb-photo-img { background: none; }
.fb-photo.is-contain .fb-photo-img img { object-fit: contain; }
.fb-photo.is-contain .fb-photo-img::after { display: none; }
.fb-photo figcaption, .fb-bleed-cap { font-family: var(--f-ui); font-size: max(12px, .68em); line-height: 1.4; color: var(--fb-muted); }

.fb-facts { margin-top: auto !important; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .3em; margin: 0; }
.fb-facts div { padding: .7em .8em; background: var(--fb-tint); }
.fb-facts dt { font-family: var(--f-ui); font-size: max(12px, .72em); font-weight: 600; color: var(--fb-muted); }
.fb-facts dd { margin: .3em 0 0; font-family: var(--f-body); font-weight: 800; font-size: 1.12em; line-height: 1.3; color: var(--accent); font-variant-numeric: tabular-nums; }
.fb-facts small { display: block; margin-top: .2em; font-family: var(--f-ui); font-weight: 500; font-size: max(12px, .62em); color: var(--fb-muted); }

/* 가격표·거리표: 이름 ······ 값 */
.fb-rows { margin: 0; padding: 0; list-style: none; }
.fb-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; padding: .46em .6em; }
.fb-rows li:nth-child(odd) { background: var(--fb-tint); }
.fb-k { font-weight: 700; flex: none; max-width: 62%; line-height: 1.4; }
.fb-k small { display: block; font-family: var(--f-ui); font-weight: 500; font-size: max(12px, .68em); color: var(--fb-muted); letter-spacing: 0; margin-top: .15em; }
.fb-rows i { display: none; }
.fb-v { flex: none; text-align: right; font-family: var(--f-body); font-weight: 750; font-size: 1em; font-variant-numeric: lining-nums tabular-nums; }
.fb-rows li.is-long { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 1em; }
.fb-rows li.is-long i { display: none; }
.fb-rows li.is-long .fb-k { max-width: none; }
.fb-rows li.is-long .fb-v { text-align: left; font-family: var(--f-body); font-weight: 500; font-size: .94em; line-height: 1.6; }
.fb-note { margin: .6em 0 0; font-family: var(--f-ui); font-size: max(12px, .7em); color: var(--fb-muted); }

/* 숫자 하나: 크게 한 번 */
.fb-number { display: flex; flex-direction: column; margin-block: auto !important; }
.fb-big { display: flex; align-items: baseline; gap: .1em; margin: 0; line-height: .82; color: var(--accent); }
.fb-big-v { font-family: var(--f-latin); font-weight: 300; font-size: min(13em, 96px); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.fb-big.is-long .fb-big-v { font-size: min(6.4em, 48px); font-weight: 400; letter-spacing: -.03em; }
.fb-big-u { font-family: var(--f-serif); font-weight: 700; font-size: 2.4em; }
.fb-big-label { margin: .7em 0 .5em; font-family: var(--f-serif); font-weight: 800; font-size: 1.6em; line-height: 1.3; letter-spacing: -.03em; text-wrap: balance; }

.fb-quote { position: relative; margin: auto 0 0; padding: 1em 1.1em; background: var(--fb-tint); }
.fb-quote p { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: 1.14em; line-height: 1.6; color: var(--fb-ink); }
.fb-quote cite { display: block; margin-top: .6em; font-family: var(--f-ui); font-style: normal; font-size: max(12px, .72em); color: var(--fb-muted); }

.fb-list ul, .fb-list ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .55em; counter-reset: fb; }
.fb-list li { position: relative; padding-left: 1.1em; line-height: 1.7; color: var(--fb-ink); }
.fb-list li::before { content: ""; position: absolute; left: .05em; top: .7em; width: .4em; height: .4em; background: var(--accent); }
.fb-list li > b { display: block; color: var(--fb-ink); font-weight: 700; font-size: 1.04em; margin-bottom: .1em; }
.fb-list ol > li { counter-increment: fb; padding-left: 2em; }
.fb-list ol > li::before { content: counter(fb); width: auto; height: auto; top: -.1em; left: 0; background: none; font-family: var(--f-latin); font-weight: 800; font-size: 1.4em; line-height: 1.2; color: var(--accent); }
.fb-list.is-small li { font-size: .82em; }
.fb-list.is-small ol > li::before { font-size: 1.2em; }

/* 그래프 쪽(라벨형 content): page.css 차트를 지면 크기에 맞춘다 */
.fb-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .8em; margin-bottom: .6em; }
.fb-stat .num { font-family: var(--f-latin); font-weight: 400; font-size: 3.6em; line-height: 1; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.fb-stat .stat-label, .fb-compare { font-family: var(--f-ui); font-size: max(12px, .72em); color: var(--fb-muted); }
.fb-stat .stat-text { font-weight: 700; font-size: 1.5em; color: var(--accent); }
.fb-compare { flex-basis: 100%; }
.fb-compare b { color: var(--fb-ink); }
/* 그래프는 사진처럼 남는 높이에 맞춰 줄어든다(휴대폰 한 쪽에서 글이 넘치지 않게) */
.fb-in > .fb-chart { flex: 0 1 auto; min-height: auto; display: flex; flex-direction: column; }   /* 그래프 그림이 먼저 줄고, 그래도 넘치면 fit()이 글자를 줄인다 */
.fb-page .figure { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: 0; }
.fb-page .figure > svg { flex: 0 1 auto; min-height: 14cqh; max-height: 26cqh; height: auto; }
/* 그래프 쪽은 제목 · 큰 수치를 한 단계 작게(휴대폰 한 쪽에 다 들어가게) */
.fb-in:has(> .fb-chart) .fb-title { font-size: 1.6em; }
.fb-in:has(> .fb-chart) .fb-stat .num { font-size: 3em; }
.fb-page .figure > :not(svg) { flex: none; }
.fb-nw { white-space: nowrap; }
.fb-page .figure figcaption { margin-top: .5em; font-family: var(--f-ui); font-size: max(12px, .68em); }
.fb-page .figure .card-eyebrow { font-family: var(--f-ui); font-size: max(12px, .68em) !important; color: var(--fb-muted); }
.fb-page .chart text { font-family: var(--f-ui); }
.fb-page .chart .tick { font-size: 17px; }
.fb:not(.is-portrait) .fb-frame .chart .tick { font-size: 21px; }
.fb:not(.is-portrait) .fb-frame .chart .lbl { font-size: 17px !important; } /* 지면에서는 그래프가 0.6배로 줄어든다. 막대 칸 폭 안에서 키운다 */
.fb-page .chart .sub { font-size: 14px; }
.fb-page .chart .val { font-family: var(--f-latin); font-weight: 500; font-size: 38px; }
.fb-page .chart .callout text { font-family: var(--f-latin); font-weight: 500; }
.fb-page .fig-facts dt, .fb-page .fig-facts dd { font-size: .78em; }
.fb-page .risk-table { font-size: .72em; }

.fb-links { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin-top: auto !important; }
.fb-link {
  display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border: 0; border-radius: 99px;
  background: var(--accent); cursor: pointer; font-family: var(--f-ui); font-size: max(13px, .78em); font-weight: 700; color: var(--fb-paper);
}
.fb-link svg { width: 1.1em; height: 1.1em; }

/* ---------- 쪽 종류 ---------- */
.fb-contents { margin-top: .4em !important; }
.fb-contents button { padding: .62em 0; font-size: 1.04em; }
.fb.is-portrait .fb-contents button { padding: .42em 0; }   /* 휴대폰 한 쪽에 차례 12줄이 글자 줄이지 않고 들어가게 */
.fb-contents button:hover span { color: var(--accent); }

/* 꽉 찬 사진 한 쪽: 아래 띠에 설명과 쪽 번호 */
.is-photo .fb-in { padding: 0; }
.fb-bleed { position: absolute; inset: 0 0 8.5cqh; margin: 0; overflow: hidden; }
.fb-bleed-cap { position: absolute; bottom: 3.6cqh; margin: 0; }
.is-left .fb-bleed-cap { right: 10cqw; text-align: right; }
.is-right .fb-bleed-cap { left: 10cqw; }
.fb.is-portrait .fb-bleed-cap { left: 10cqw; right: 20cqw; text-align: left; }
.is-right .fb-bleed-cap { right: 20cqw; }

.fb-blank-mark { margin: auto !important; width: 26%; opacity: .16; filter: grayscale(1); }

/* 표지: 위는 사진(종이 끝까지), 아래는 책 색 통짜 면에 이름 */
.is-cover { background: var(--fb-grain), var(--fb-cover); color: var(--fb-paper); }
.is-cover .fb-in { padding: 0; }
.fb-cover { position: absolute; inset: 0; display: flex; flex-direction: column; }
.fb-cover-photo { position: relative; flex: 1 1 58%; min-height: 0; margin: 0; overflow: hidden; }
.fb-cover-band { display: flex; flex-direction: column; padding: 6cqh 10cqw 6cqh; }
.fb-cover:not(.has-photo) .fb-cover-band { flex: 1; justify-content: space-between; padding-top: 12cqh; }
.fb-cover-title { margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: min(2.9em, 48px); line-height: 1.08; letter-spacing: -.05em; color: var(--fb-paper); }
.fb-cover-title span { display: block; }
.fb-cover-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4em; margin-top: 1.6em; }
.fb-cover-foot p { margin: 0; font-size: 1em; font-weight: 500; line-height: 1.6; text-wrap: balance; }
.fb-cover-logo { flex: none; height: 1.6em; width: auto; filter: invert(1) brightness(2); }

/* 라벨형 표지: 흰 판지, 색 탭, 큰 제품명, 화면 폭 색 띠, 띠 위에 선 제품 */
.is-cover:has(.is-label) { background: var(--fb-grain), #FBFBFA; color: var(--fb-ink); }
.fb-cover.is-label { padding: 9cqh 10cqw 6cqh; }
.fb-cover.is-label .fb-cover-logo { filter: none; }
.fb-cover.is-label .fb-cover-title { color: var(--accent); }
.fb-cover-kicker { margin: 0 0 1.2em; font-family: var(--f-ui); font-size: max(12px, .74em); font-weight: 600; }
.fb-cover.is-label .fb-cover-logo { align-self: flex-start; height: 1.5em; margin-bottom: 9cqh; }
.fb-cover.is-label .fb-cover-kicker { display: flex; align-items: center; gap: .8em; letter-spacing: .02em; color: var(--fb-ink); }
.fb-cover.is-label .fb-cover-kicker b { padding: .25em .6em; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 700; }
.fb-cover.is-label .fb-cover-title { font-size: min(3.4em, 56px); }
.fb-cover.is-label .fb-cover-title small { font-size: .5em; margin-left: .06em; letter-spacing: 0; }
.fb-cover-ing { margin: .8em 0 0; font-family: var(--f-ui); font-weight: 600; font-size: .9em; color: var(--fb-ink); }
.fb-cover-strip { position: absolute; left: 0; right: 0; bottom: 17cqh; height: 13cqh; display: flex; align-items: center; padding-left: 10cqw; background: var(--accent-2); }
.fb-cover-strip span { font-family: var(--f-latin); font-weight: 600; font-size: 3em; line-height: 1; color: var(--fb-ink); font-variant-numeric: lining-nums; }
.fb-cover-strip small { font-size: .45em; margin-left: .1em; }
.fb-cover-pack { position: absolute; right: 8cqw; bottom: 17cqh; width: 44cqw; height: 46cqh; margin: 0; }
.fb-cover-pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 1em 1em rgba(0, 0, 0, .22)); }   /* 포장 사진 그림자: 라벨형 제품 착지(일성 kit 기준) */ /* taste-skill-ignore: 종이 책 실물 재현(책 그림자 · 쪽 두께 · 접힘선 음영) 또는 떠 있는 패널 */
.fb-cover-tag { position: absolute; left: 10cqw; right: 10cqw; bottom: 6cqh; margin: 0; font-weight: 700; font-size: 1.05em; line-height: 1.5; }

/* 뒤표지: 포장 주색의 천 판지 */
.is-back { background: var(--fb-grain), var(--accent); color: rgba(255, 255, 255, .9); }
.is-back a { color: #fff; }
.is-back .fb-in { padding: 0; }
.fb-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12cqh 10cqw 7cqh; }
.fb-back-logo { width: 40%; height: auto; filter: brightness(0) invert(1); opacity: .92; }
.fb-back-note { margin: 1.4em 0 0; font-size: 1.1em; color: #fff; }
.fb-back-photo { position: relative; flex: 1; min-height: 0; margin: 2.4em 0 2.4em; max-width: 62%; overflow: hidden; }
.fb-back-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-back-photo.is-contain { max-width: 70%; }
.fb-back-photo.is-contain img { object-fit: contain; object-position: 0 50%; }
.fb-back-foot { margin-top: auto; display: grid; gap: .9em; font-family: var(--f-ui); font-size: max(12px, .7em); line-height: 1.65; }
.fb-back-text { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 1.32em; line-height: 1.6; color: #fff; }
.fb-back-makers, .fb-back-notices { margin: 0; padding: 0; list-style: none; }
.fb-back-codes { margin: 0; letter-spacing: .04em; opacity: .7; }


/* 장 첫 쪽(tone 'field', 라벨형의 'opener'): 책 색 통짜 면 + 큰 숫자 */
.fb-page.is-field, .fb-page.is-opener { --fb-ink: #fff; --fb-muted: rgb(255 255 255 / .82); --fb-tint: rgb(255 255 255 / .12); background: var(--fb-grain), var(--accent); color: #fff; }
.is-field .fb-big, .is-opener .fb-big, .is-field .fb-folio, .is-opener .fb-folio, .is-field .fb-title, .is-opener .fb-title, .is-field .fb-text h3, .is-opener .fb-table h3 { color: #fff; }
.is-field .fb-list li::before, .is-opener .fb-list li::before { background: #fff; }
.is-opener .fb-big-v { font-size: min(8em, 72px); }
.is-opener .fb-number, .is-field .fb-number { margin: 0 !important; }
.is-opener .fb-in, .is-field .fb-in { justify-content: flex-end; }

/* 장 첫 쪽 + 그 시각의 사진: 사진이 쪽을 꽉 채우고, 시각 · 글은 아래 왼쪽 책 색 칸에 얹는다(사진 위 글자는 이 칸 안에서만) */
.is-field.has-photo .fb-in { padding: 0; justify-content: flex-end; }
.fb-field-photo { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.fb-field-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-field-photo::after { content: ""; position: absolute; inset: 0; background: var(--fb-grain); mix-blend-mode: multiply; opacity: .7; pointer-events: none; }
.fb-field-box { position: relative; z-index: 1; width: 84%; margin: 0 0 8cqh !important; padding: 1.2em 10cqw 1.3em; background: var(--accent); color: #fff; }
.is-right .fb-field-box { align-self: flex-end; padding-left: 1.4em; }
.is-left .fb-field-box { padding-right: 1.4em; }
.fb.is-portrait .fb-field-box { align-self: flex-start; padding: 1.2em 10cqw 1.3em; }
.fb-field-box .fb-big.is-long .fb-big-v { font-size: min(2.9em, 48px); font-weight: 500; }
.fb-field-box .fb-big-label { margin: .45em 0 .35em; font-size: 1.35em; }
.fb-field-box .fb-text p { font-size: .96em; line-height: 1.6; }
.is-field.has-photo .fb-folio { z-index: 2; color: #fff; }
.is-field.has-photo .fb-folio { bottom: 3cqh; }

/* 약도: 흰 종이 위 책 색 한 가지 + 검정(1도 책에 맞춰 망점 농도로만) */
.fb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fb-map { position: relative; margin: 0; overflow: hidden; }
.fb-map.is-fill { flex: 1 1 0 !important; min-height: 30cqh; margin: 0 -10cqw !important; }
.fb-map-in { position: relative; width: 100%; }
.fb-map.is-fill .fb-map-in { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.fb-map-art, .fb-map-art svg, .fb-map-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-map .m-land { fill: var(--fb-paper); }
.fb-map .m-field { fill: color-mix(in oklab, var(--accent) 6%, var(--fb-paper)); }
.fb-map .m-house { fill: color-mix(in oklab, var(--fb-ink) 20%, var(--fb-paper)); }
.fb-map .m-sea { fill: color-mix(in oklab, var(--accent) 34%, var(--fb-paper)); }
.fb-map .m-sand { fill: color-mix(in oklab, var(--fb-ink) 6%, var(--fb-paper)); }
.fb-map .m-rock { fill: color-mix(in oklab, var(--fb-ink) 38%, var(--fb-paper)); }
.fb-map .m-pine { fill: color-mix(in oklab, var(--accent) 80%, var(--fb-ink)); }
.fb-map .m-road { fill: none; stroke: var(--fb-ink); stroke-width: 6; stroke-linecap: round; }
.fb-map .m-road2 { fill: none; stroke: color-mix(in oklab, var(--fb-ink) 40%, var(--fb-paper)); stroke-width: 3; stroke-linecap: round; }
.fb-map .m-pier { fill: none; stroke: color-mix(in oklab, var(--fb-ink) 38%, var(--fb-paper)); stroke-width: 5; stroke-linecap: round; }
.fb-map .m-walk { fill: none; stroke: var(--fb-ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 6; }
.fb-map .m-light { fill: var(--fb-paper); stroke: var(--fb-ink); stroke-width: 1.2; }
.fb-map .m-light2 { fill: var(--fb-ink); }
.fb-map-label { position: absolute; transform: translateY(-50%); padding: .05em .3em; background: color-mix(in oklab, var(--fb-paper) 84%, transparent); font-family: var(--f-ui); font-size: max(13px, .74em); font-weight: 700; line-height: 1.2; color: var(--fb-ink); white-space: nowrap; }
.fb-map-home { position: absolute; transform: translate(-50%, calc(-100% - .5em)); padding: .2em .6em; background: var(--accent); color: #fff; font-family: var(--f-ui); font-weight: 800; font-size: max(13px, .8em); white-space: nowrap; }
.fb-map-home::after { content: ""; position: absolute; left: 50%; bottom: -.55em; width: .7em; height: .7em; margin-left: -.35em; border-radius: 50%; background: var(--fb-ink); border: .16em solid var(--fb-paper); transform: translateY(50%); }
.fb-map-pin { position: absolute; display: grid; place-items: center; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; border-radius: 50%; background: var(--fb-ink); color: #fff; font-family: var(--f-ui); font-size: max(13px, .8em); font-weight: 800; }
/* 뒤표지 약도: 책 색 면 위에 흰 선으로 */
.fb-map.is-back { flex: 1; min-height: 0; margin: 2em 0; }
.fb-map.is-back .fb-map-in { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.fb-map.is-back .m-land, .fb-map.is-back .m-field, .fb-map.is-back .m-sand { fill: transparent; }
.fb-map.is-back .m-sea { fill: rgb(255 255 255 / .16); }
.fb-map.is-back .m-house, .fb-map.is-back .m-rock { fill: rgb(255 255 255 / .28); }
.fb-map.is-back .m-pine { fill: rgb(255 255 255 / .62); }
.fb-map.is-back .m-road, .fb-map.is-back .m-road2, .fb-map.is-back .m-pier { stroke: rgb(255 255 255 / .7); }
.fb-map.is-back .m-walk { stroke: #fff; }
.fb-map.is-back .fb-map-label { display: none; }
.fb-map.is-back .fb-map-home { background: #fff; color: var(--accent); }

/* 사장님 손글씨 쪽지 */
.fb-memo { margin: 0; padding: .9em 1.1em .8em; background: color-mix(in oklab, var(--accent) 6%, #FCFCFA); color: #1B2A4A; transform: rotate(-1.3deg); }
.fb-memo blockquote { margin: 0; }
.fb-memo p { margin: 0; font-family: "Nanum Pen Script", var(--f-body); font-size: 1.7em; line-height: 1.15; }
.fb-memo figcaption { margin-top: .2em; text-align: right; font-family: "Nanum Pen Script", var(--f-body); font-size: 1.5em; line-height: 1; }

/* 큰 요금 칸 */
.fb-prices h3, .fb-bars h3, .fb-route h3 { margin: 0 0 .5em; font-family: var(--f-serif); font-weight: 800; font-size: 1.08em; line-height: 1.4; color: var(--accent); }
.fb-prices { container: fbp / inline-size; }
.fb-prices ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .35em; }
.fb-prices li { display: flex; flex-direction: column; padding: .8em .8em .9em; background: var(--fb-tint); }
.fb-prices b { font-size: 1.05em; font-weight: 800; }
.fb-prices small { margin-top: .15em; font-size: max(13px, .8em); line-height: 1.4; color: var(--fb-muted); }
.fb-prices em { margin-top: auto; padding-top: .7em; font-style: normal; font-weight: 850; font-size: 1.35em; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-prices span { font-size: max(13px, .78em); font-weight: 700; }
.fb-prices li.is-today { background: var(--accent); color: #fff; }
.fb-prices li.is-today small, .fb-prices li.is-today em { color: #fff; }
/* 좁은 쪽(휴대폰 한 쪽): 칸을 줄로 — 이름 · 설명 왼쪽, 값 오른쪽 */
@container fbp (max-width: 340px) {
  .fb-prices ul { grid-template-columns: 1fr; }
  .fb-prices li { display: grid; grid-template-columns: 1fr auto; column-gap: .8em; align-items: center; padding: .6em .8em; }
  .fb-prices small { grid-column: 1; margin: 0; }
  .fb-prices em { grid-column: 2; grid-row: 1 / span 2; padding: 0; font-size: 1.25em; }
  .fb-prices span { grid-column: 2; grid-row: 3; justify-self: end; }
}

/* 단계 막대(환불 비율) */
.fb-bars ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; }
.fb-bars li { display: flex; flex-direction: column; }
.fb-bars-col { position: relative; height: 5.4em; background: var(--fb-tint); }
.fb-bars-col i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * 1%); background: var(--accent); }
.fb-bars b { margin-top: .35em; font-weight: 850; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.fb-bars small { font-size: max(13px, .82em); line-height: 1.35; color: var(--fb-muted); }

/* 노선표: 굵은 책 색 줄 위 정류장, 맨 위가 이 집 */
.fb-route ol { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: .1em; }
.fb-route ol::before { content: ""; position: absolute; left: .32em; top: .8em; bottom: .8em; width: .36em; background: var(--accent); }
.fb-route li { position: relative; display: flex; justify-content: space-between; gap: .6em; padding: .32em 0 .32em 1.6em; }
.fb-route li::before { content: ""; position: absolute; left: .14em; top: .72em; width: .72em; height: .72em; box-sizing: border-box; border-radius: 50%; border: .2em solid var(--accent); background: var(--fb-paper); }
.fb-route li.is-home { font-family: var(--f-serif); font-weight: 800; color: var(--accent); }
.fb-route li.is-home::before { background: var(--accent); }
.fb-route em { font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }

/* 체크인 카드 */
.fb-ticket { display: grid; grid-template-columns: 1fr 2.6em; border: .14em solid var(--accent); background: var(--fb-paper); }
.fb-ticket > div { padding: .7em .9em .8em; }
.fb-ticket-h { margin: 0 0 .3em; font-family: var(--f-serif); font-weight: 800; color: var(--accent); }
.fb-ticket dl { margin: 0; display: grid; gap: .15em; }
.fb-ticket dl div { display: grid; grid-template-columns: 3.4em 1fr; gap: .5em; align-items: baseline; }
.fb-ticket dt { font-size: max(13px, .86em); color: var(--fb-muted); }
.fb-ticket dd { margin: 0; }
.fb-ticket b { font-weight: 850; font-size: 1.05em; margin-right: .45em; font-variant-numeric: tabular-nums; }
.fb-ticket small { font-size: max(13px, .86em); color: var(--fb-muted); }
.fb-ticket-stub { display: grid; place-items: center; margin: 0; background: var(--accent); color: #fff; font-family: var(--f-serif); font-weight: 800; font-size: .95em; writing-mode: vertical-rl; letter-spacing: .1em; }

/* 연락처: 큰 전화번호 */
.fb-contact { padding: 1em 1.1em 1.1em; background: var(--fb-tint); }
.fb-contact-phone { display: block; font-weight: 850; font-size: 2em; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.fb-contact-phone:hover { text-decoration: underline; text-underline-offset: .15em; }
.fb-contact-l { margin: .3em 0 0; font-weight: 600; color: var(--fb-muted); }
.fb-contact dl { margin: .7em 0 0; display: grid; gap: .2em; }
.fb-contact dl div { display: flex; justify-content: space-between; gap: .8em; }
.fb-contact dt { color: var(--fb-muted); }
.fb-contact dd { margin: 0; font-weight: 700; }

/* 시간표 막대(책 색 면 위 흰색) */
.fb-day { display: grid; grid-template-areas: "hi" "bar" "lo" "ax"; grid-template-rows: auto .9em auto auto; margin-top: 1.4em !important; }
.fb-day-bar { grid-area: bar; position: relative; border-radius: 99px; background: rgb(255 255 255 / .22); }
.fb-day-span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: #fff; }
.fb-day-dot { position: absolute; top: 50%; width: .88em; height: .88em; margin: -.44em 0 0 -.44em; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: .14em solid #fff; }
.fb-day-mk { position: relative; left: var(--x); width: max-content; max-width: 7em; transform: translateX(calc(-1 * var(--x))); font-size: max(13px, .82em); font-weight: 600; line-height: 1.3; }
.fb-day-mk b { display: block; font-size: 1.25em; font-weight: 850; font-variant-numeric: tabular-nums; }
.fb-day-mk.is-high { grid-area: hi; align-self: end; margin-bottom: .5em; }
.fb-day-mk.is-low { grid-area: lo; margin-top: .5em; }
.fb-day-axis { grid-area: ax; display: flex; justify-content: space-between; margin-top: .6em; font-size: max(13px, .74em); font-weight: 600; opacity: .85; }

.fb-back-issue { margin: 0; }
/* 시간표 막대가 흰 종이 위에 올 때: 책 색으로 */
.fb-page:not(.is-field) .fb-day-bar { background: var(--fb-tint); }
.fb-page:not(.is-field) .fb-day-span { background: var(--accent); }
.fb-page:not(.is-field) .fb-day-dot { background: var(--fb-paper); border-color: var(--accent); }
.fb-page:not(.is-field) .fb-day-mk b { color: var(--accent); }
.fb-page:not(.is-field) .fb-day-axis { color: var(--fb-muted); opacity: 1; }

/* 낮은 PC 화면(1280×720 등): 위 · 아래 줄을 줄여 책에 높이를 더 준다 */
@media (min-width: 761px) and (max-height: 800px) {
  :root { --fb-bar: 48px; --fb-foot: 44px; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  :root { --fb-bar: 50px; --fb-foot: 52px; }
  .fb-side { display: none; }
  .fb-name { display: none; }
  .fb-bar { grid-template-columns: auto 1fr; }
  .fb-tool span { font-size: 13px; }
  /* 위 줄에 단추(links)가 있으면: 강조 단추만 남기고, 목차 · 전체 쪽은 그림만(이름은 화면 읽기용) */
  .fb-tools:has(.fb-act) { gap: 8px; }
  .fb-tools:has(.fb-act) .fb-act:not(.is-main) { display: none; }
  .fb-tools:has(.fb-act) .fb-tool { padding: 9px 11px; }
  .fb-tools:has(.fb-act) .fb-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fb-toc { left: 8px; right: 8px; width: auto; }
}

/* 차분한 연출: 이동 없이 서서히 */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .fb-toc, html:not(.force-motion) .fb-thumbs { animation-name: fb-fade; }
  html:not(.force-motion) .fb-side, html:not(.force-motion) .fb-thumb-pg, html:not(.force-motion) .fb-under { transition: none; }
}
@keyframes fb-fade { from { opacity: 0; } }
