/* Mini brochure flipbook — /mini-brochures/<slug>/ */
.fbhead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin:6px 0 16px}
.fbhead h1{font-size:28px;line-height:1.15;letter-spacing:-.02em;margin:4px 0 4px}
.fbsub{margin:0;color:var(--ink-3);max-width:640px}
.fbacts{display:flex;gap:10px;flex-wrap:wrap}
.fbacts .btn svg{margin-right:2px;vertical-align:-3px}
.fbsize{font-weight:600;opacity:.75;font-size:12px}

.fbwrap{background:linear-gradient(180deg,#0f2f5c 0,#0b2547 100%);border-radius:var(--radius);overflow:hidden;margin-bottom:30px;
  box-shadow:0 10px 30px rgba(11,37,71,.18)}
.fbstage{position:relative;display:flex;align-items:center;justify-content:center;min-height:380px;padding:20px 0;
  touch-action:pan-y;user-select:none;-webkit-user-select:none;
  background:radial-gradient(70% 60% at 50% 45%,rgba(172,181,219,.22) 0,rgba(172,181,219,0) 70%)}
.fbbook{position:relative;transition:transform .6s cubic-bezier(.3,.7,.2,1);perspective:2600px}
.fbpg{position:absolute;top:0;width:50%;height:100%;background:#fff;overflow:hidden;cursor:pointer}
.fbpg.left{left:0;box-shadow:-6px 10px 28px rgba(0,0,0,.35)}
.fbpg.right{left:50%;box-shadow:6px 10px 28px rgba(0,0,0,.35)}
.fbpg.blank{background:transparent;box-shadow:none;cursor:default}
.fbpg img,.fbface img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
/* the fold: a soft shadow either side of the spine */
.fbpg.left:not(.blank)::after,.fbpg.right:not(.blank)::after{content:"";position:absolute;top:0;bottom:0;width:9%;pointer-events:none}
.fbpg.left::after{right:0;background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.16))}
.fbpg.right::after{left:0;background:linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,.16))}
.fbbook.single .fbpg.right{left:0;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.35)}
.fbbook.single .fbpg.right::after{display:none}

/* the turning leaf */
.fbleaf{position:absolute;top:0;height:100%;transform-style:preserve-3d;z-index:3;pointer-events:none;
  animation:fbturn .7s cubic-bezier(.45,.05,.25,1) forwards}
.fbleaf.fwd{left:50%;transform-origin:left center}
.fbleaf.back{left:0;transform-origin:right center;animation-name:fbturnback}
.fbleaf.solo{left:0;transform-origin:left center}
.fbleaf.solo.back{animation-name:fbturnin}
.fbface{position:absolute;inset:0;background:#fff;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.fbface.back{transform:rotateY(180deg)}
.fbleaf.solo .fbface.back{background:transparent}
.fbshade{position:absolute;inset:0;pointer-events:none;opacity:0;animation:fbshade .7s ease-in-out forwards;
  background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,0) 45%,rgba(255,255,255,.12) 70%,rgba(0,0,0,.08))}
@keyframes fbturn{from{transform:rotateY(0)}to{transform:rotateY(-180deg)}}
@keyframes fbturnback{from{transform:rotateY(0)}to{transform:rotateY(180deg)}}
@keyframes fbturnin{from{transform:rotateY(-180deg)}to{transform:rotateY(0)}}
@keyframes fbshade{0%{opacity:0}50%{opacity:1}100%{opacity:0}}

.fbarrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:46px;height:46px;border-radius:50%;border:0;
  background:rgba(255,255,255,.95);color:var(--brand);display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .15s,opacity .15s}
.fbarrow:hover{transform:translateY(-50%) scale(1.07)}
.fbarrow:disabled{opacity:.25;cursor:default;transform:translateY(-50%)}
.fbarrow.prev{left:16px}.fbarrow.next{right:16px}
.fbhint{position:absolute;left:50%;bottom:1px;transform:translateX(-50%);font-size:12px;color:rgba(255,255,255,.75);
  white-space:nowrap;transition:opacity .6s;pointer-events:none}
.fbhint.gone{opacity:0}

.fbbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;background:rgba(0,0,0,.18);color:#fff}
.fbbar .sp{flex:1}
.fbtoc{font:inherit;font-size:13.5px;padding:7px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);color:#fff;max-width:260px}
.fbtoc option{color:var(--ink)}
.fbnum{font-size:13.5px;font-weight:700;font-variant-numeric:tabular-nums;color:#dfe7f5}
.fbtool{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:700;color:#fff;cursor:pointer;
  background:transparent;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:7px 11px}
.fbtool:hover,.fbtool[aria-pressed="true"]{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.45)}

.fbthumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 16px 14px;background:rgba(0,0,0,.22);scrollbar-width:thin}
.fbthumbs[hidden]{display:none}
.fbth{flex:none;position:relative;width:62px;padding:0;border:2px solid transparent;border-radius:4px;background:none;cursor:pointer;opacity:.7;transition:opacity .15s,border-color .15s}
.fbth img{display:block;width:100%;aspect-ratio:210/297;object-fit:cover;border-radius:2px;background:#fff}
.fbth span{display:block;text-align:center;font-size:11px;color:#c9d6ea;margin-top:3px}
.fbth:hover{opacity:1}
.fbth.on{opacity:1;border-color:#fff}

/* full screen: the stage takes all the height */
.fbwrap.isfull{display:flex;flex-direction:column;border-radius:0;margin:0}
.fbwrap.isfull .fbstage{flex:1}

/* zoom */
.fbzoom{position:fixed;inset:0;z-index:100;background:rgba(8,20,40,.94);overflow:auto;padding:56px 16px 30px;cursor:zoom-out}
.fbzpages{display:flex;gap:6px;justify-content:center;margin:0 auto;width:max-content;max-width:none}
.fbzpages img{display:block;width:min(1240px,94vw);height:auto;background:#fff;cursor:default}
.fbzpages.two img{width:min(1000px,92vw)}
.fbzclose{position:fixed;top:12px;right:16px;width:42px;height:42px;border-radius:50%;border:0;background:#fff;color:var(--ink);
  font-size:26px;line-height:1;cursor:pointer;z-index:101}
body.fbzoomed{overflow:hidden}

.fbmore{margin:0 0 30px}

@media (max-width:760px){
  .fbhead h1{font-size:23px}
  .fbacts{width:100%}.fbacts .btn{flex:1;justify-content:center}
  .fbwrap{margin-left:-16px;margin-right:-16px;border-radius:0}
  .fbarrow{width:38px;height:38px;top:auto;bottom:10px;transform:none}
  .fbarrow:hover,.fbarrow:disabled{transform:none}
  .fbarrow.prev{left:10px}.fbarrow.next{right:10px}
  .fbstage{padding:10px 0 60px}
  .fbtool span{display:none}
  .fbtool[data-fbfull]{display:none}
  .fbtoc{max-width:150px}
  .fbzpages.two{flex-direction:column;width:auto}
}
@media (prefers-reduced-motion:reduce){.fbbook{transition:none}}
