:root {
  --fb-bg: #2b2d31;
  --fb-bar: rgba(18, 19, 22, .92);
  --fb-fg: #f2f2f2;
  --fb-muted: #a9abb0;
  --fb-accent: #4da3ff;
  --fb-hot: #cafdff;
  /* Gallery and poll buttons: Tow Times red unless the link sets its own color. */
  --fb-x: #f20800;
  --fb-x-ink: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fb-bg); color: var(--fb-fg);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow: hidden; }
.fb-noscript { padding: 2em; }
.fb-noscript a { color: #fff; }

.fb { position: fixed; inset: 0; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }

/* Bars */
.fb-bar { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 10px;
  padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right));
  background: var(--fb-bar); z-index: 5; }
.fb-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.fb-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: transparent; color: var(--fb-fg); cursor: pointer; padding: 0; text-decoration: none; }
.fb-btn:hover { background: rgba(255,255,255,.1); }
.fb-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.fb-btn.on { background: rgba(255,255,255,.16); }
.fb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fb-archive { width: auto; gap: 6px; padding: 0 10px 0 8px; font-weight: 600; font-size: 14px; }
.fb-label { flex: none; font: inherit; font-variant-numeric: tabular-nums; color: var(--fb-muted); white-space: nowrap; cursor: pointer; min-width: 74px; text-align: center;
  background: none; border: 0; border-radius: 8px; padding: 8px 6px; }
.fb-label:hover { background: rgba(255,255,255,.1); color: var(--fb-fg); }
.fb-jump { width: 64px; background: #000; color: #fff; border: 1px solid #555; border-radius: 6px; padding: 4px 6px; font: inherit; text-align: center; }

/* Stage & book */
.fb-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; touch-action: none; }
.fb-book { position: absolute; left: 50%; top: 50%; perspective: 2600px; cursor: zoom-in; transition: transform .6s cubic-bezier(.4,.1,.2,1); }
.fb-slot, .fb-leaf { position: absolute; top: 0; height: 100%; }
.fb-slot { overflow: hidden; }
.fb-page { position: absolute; inset: 0; background: #fff; overflow: hidden; }
.fb-page img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.fb-slot.has-page, .fb-leaf { box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.fb-spread .fb-l .fb-page::after, .fb-spread .fb-r .fb-page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none; }
.fb-spread .fb-l .fb-page::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.18), transparent); }
.fb-spread .fb-r .fb-page::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.14), transparent); }

.fb-leaf { transform-style: preserve-3d; z-index: 3; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.fb-face.back { transform: rotateY(180deg); }
.fb-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); opacity: 0; }
.fb-face.back .fb-shade { background: linear-gradient(to left, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }

.fb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 86px; border: 0; border-radius: 10px;
  background: rgba(0,0,0,.28); color: #fff; cursor: pointer; z-index: 4; display: flex; align-items: center; justify-content: center; }
.fb-nav:hover { background: rgba(0,0,0,.5); }
.fb-nav:disabled { display: none; }
.fb-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fb-prev { left: 8px; } .fb-next { right: 8px; }

/* Ads: side columns on wide screens, a bottom banner on phones and tablets (one or the other). */
.fb-body { flex: 1; min-height: 0; display: flex; }
.fb-body .fb-stage { flex: 1; min-width: 0; }
.fb-rail { flex: none; width: 196px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; }
.fb-banner { flex: none; display: none; flex-direction: column; align-items: center; gap: 3px; background: var(--fb-bar);
  padding: 4px 8px max(6px, env(safe-area-inset-bottom)); }
.fb-ad-label { font-size: 9px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--fb-muted); }
.fb-ad { display: block; line-height: 0; }
.fb-ad img { display: block; object-fit: contain; -webkit-user-drag: none; }
.fb-rail .fb-ad img { width: 160px; height: 600px; max-height: calc(100vh - 110px); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
/* The banner stretches across the screen (up to 480px) at the image's own shape: 320×50 or 320×100, sent at twice the size. */
.fb-banner .fb-ad { width: 100%; max-width: 480px; }
.fb-banner .fb-ad img { width: 100%; height: auto; max-height: 150px; }
/* A closed drawer sits at the stage's edge, which is no longer the window's edge beside a side ad. */
.fb-body .fb-drawer:not(.open) { box-shadow: none; }
@media (max-width: 1099px) {
  .fb-rail { display: none; }
  .fb-banner { display: flex; }
  .fb-has-banner .fb-toast { bottom: 90px; }
}

/* Links */
.fb-hot { position: absolute; display: block; border-radius: 2px; cursor: pointer; z-index: 2; transition: background-color .15s; }
.fb-hot:hover, .fb-hot:focus-visible, .fb-hot.fb-pair-hover { background: color-mix(in srgb, var(--fb-hot) 45%, transparent); outline: none; }
.fb-flash .fb-hot { animation: fb-flash 1.6s ease-out 1; }
@keyframes fb-flash { 0%, 40% { background: color-mix(in srgb, var(--fb-hot) 45%, transparent); } 100% { background: transparent; } }
@media (hover: none) { .fb-hot { background: color-mix(in srgb, var(--fb-hot) 18%, transparent); } }
.fb-video { background: rgba(0,0,0,.08); }
.fb-video .fb-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
  background: rgba(220, 0, 0, .88); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.fb-video .fb-play::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.fb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Gallery and poll links carry a badge, since the printed page doesn't say they're there. */
.fb-extra { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3%; }
.fb-badge { pointer-events: none; display: inline-flex; align-items: center; gap: 6px; max-width: 94%; white-space: nowrap; overflow: hidden;
  padding: 6px 12px; border-radius: 99px; background: var(--fb-x); color: var(--fb-x-ink); font-weight: 600; font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.fb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .85; flex: none; }
.fb-extra:hover .fb-badge { filter: brightness(1.1); }

/* Modal: photo gallery and reader poll */
.fb-modal { position: absolute; inset: 0; z-index: 8; display: none; background: rgba(8, 9, 11, .97); user-select: none; }
.fb-modal.open { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fb-modal-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); z-index: 2; background: rgba(255,255,255,.08); }
.fb-gallery { justify-content: flex-start; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); }
.fb-gal-head { flex: none; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 8px 60px 8px 16px; }
.fb-gal-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-gal-count { color: var(--fb-muted); font-variant-numeric: tabular-nums; }
.fb-gal-frame { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.fb-gal-frame img { max-width: calc(100% - 120px); max-height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.fb-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 76px; background: rgba(255,255,255,.08); }
.fb-gal-nav:disabled { visibility: hidden; }
.fb-gal-prev { left: 8px; } .fb-gal-next { right: 8px; }
.fb-gal-cap { flex: none; max-width: 760px; margin: 12px 16px 8px; text-align: center; line-height: 1.5; min-height: 1.5em; }
.fb-gal-strip { flex: none; max-width: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px; }
.fb-gal-thumb { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #000; cursor: pointer; opacity: .6; }
.fb-gal-thumb.cur, .fb-gal-thumb:hover { opacity: 1; border-color: var(--fb-x); }
.fb-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-html { user-select: auto; }
.fb-html-card { display: flex; flex-direction: column; max-width: calc(100% - 32px); max-height: calc(100% - 80px); background: #fff; color: #1b1c1f;
  border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.fb-html-title { flex: none; padding: 14px 18px 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.fb-html-frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: #fff; }
.fb-video-card { width: min(960px, calc(100% - 32px)); aspect-ratio: 16 / 9; height: auto; background: #000; }
/* Halves of a video box drawn across the spread: side by side, one play button just left of the gutter;
   on phones (one page at a time) each half has its own. */
.fb-spread .fb-video-l .fb-play { left: auto; right: 10px; margin-left: 0; }
.fb-spread .fb-video-r .fb-play { display: none; }
.fb-poll-card { width: min(460px, calc(100% - 32px)); background: #fff; color: #1b1c1f; border-radius: 14px; padding: 24px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.fb-poll-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fb-x); }
.fb-poll-q { font-size: 21px; line-height: 1.3; margin: 6px 0 16px; }
.fb-poll-opts { display: flex; flex-direction: column; gap: 8px; }
.fb-poll-opt { font: inherit; font-size: 15px; text-align: left; padding: 12px 14px; border-radius: 9px; border: 1.5px solid #c9ccd3; background: #fff; color: inherit; cursor: pointer; }
.fb-poll-opt:hover, .fb-poll-opt:focus-visible { border-color: var(--fb-x); background: color-mix(in srgb, var(--fb-x) 8%, #fff); outline: none; }
.fb-poll-res { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 9px; background: #f0f1f4; overflow: hidden; font-size: 15px; }
.fb-poll-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #dcdee3; transition: width .6s ease; }
.fb-poll-res.mine .fb-poll-fill { background: color-mix(in srgb, var(--fb-x) 32%, #fff); }
.fb-poll-res.mine { font-weight: 600; }
.fb-poll-label, .fb-poll-pct { position: relative; }
.fb-poll-label { flex: 1; }
.fb-poll-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-poll-foot { margin: 14px 0 0; font-size: 13px; color: #5d6170; min-height: 1.4em; }
@media (max-width: 600px) {
  .fb-badge { font-size: 11px; padding: 4px 9px; }
  .fb-gal-frame img { max-width: 100%; }
  .fb-gal-nav { display: none; }
}
.fb-sm .fb-badge { font-size: 11px; padding: 4px 9px; }
.fb-sm .fb-gal-frame img { max-width: 100%; }
.fb-sm .fb-gal-nav { display: none; }

/* Drawers */
.fb-drawer { position: absolute; top: 0; bottom: 0; right: 0; width: min(380px, 100%); background: rgba(22,23,26,.97); z-index: 6;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.4); }
.fb-drawer.open { transform: none; }
.fb-drawer-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600; }
.fb-drawer-head span { flex: 1; }
.fb-drawer-body { flex: 1; overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.fb-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.fb-thumb { border: 0; background: none; color: var(--fb-muted); cursor: pointer; padding: 4px; border-radius: 6px; font: inherit; }
.fb-thumb:hover, .fb-thumb.cur { background: rgba(255,255,255,.08); color: #fff; }
.fb-thumb .fb-thumb-imgs { display: flex; justify-content: center; }
.fb-thumb img { width: 50%; display: block; background: #fff; }
.fb-thumb.single img { width: 50%; }
.fb-search-input { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid #555; background: #0d0d0f; color: #fff; font: inherit; }
.fb-results { margin-top: 10px; }
.fb-result { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--fb-fg); padding: 9px 8px; border-radius: 6px; cursor: pointer; font: inherit; }
.fb-result:hover { background: rgba(255,255,255,.08); }
.fb-result b { display: block; color: var(--fb-accent); font-size: 12px; margin-bottom: 2px; }
.fb-result small { color: var(--fb-muted); }
.fb-result mark { background: #ffe680; color: #000; border-radius: 2px; }
.fb-empty { color: var(--fb-muted); padding: 8px; }
.fb-drawer-wide { width: min(480px, 100%); }
.fb-tr-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fb-tr-pick select { flex: 1; }
.fb-tr { padding: 4px 4px 24px; line-height: 1.6; }
.fb-tr-note { font-size: 12px; color: var(--fb-muted); margin: 0 0 14px; }
.fb-tr-page + .fb-tr-page { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.fb-tr-num { font-size: 12px; font-weight: 600; color: var(--fb-accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.fb-tr-p { margin: 0 0 12px; color: var(--fb-fg); }
/* Hide Google Translate's own banner, tooltips and highlight; the panel's menu drives it. */
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* Zoom */
.fb-zoom { position: absolute; inset: 0; z-index: 7; background: var(--fb-bg); display: none; }
.fb-zoom.open { display: block; }
.fb-zoom-scroll { position: absolute; inset: 0; overflow: auto; cursor: grab; touch-action: none; }
.fb-zoom-scroll.drag { cursor: grabbing; }
.fb-zoom-inner { position: relative; margin: 0 auto; display: flex; }
.fb-zoom-inner .fb-zp { position: relative; flex: none; }
.fb-zoom-tools { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 4px; background: var(--fb-bar); border-radius: 10px; padding: 4px; }

.fb-toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 8px 14px;
  border-radius: 8px; z-index: 9; opacity: 0; transition: opacity .2s; pointer-events: none; }
.fb-toast.show { opacity: 1; }

/* Page turners beside the counter are for phones only. */
.fb-bar-nav { display: none; }
@media (max-width: 600px) {
  .fb-bar { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 4px; gap: 0; }
  .fb-bar .fb-hide-sm { display: none; }
  .fb-bar .fb-btn { width: 36px; height: 36px; }
  .fb-title { font-size: 13px; }
  .fb-bar .fb-archive { width: 36px; padding: 0; }
  .fb-archive span { display: none; }
  .fb-label { min-width: 0; padding: 8px 2px; }
  .fb-bar-nav { display: inline-flex; }
  .fb-nav { display: none; }
  .fb-zoom-tools { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
}
/* The same, for a phone in Chrome's "Desktop site" mode (see fitScreen in flipbook.js). */
.fb-sm .fb-bar { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 4px; gap: 0; }
.fb-sm .fb-bar .fb-hide-sm { display: none; }
.fb-sm .fb-bar .fb-btn { width: 36px; height: 36px; }
.fb-sm .fb-title { font-size: 13px; }
.fb-sm .fb-bar .fb-archive { width: 36px; padding: 0; }
.fb-sm .fb-archive span { display: none; }
.fb-sm .fb-label { min-width: 0; padding: 8px 2px; }
.fb-sm .fb-bar-nav { display: inline-flex; }
.fb-sm .fb-nav { display: none; }
.fb-sm .fb-zoom-tools { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .fb-book, .fb-drawer { transition: none; } }
@media print { .fb-bar, .fb-nav, .fb-rail, .fb-banner { display: none; } }
