.tf-viewer{--tf-ink:#f3ede3;--tf-muted:#bcb3a6;--tf-gold:#d9ba7c;box-sizing:border-box;background:#191b1b;color:var(--tf-ink);font:14px/1.4 system-ui,-apple-system,sans-serif;border:1px solid #353837;border-radius:12px;overflow:hidden;width:100%;max-width:1600px;margin:24px auto;color-scheme:dark;isolation:isolate}
.tf-viewer *{box-sizing:border-box}.tf-viewer button,.tf-viewer input,.tf-viewer a{font:inherit}.tf-viewer button{appearance:none;border:1px solid #4a4b45;border-radius:6px;background:#252827;color:var(--tf-ink);min-height:44px;min-width:44px;padding:8px 12px;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal;margin:0;line-height:1.2}.tf-viewer button:hover:not(:disabled){border-color:var(--tf-gold);background:#36382f}.tf-viewer button:disabled{opacity:.35;cursor:default}.tf-viewer :focus-visible{outline:3px solid var(--tf-gold);outline-offset:3px}.tf-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid #353837}.tf-eyebrow{font-size:10px;letter-spacing:.2em;color:var(--tf-gold)}.tf-header h2{font:normal 25px/1.2 Georgia,serif;margin:5px 0 0;color:var(--tf-ink);padding:0}.tf-header button{white-space:nowrap}.tf-stage{height:clamp(360px,72svh,1100px);min-height:240px;position:relative;overflow:auto;overscroll-behavior:contain;touch-action:none;background:radial-gradient(ellipse at 50% 38%,#3d4140 0%,#262a29 55%,#1b1e1d 100%);perspective:1800px;padding:24px;display:flex;align-items:safe center;justify-content:safe center}.tf-paper{position:relative;flex-shrink:0;background:white;box-shadow:0 16px 42px #0008;transform-origin:left center;line-height:0}.tf-paper canvas{display:block;max-width:none!important;margin:0!important}.tf-links{position:absolute;inset:0}.tf-links a{position:absolute;display:block;background:transparent;border:0}.tf-links a:hover,.tf-links a:focus-visible{background:#d9ba7c33;outline:2px solid var(--tf-gold)}.tf-loading{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:24px;background:#202423e8;color:var(--tf-ink);z-index:3;line-height:1.6;margin:0}.tf-loading[hidden],.tf-text[hidden]{display:none}.tf-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 24px 6px}.tf-pagination,.tf-tools{display:flex;gap:6px;align-items:center}.tf-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--tf-muted);margin:0}.tf-page-input{width:52px!important;min-height:44px;text-align:center;background:#252827!important;color:var(--tf-ink)!important;border:1px solid #4a4b45!important;border-radius:6px;padding:5px!important;margin:0!important;appearance:textfield}.tf-page-input::-webkit-inner-spin-button{appearance:none}.tf-tools a{color:var(--tf-gold);padding:12px 8px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}.tf-hint{margin:8px 16px 15px!important;text-align:center;color:var(--tf-muted);font-size:11px;letter-spacing:.03em}.tf-text{max-height:40svh;overflow:auto;padding:24px;background:#fbf7ee;color:#242623;white-space:pre-wrap;line-height:1.7;border-top:1px solid #555}.tf-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.tf-viewer:fullscreen,.tf-viewer.tf-expanded{width:100%;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;display:flex;flex-direction:column}.tf-viewer.tf-expanded{position:fixed;inset:0;z-index:2147483647}.tf-viewer:fullscreen .tf-stage,.tf-expanded .tf-stage{height:auto;flex:1;min-height:0}.tf-viewer:fullscreen .tf-header,.tf-expanded .tf-header{padding-top:max(16px,env(safe-area-inset-top))}.tf-viewer:fullscreen .tf-hint,.tf-expanded .tf-hint{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:600px){.tf-viewer{border-radius:8px;margin:12px auto}.tf-header{padding:14px 12px;gap:8px}.tf-header h2{font-size:20px}.tf-eyebrow{font-size:8px}.tf-header button{font-size:12px;padding:8px}.tf-stage{height:65svh;padding:12px}.tf-toolbar{padding:12px 8px 0;justify-content:center;gap:8px}.tf-tools{justify-content:center;flex-wrap:wrap}.tf-tools button{padding:8px 10px}.tf-hint{font-size:10px}.tf-text{padding:16px}}
@media(prefers-reduced-motion:reduce){.tf-paper{animation:none!important;transition:none!important}}

.tf-paper .tf-curl{position:absolute;inset:0;z-index:5;pointer-events:none;max-width:none!important}

/* Text mode shares the reading area: 30% visual preview, 70% text. */
.tf-text{max-height:none;padding:0;white-space:normal;display:flex;flex-direction:column;overflow:hidden;min-height:0}
.tf-text-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;border-bottom:1px solid #d9d1c1;flex-shrink:0;background:#f3eddf}
.tf-text-header strong{font-size:14px}.tf-text-page{font-weight:400;color:#686256}
.tf-text-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;padding:20px 24px;font-size:17px;line-height:1.75;touch-action:pan-y pinch-zoom}
.tf-text-mode .tf-stage{height:clamp(108px,21.6svh,330px);min-height:0;padding:8px}
.tf-text-mode .tf-text{height:clamp(252px,50.4svh,770px)}
.tf-viewer.tf-text-mode:fullscreen .tf-stage,.tf-viewer.tf-text-mode.tf-expanded .tf-stage{height:0;flex:3 1 0;min-height:0}
.tf-viewer.tf-text-mode:fullscreen .tf-text,.tf-viewer.tf-text-mode.tf-expanded .tf-text{height:0;flex:7 1 0;min-height:0}
.tf-viewer.tf-text-mode:fullscreen .tf-header,.tf-viewer.tf-text-mode.tf-expanded .tf-header,.tf-text-mode .tf-toolbar,.tf-text-mode .tf-hint{flex-shrink:0}
@media(max-width:600px){.tf-text-mode .tf-stage{height:19.5svh}.tf-text-mode .tf-text{height:45.5svh}.tf-text-header{padding:8px 12px;gap:8px}.tf-text-header strong{font-size:12px}.tf-text-header button{font-size:12px;padding:8px}.tf-text-content{padding:14px 16px;font-size:16px}}

.tf-text-content{white-space:normal}.tf-text-content p{font:inherit;color:inherit;margin:0 0 1em;padding:0}.tf-text-content h3{font:700 1.4em/1.3 system-ui,sans-serif;color:inherit;margin:0 0 .85em;padding:0}.tf-text-content>:last-child{margin-bottom:0}

.tf-text-content p{white-space:pre-line}

.tf-reading-bar{display:flex;justify-content:flex-end;align-items:center;padding:10px 24px;border-bottom:1px solid #45483f;background:#222623;flex-shrink:0}.tf-reading-bar button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;background:var(--tf-gold);color:#191b1b;border-color:var(--tf-gold);font-weight:650;padding:10px 22px}.tf-reading-bar button:hover:not(:disabled){background:#ead1a0;color:#191b1b}.tf-reading-bar button[aria-pressed="true"]{background:#f3ebdc;color:#191b1b}.tf-reading-bar button span{font:700 20px/1 Georgia,serif}@media(max-width:600px){.tf-reading-bar{padding:10px 12px}.tf-reading-bar button{width:100%;min-height:48px;font-size:16px}}

.tf-text-content strong{font-weight:700;color:inherit}

@media(max-width:600px){
 .tf-viewer.tf-text-mode{scroll-margin-top:8px}
 .tf-viewer.tf-text-mode .tf-stage{height:calc(var(--tf-mobile-reading-space, 65vh) * .3)!important;min-height:0!important;max-height:calc(var(--tf-mobile-reading-space, 65vh) * .3)!important;flex:none;overflow:hidden;padding:8px}
 .tf-viewer.tf-text-mode .tf-text{height:calc(var(--tf-mobile-reading-space, 65vh) * .7)!important;min-height:0!important;max-height:calc(var(--tf-mobile-reading-space, 65vh) * .7)!important;flex:none}
 .tf-viewer.tf-text-mode .tf-text-content{min-height:0;overflow-y:auto}
}

/* Mobile: a viewport-sized reader with one compact bottom navigation row. */
@media(max-width:600px){
 .tf-viewer{height:calc(100vh - 16px);height:calc(100svh - 16px);display:flex;flex-direction:column}
 .tf-viewer>.tf-header,.tf-viewer>.tf-reading-bar{flex-shrink:0}
 .tf-viewer:not(.tf-text-mode)>.tf-stage{height:0;min-height:0;flex:1 1 0}
 .tf-viewer>.tf-toolbar{margin-top:auto;flex:0 0 auto;flex-wrap:nowrap;justify-content:center;padding:6px 12px max(6px,env(safe-area-inset-bottom));border-top:1px solid #353837;background:#191b1b}
 .tf-viewer .tf-tools{display:none!important}
 .tf-viewer .tf-pagination{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px}
 .tf-viewer .tf-pagination label{font-size:12px;gap:3px}
 .tf-viewer .tf-page-label{display:none}
 .tf-viewer .tf-page-input{width:36px!important;font-size:12px;min-height:36px;background:transparent!important;border-color:transparent!important;padding:2px!important}
 .tf-viewer .tf-pagination button{width:44px;min-height:44px;padding:6px;font-size:20px}
}

/* One compact header, with reading controls beside the brochure name. */
.tf-viewer .tf-header{padding:12px 18px;gap:14px;align-items:center}
.tf-viewer .tf-heading{min-width:0;flex:1}
.tf-viewer .tf-header h2{font-size:20px;line-height:1.2;margin-top:4px;overflow-wrap:anywhere}
.tf-viewer .tf-reading-toggle{flex:0 0 auto;width:auto;min-height:44px;padding:8px 14px;font-size:13px;font-weight:650;background:var(--tf-gold);color:#191b1b;border-color:var(--tf-gold)}
.tf-viewer .tf-reading-toggle:hover:not(:disabled){background:#ead1a0;color:#191b1b}
.tf-viewer .tf-reading-toggle[aria-pressed="true"]{background:#f3ebdc;color:#191b1b}
@media(max-width:600px){
 .tf-viewer .tf-header{padding:10px 12px;gap:10px}
 .tf-viewer .tf-header h2{font-size:16px}
 .tf-viewer .tf-eyebrow{font-size:7px;letter-spacing:.13em}
 .tf-viewer .tf-reading-toggle{width:112px;max-width:42%;white-space:normal;font-size:12px;line-height:1.3;padding:7px 10px}
}

/* Keep the embed inside its parent and the mobile viewport. */
.tf-viewer{min-width:0;max-width:min(100%,1600px)}
.tf-viewer>.tf-header,.tf-viewer>.tf-stage,.tf-viewer>.tf-text,.tf-viewer>.tf-toolbar{min-width:0;max-width:100%}
@media(max-width:600px){
 .tf-viewer{width:100%;max-width:min(100%,100vw);box-sizing:border-box}
 .tf-viewer .tf-header{display:flex;flex-wrap:nowrap;width:100%;box-sizing:border-box}
 .tf-viewer .tf-heading{flex:1 1 0;min-width:0;overflow:hidden}
 .tf-viewer .tf-header h2{max-width:100%;overflow-wrap:anywhere}
 .tf-viewer .tf-reading-toggle{flex:0 1 104px;width:104px;min-width:0;max-width:42%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
 .tf-viewer .tf-text-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .tf-viewer .tf-toolbar,.tf-viewer .tf-pagination{min-width:0;max-width:100%;box-sizing:border-box}
}

/* Overlay is outside document flow, so it cannot widen the header. */
.tf-viewer .tf-stage>.tf-reading-toggle{position:absolute;top:10px;right:10px;z-index:8;max-width:calc(100% - 20px);width:auto;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;box-shadow:0 2px 10px #0005;touch-action:manipulation}
.tf-viewer .tf-header,.tf-viewer .tf-heading{width:100%;min-width:0;max-width:100%}
@media(max-width:600px){
 .tf-viewer{max-width:100%!important;min-width:0!important;width:100%!important;overflow:hidden}
 .tf-viewer .tf-stage>.tf-reading-toggle{top:8px;right:8px;max-width:calc(100% - 16px);width:auto;min-width:0;flex:none;padding:8px 12px;font-size:12px}
}

.tf-viewer .tf-stage>.tf-reading-toggle{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;flex:none!important;min-width:104px;width:max-content;max-width:calc(100% - 20px)}

/* Mobile uses swipe/corner navigation; retain desktop controls. */
@media(max-width:600px){
 .tf-viewer>.tf-toolbar{display:none!important}
}

@media(max-width:600px){.tf-viewer{box-sizing:border-box!important;margin-left:0!important;margin-right:0!important}.tf-viewer>.tf-stage{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}.tf-viewer>.tf-header,.tf-viewer>.tf-text{box-sizing:border-box!important;min-width:0!important}}

/* Start each page at the top of the viewport, including Reading Mode. */
.tf-viewer .tf-stage{align-items:flex-start!important}

.tf-mobile-instruction{display:none}
@media(max-width:600px){.tf-viewer>.tf-mobile-instruction{display:block;flex:none;margin:0!important;padding:6px 8px;font:11px/1.4 system-ui,sans-serif;text-align:center;color:var(--tf-muted);background:#191b1b}}
