/* FHG FX Book (v180). Colours come from the theme variables: every look, dark and light. All classes start with bk- (grep checked, none used before). */
.bk-warn{margin:10px 0;padding:10px 12px;border:1px solid var(--sell,#e5484d);border-left-width:5px;border-radius:10px;background:color-mix(in srgb,var(--sell,#e5484d) 12%,var(--card))}
.bk-warn b{display:block;color:var(--sell,#e5484d);margin:0 0 4px;font-size:14px}
.bk-warn p{margin:0;font-size:14px;line-height:1.5;color:var(--tx)}
.bk-key{margin:14px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card2,var(--bg))}
.bk-key b{display:block;margin:0 0 4px;font-size:13px}
.bk-key ul,.bk-ul{margin:0;padding-left:18px}
.bk-key li,.bk-ul li{font-size:14px;line-height:1.5;margin:2px 0}
.bk-ch p,.bk-ol li{font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.bk-ch h4{margin:16px 0 6px;font-size:15px}
.bk-ol{margin:0 0 8px;padding-left:20px}
.bk-ol li{margin:3px 0}
.bk-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.bk-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card2,var(--bg));color:var(--tx);min-height:0}
.bk-n{flex:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;border:1px solid var(--acc);color:var(--acc)}
.bk-n.done{background:var(--acc);color:var(--bg)}
.bk-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.bk-tx b{font-size:15px}
.bk-tx span{font-size:12px;opacity:.7}
.bk-fig{margin:12px 0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--card2,var(--bg))}
.bk-fig svg{display:block;width:100%;height:auto;max-width:420px;margin:0 auto}
.bk-fig figcaption{font-size:12px;opacity:.75;margin:6px 2px 0;line-height:1.4}
.bk-fig img{display:block;width:100%;height:auto;max-width:360px;margin:0 auto;border-radius:10px}
.bk-tb{width:100%;border-collapse:collapse;margin:8px 0;font-size:14px}
.bk-tb th,.bk-tb td{border:1px solid var(--line);padding:7px 8px;text-align:left}
.bk-tb th{background:var(--card2,var(--bg));font-size:13px}
.bk-rules{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.55;margin:6px 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card2,var(--bg))}
.bk-nav{margin-top:16px}
/* drawing parts */
.bk-t{fill:var(--tx);font-size:11px;font-family:inherit}
.bk-t.b{font-weight:700;font-size:12px}
.bk-t.s{font-size:10px;opacity:.75}
.bk-t.bk-g{fill:var(--buy,#2fa56f)}
.bk-t.bk-r{fill:var(--sell,#e5484d)}
.bk-t.bk-on{fill:var(--bg)}
.bk-c0{fill:none;stroke:var(--line);stroke-width:1}
.bk-cw{fill:var(--acc)}
.bk-cs{fill:var(--sell,#e5484d)}
.bk-bx{fill:var(--card);stroke:var(--line);stroke-width:1.2}
.bk-bw{fill:var(--card);stroke:var(--acc);stroke-width:2}
.bk-ln{fill:none;stroke:var(--tx);stroke-width:1.6;opacity:.7}
.bk-lb{stroke:var(--buy,#2fa56f);stroke-width:2.4}
.bk-lg{stroke:var(--mut,#888);stroke-width:2.4}
.bk-lr{stroke:var(--sell,#e5484d);stroke-width:2.4}
.bk-ln.bk-gs{stroke:var(--buy,#2fa56f);opacity:1}
.bk-ln.bk-rs{stroke:var(--sell,#e5484d);opacity:1}
/* screenshots: the phone decides dark or light, like the rest of the app */
.bk-lt{display:none!important}
@media (prefers-color-scheme:light){.bk-dk{display:none!important}.bk-lt{display:block!important}}
/* v340 WHITE PAPER (trial on the App Guide only, class bk2-t-ag). The reading area is white paper with dark ink in every look, dark or light, from edge to edge of the card (the card padding is 14px). Only colours and spacing; no text changes. Focus mode: the ::highlight marker is off here and the block being read is enlarged (magnifier); the glow ring of Focus mode stays. */
.bk2-paper.bk-ch>.bk2-vs{display:block;margin-left:-14px;margin-right:-14px;width:auto;overflow:hidden;overflow:clip}
.bk2-paper.bk-ch .bk2-sheet{--bg:#fff;--card:#fff;--card2:#f6f3ec;--line:#d9d4c6;--tx:#1a1a1a;--mut:#56595e;--acc:#9a5f08;--btnt:#fff;--c1:#fbf0da;--c2:#f0d49a;--ct:#3a2a08;--cs:#5c4310;--ca:#8a5a12;--co:rgba(58,42,8,.38);background:#fff;color:#1a1a1a;border:0;border-radius:0;box-shadow:none;padding-left:14px;padding-right:14px}
.bk2-paper.bk-ch .bk2-sheet::before{opacity:.04}
.bk2-paper.bk-ch .bk2-part,.bk2-paper.bk-ch .bk2-pgc{background:transparent;border:0;border-bottom:1px solid #e4dfd2;border-radius:0;padding-left:2px;padding-right:2px}
.bk2-paper.bk-ch .bk2-sheet .help{color:#56595e}
.bk2-paper .bk2-sheet ::highlight(bk2-say),.bk2-paper .bk2-sheet ::highlight(bk2-say-n),.bk2-paper .bk2-sheet ::highlight(bk2-say-o){background-color:transparent;color:inherit}
/* v343: magnifier 12 percent. The block is made narrower (width 1/1.12) and then scaled up from its left edge, so the enlarged text fills the paper exactly and the edge clip of .bk2-vs no longer cuts it. */
/* v447: magnifier 20 percent (was 12), and it now also works when Focus mode is off: the paragraph with the reading ring (bk2-ring) is enlarged the same way (my choice 2026-10-28). */
.bk2-paper .bk2-fx :is(p,li,h3,h4,h5,dt,dd).bk2-cur,.bk2-paper .bk2-sheet :is(p,li,h3,h4,h5,dt,dd,figcaption).bk2-ring{transform:scale(1.2);transform-origin:left center;width:calc(100%/1.2);position:relative;z-index:1;background:#fff;transition:transform .3s ease,box-shadow .4s ease}
/* v343: the sticky header on the App Guide is light paper with dark ink, like the page (was the dark Look colour). */
.bk2-paper.bk-ch .bk2-stk{--bg:#fff;--card:#fff;--card2:#f6f3ec;--line:#d9d4c6;--tx:#1a1a1a;--mut:#56595e;background:#fff;color:#1a1a1a;border-bottom:1px solid #d9d4c6}
.bk2-paper.bk-ch .bk2-stk :is(.bk2-sr,.bk2-vr) .nchip{background:#f6f3ec;color:#1a1a1a;border-color:#d9d4c6}
.bk2-paper.bk-ch .bk2-stk .bk2-sr,.bk2-paper.bk-ch .bk2-stk .bk2-sr b,.bk2-paper.bk-ch .bk2-stk .bk2-vt{color:#1a1a1a}
@media (prefers-reduced-motion:reduce){.bk2-paper .bk2-fx .bk2-cur,.bk2-paper .bk2-sheet .bk2-ring{transform:none;transition:none}}

/* v341 App Guide endless scroll: no chapter buttons (the chapters run on one after the other in the scroll). */
.bk2-paper.bk-ch .bk2-chr,.bk2-paper.bk-ch .bk2-ct,.bk2-paper.bk-ch .bk-nav .btn{display:none}
.bk2-paper.bk-ch .bk-nav{min-height:2px;margin:0;padding:0}
.bk2-paper .bk2-xp{margin:0}

/* v344: the speed pill stays dark on the light header, so its number (1.3x) is white and larger, easy to read. Same on every book. */
html .bk2-paper.bk-ch .bk2-stk .bk2-vr .bk2-vs b{color:#fff;font-size:15px;font-weight:800;opacity:1;text-shadow:none}
html .bk2-paper.bk-ch .bk2-stk .bk2-vr .bk2-vs .nchip{color:#fff!important}
