/* The sheet (v0.59): every card as a pixel-art window over the map. A wooden frame with brass rivets (assets/ui/menu.png),
   the name on a gold ribbon, parchment panels with carved plaques, slate gauges with segmented bars, a rail of dated
   tags along the bottom. Art: assets/ui2 (tools/ui-art/make_ui2.py). Older card content (tabs) shows on a slate page. */
.c2p.sh2{left:50%;top:76px;bottom:auto;width:min(1280px,calc(100vw - 24px));height:min(980px,calc(100vh - 136px));transform:translate(-50%,-12px);background:none;box-shadow:none;display:block;z-index:11;font:400 var(--t1)/var(--lh) var(--px);color:#2a1c0e;transition:transform .14s ease-out,opacity .14s}
.c2p.sh2.up{transform:translate(-50%,0);opacity:1}
.sh2 *{box-sizing:border-box}
.sh2-frame{position:absolute;inset:0;border:24px solid;border-image:url(../../../assets/ui/menu.png) 8 fill/24px;filter:drop-shadow(0 10px 0 #0006)}
.sh2-in{position:absolute;inset:-4px;background:#1b2624 url(../../../assets/ui/bg.png) 0 0/24px 24px;border:3px solid #0b0a08;padding:34px 16px 12px;display:flex;flex-direction:column;gap:10px}
.sh2-ribbon{position:absolute;left:50%;top:-42px;transform:translateX(-50%);height:66px;min-width:340px;max-width:70%;padding:0 54px 12px;border-style:solid;border-width:0 42px;border-image:url(../../../assets/ui2/ribbon.png) 0 14 fill/0 42px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:var(--t2);letter-spacing:1px;color:#2a1608;text-shadow:0 2px 0 #f0cc7a;white-space:nowrap}
.sh2-ribbon>span{overflow:hidden;text-overflow:ellipsis}
.sh2-ribbon.small{position:relative;left:auto;top:auto;transform:none;align-self:center;height:54px;min-width:0;max-width:112%;font-size:var(--t1);padding:0 20px 10px;margin:-34px -14px 0;text-shadow:none}
.sh2-tags{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.sh2-tag{padding:1px 8px 2px;border:3px solid #0b0a08;background:#e9d7a6;box-shadow:inset 3px 3px 0 #f8ecc6,inset -3px -3px 0 #a8884e;font-weight:600;font-size:var(--t1);white-space:nowrap}
.sh2-tag.bad{background:#c4553a;color:#fff0e0;box-shadow:inset 3px 3px 0 #e88868,inset -3px -3px 0 #7a2a18}
.sh2-tag.gold{background:#d9a441;box-shadow:inset 3px 3px 0 #f6d98a,inset -3px -3px 0 #8a6a2a}
.sh2-tag.good{background:#8fc46a;box-shadow:inset 3px 3px 0 #c8f09a,inset -3px -3px 0 #4e7a38}
.sh2-btns{position:absolute;right:10px;top:8px;display:flex;gap:6px}
body.shell .c2p.sh2 .sh2-btn{height:36px;min-width:36px;min-height:0;padding:0 8px;border:12px solid;border-image:url(../../../assets/ui/btn.png) 4 fill/12px;background:none;box-shadow:none;font:600 var(--t1) var(--px);color:#e8dcc0;display:flex;align-items:center;justify-content:center;line-height:var(--lh-tight);cursor:pointer}
body.shell .c2p.sh2 .sh2-btn:hover{border-image-source:url(../../../assets/ui/btn-hover.png);color:#fff}
body.shell .c2p.sh2 .sh2-btn:disabled{opacity:.35;cursor:default}
body.shell .c2p.sh2 .sh2-btn.on{border-image-source:url(../../../assets/ui/btn-on.png);color:#2a1608}
.sh2-btn>span{margin:-8px 0;white-space:nowrap}
.sh2-sub{text-align:center;color:#e8dcc0;font-size:var(--t1);text-shadow:2px 2px 0 #0b0a08;margin:0 150px;min-height:22px}
.sh2-sub .lk,.sh2-sub b{color:#f8dc94;font-weight:600}
.sh2-pages{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.sh2-cols{display:grid;grid-template-columns:minmax(0,340fr) minmax(0,470fr) minmax(0,330fr);gap:16px;flex:1;min-height:0}
.sh2-col{display:flex;flex-direction:column;gap:18px;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 4px 4px 2px}
/* (v0.80) a pixel scroll bar where a column holds more than it shows: a slate groove, a brass thumb with a bevel */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#0e1413;box-shadow:inset 3px 0 0 #070a09}
::-webkit-scrollbar-thumb{background:#a8803e;border:3px solid #0b0a08;box-shadow:inset 3px 3px 0 #e0b868,inset -3px -3px 0 #6a4a1e;min-height:36px}
::-webkit-scrollbar-thumb:hover{background:#c8983e}
::-webkit-scrollbar-button,::-webkit-scrollbar-corner{display:none}
.sh2-col.mid{gap:12px}
.sh2-parch{position:relative;border:18px solid;border-image:url(../../../assets/ui2/parch.png) 6 fill/18px;flex:none}
.sh2-parch>.in{margin:-8px -6px}
.sh2-parch.red{border-image-source:url(../../../assets/ui2/parch-red.png)}
.sh2-parch.pl{margin-top:14px}.sh2-parch.pl>.in{padding-top:8px}
.sh2-plaque{position:absolute;left:4px;top:-30px;height:30px;padding:0 18px;border-style:solid;border-width:0 15px;border-image:url(../../../assets/ui2/plaque.png) 0 5 fill/0 15px;font-weight:600;font-size:var(--t1);color:#f8dc94;display:flex;align-items:center;text-shadow:2px 2px 0 #1a110a;white-space:nowrap}
.sh2-head{font-size:var(--t1);line-height:var(--lh)}
.sh2 .lk{color:#8a3a1a;font-weight:600;cursor:pointer;border-bottom:3px dotted #b8804a}
.sh2 .lk:hover{color:#c4553a}
.sh2-slate .lk,.sh2-g .lk{color:#f8dc94;border-bottom-color:#8a6a3a}
.sh2-pic{border:24px solid;border-image:url(../../../assets/ui2/pframe.png) 8/24px;background:#0b0a08;position:relative;flex:none;align-self:center;max-width:100%}
.sh2-pic>canvas,.sh2-pic>img{display:block;margin:-9px;max-width:calc(100% + 18px);image-rendering:pixelated}
.sh2-pic.wide{align-self:stretch}.sh2-pic.wide>canvas{width:calc(100% + 18px)!important;height:auto!important}
.sh2-cap{position:absolute;left:-9px;bottom:-9px;background:#1a110a;color:#f1e8d0;padding:1px 8px;font-size:var(--t1);max-width:calc(100% + 18px)}
.sh2-ico{display:inline-block;width:36px;height:36px;background-size:36px 36px;background-repeat:no-repeat;flex:none;image-rendering:pixelated}
.sh2-ico.s{width:24px;height:24px;background-size:24px 24px;margin-top:-1px}
.sh2-row{display:flex;gap:8px;align-items:flex-start;padding:3px 0}
.sh2-row+.sh2-row{border-top:3px dotted #b89a5e}
.sh2-parch.red .sh2-row+.sh2-row{border-top-color:#a8502e}
.sh2-k{width:104px;flex:none;color:#7a5a2a;font-weight:600}
.sh2-gauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:none}
.sh2-g{border:15px solid;border-image:url(../../../assets/ui/inset.png) 5 fill/15px;color:#e8dcc0;background:#121a18;background-clip:padding-box}
.sh2-g>.in{margin:-8px -6px}.sh2-g .top{display:flex;gap:8px;align-items:center}
.sh2-g .lab{font:400 8px var(--lab);letter-spacing:1px;color:#a8b09a;text-transform:uppercase;white-space:nowrap}
.sh2-g .v.long{font-size:var(--t1);line-height:var(--lh)}
.sh2-g .v{font-weight:600;font-size:var(--t2);line-height:36px;color:#f8dc94;text-shadow:2px 2px 0 #0b0a08;white-space:nowrap}
.sh2-g .n{font-size:var(--t1);color:#c8c0a8;line-height:var(--lh-tight);margin-top:4px}
.sh2-g .v.good,.sh2-good{color:#b4e08a}.sh2-g .v.bad,.sh2-bad{color:#ff9c84}
.sh2-bar{height:18px;border:6px solid;border-image:url(../../../assets/ui2/barframe.png) 3 fill/6px 9px;margin-top:5px}
.sh2-bar>i{display:block;height:100%;margin:-1px -3px;background:linear-gradient(#ffe9a8 0 3px,#e8b84a 3px 9px,#9a742a 9px);-webkit-mask:repeating-linear-gradient(90deg,#000 0 9px,transparent 9px 12px);mask:repeating-linear-gradient(90deg,#000 0 9px,transparent 9px 12px)}
.sh2-bar.good>i{background:linear-gradient(#c8f09a 0 3px,#8fc46a 3px 9px,#5e8f44 9px)}
.sh2-bar.bad>i{background:linear-gradient(#ffb09a 0 3px,#e0694f 3px 9px,#9a3a26 9px)}
.sh2-spark{display:block;margin-top:5px;width:100%;height:18px}
.sh2-stack{display:flex;height:24px;border:3px solid #1a110a}
.sh2-stack>i{display:block;height:100%;box-shadow:inset 0 3px 0 #ffffff44,inset 0 -3px 0 #00000033,inset -3px 0 0 #1a110a}
.sh2-leg{display:grid;grid-template-columns:1fr 1fr;gap:1px 10px;margin-top:6px}
.sh2-leg i{display:inline-block;width:12px;height:12px;border:3px solid #1a110a;margin-right:6px;vertical-align:-1px}
.sh2-chips{display:flex;flex-wrap:wrap;gap:6px}
.sh2-chip{padding:1px 8px 2px;border:3px solid #1a110a;background:#cdb882;box-shadow:inset 3px 3px 0 #e6d6a8,inset -3px -3px 0 #9a8452}
.sh2-chip.gold{background:#e8b84a;box-shadow:inset 3px 3px 0 #ffe9a8,inset -3px -3px 0 #9a742a}
.sh2-who{display:flex;gap:12px;align-items:center;padding:4px 0;cursor:default}
.sh2-who+.sh2-who{border-top:3px dotted #b89a5e}
.sh2-who b{font-weight:600;font-size:var(--t1);display:block}
.sh2-who .k-pic{flex:none}
.sh2-slate{border:15px solid;border-image:url(../../../assets/ui/inset.png) 5 fill/15px;background:#121a18;background-clip:padding-box;color:#e8dcc0;flex:none}
.sh2-slate>.in{margin:-6px -4px}
.sh2-sk{display:grid;grid-template-columns:86px 1fr 30px;gap:4px 10px;align-items:center}
.sh2-sk .sh2-bar{margin:0}.sh2-sk b{font-weight:600;font-size:var(--t1);color:#f8dc94;text-align:right}.sh2-sk .best{color:#f8dc94;font-weight:600}
.sh2-traits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:none}
.sh2-traits .in{font-size:var(--t1);line-height:var(--lh-tight)}.sh2-traits b{display:block;font-size:var(--t1);color:#8a3a1a}
.sh2-tbl{display:grid;grid-template-columns:1.3fr 1.4fr .8fr .8fr;gap:3px 10px;align-items:center}
.sh2-tbl .hd{font:400 8px var(--lab);letter-spacing:1px;color:#7a5a2a;text-transform:uppercase}
.sh2-tbl .sh2-bar{margin:0;height:16px}
.sh2-time{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding-top:16px;flex:none}
.sh2-time:before{content:'';position:absolute;left:0;right:0;top:3px;height:12px;background:#8a6a3a;border:3px solid #0b0a08;box-shadow:inset 0 3px 0 #c8a060}
.sh2-ev{position:relative;border:15px solid;border-image:url(../../../assets/ui2/parch.png) 6 fill/15px}
.sh2-ev:before{content:'';position:absolute;left:14px;top:-31px;width:12px;height:16px;background:#c8a060;border:3px solid #0b0a08;border-width:0 3px}
.sh2-ev>.in{margin:-8px -6px;font-size:var(--t1);line-height:var(--lh-tight);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}   /* (v0.80: three whole lines and an ellipsis, the rest on hover; was cut mid-line at 52 px) */
.sh2-ev b{font-weight:600;font-size:var(--t1);color:#8a3a1a;margin-right:6px}
.sh2-ev.bad{border-image-source:url(../../../assets/ui2/parch-red.png)}
/* older content: a slate page, flowing in columns */
.sh2-legacy{flex:1;min-height:0;border:15px solid;border-image:url(../../../assets/ui/inset.png) 5 fill/15px;background:#121a18;background-clip:padding-box;color:#e8dcc0;font-size:var(--t1);overflow:hidden;display:flex;gap:16px}
.sh2-legacy>.side{width:460px;flex:none;overflow-y:auto;}
.sh2-legacy>.side .c2-pic{position:relative;min-height:200px;margin-bottom:8px}
.sh2-legacy>.flow{flex:1;min-width:0;overflow-y:auto;column-width:380px;column-gap:22px;;padding-right:6px}
.sh2-legacy>.flow>*{break-inside:avoid}
.sh2-foot{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
@media (max-width:900px){.c2p.sh2{top:64px;height:calc(100vh - 124px)}.sh2-in{overflow-y:auto}.sh2-cols{display:flex;flex-direction:column;flex:none}.sh2-col{overflow:visible}.sh2-in{padding-top:40px}.sh2-ribbon{font-size:var(--t1);min-width:200px;height:54px;top:-36px}.sh2-time{grid-template-columns:1fr 1fr}.sh2-sub{padding:0;margin:0}.sh2-legacy{flex-direction:column;overflow-y:auto;flex:none}.sh2-legacy>.side{width:auto;overflow:visible}.sh2-legacy>.flow{overflow:visible}.sh2-gauges{grid-template-columns:1fr 1fr}}
.sh2-badc{color:#a8321a;font-weight:600}
.sh2 .k-coin{flex:none}
.sh2-parch .lk,.sh2-ev .lk,.sh2-ribbon .lk{color:#8a3a1a!important;border-bottom-color:#b8804a!important}
.sh2-ribbon .lk{color:#2a1608!important;border:0}
.sh2-sub .lk{color:#f8dc94!important}
@media (max-width:900px){.sh2-sub{margin:0}}
/* (v0.61) THE OLDER PAGES ON PARCHMENT. Every page that has no summary of its own yet (a faith, a market, a war, a
   house, a band, an animal, a ruin) and every older tab is laid on the same parchment as the summaries, in ink. */
.sh2-legacy{border:18px solid;border-image:url(../../../assets/ui2/parch.png) 6 fill/18px;background:none;color:#2a1c0e;font-size:var(--t1)}
.sh2-legacy *{text-shadow:none!important}
.sh2-legacy .c2-body *:not(.lk):not(.good):not(.bad):not(.warn):not(canvas):not(.nt-b):not(.nt-n):not(.en-tab):not(.en-h):not(.en-find):not(.en-bad):not(.k-fig *):not(.c2-pic *):not(.c2-gauge *){color:inherit!important}
.sh2-legacy .c2-body{color:#2a1c0e}
.sh2-legacy .c2-sec{padding:6px 4px 8px}
.sh2-legacy .c2-sec h4{font:600 var(--t1) var(--px)!important;letter-spacing:1px;text-transform:none;color:#7a3a14!important;border-bottom:2px solid #b8804a;padding-bottom:3px}
.sh2-legacy .c2-sec h4:after{display:none}
.sh2-legacy .c2-chip{background:#5a3c1414;border:2px solid #c2a070}
.sh2-legacy .c2-chip .k,.sh2-legacy .c2-note,.sh2-legacy .c2-row .d{color:#6a5236!important;font-size:var(--t1)}
.sh2-legacy .c2-row{border-bottom:2px solid #d2b684}
.sh2-legacy .lk{color:#8a3a1a!important;border-bottom-color:#b8804a!important}
.sh2-legacy .good{color:#2f6a2a!important}.sh2-legacy .bad{color:#9a2a1a!important}.sh2-legacy .warn{color:#8a5a10!important}
.sh2-legacy>.flow{}
.sh2-legacy>.side .c2-num{background:#16201e;border:3px solid #0b0a08;box-shadow:inset 2px 2px 0 #2c3a36}
.sh2-legacy>.side .c2-num b{color:#f0e4c4;font-size:var(--t1)}.sh2-legacy>.side .c2-num span{color:#b8a888}
.sh2-legacy .c2-body .c2-r,.sh2-legacy .c2-body .c2-pl,.sh2-legacy .c2-body .c2-tr,.sh2-legacy .c2-body .c2-trait,.sh2-legacy .c2-body .c2-slot.empty{background:#5a3c1414!important;border:2px solid #c2a070}
.sh2-legacy .c2-body .c2-gauge *{color:#f0e4c4!important}
/* (v0.80) every older dark part laid on parchment gets a parchment skin: chips and tags as raised paper, troubles on
   red paper, the people at work keep their dark picture tiles but with light labels. (They were dark on dark.) */
.sh2-legacy .c2-tg,.sh2-legacy .k-chip,.sh2-legacy .k-badge,.sh2-legacy .k-trait,.sh2-legacy .k-bld,.sh2-legacy .c2-slot,.sh2-legacy .c2-era span,.sh2-legacy .c2-tag{background:#f4e6c2!important;border:2px solid #b8925a!important;box-shadow:inset -2px -2px 0 #dcc28e;color:#2a1c0e!important}
.sh2-legacy .c2-era span.on{background:#e0b452!important;border-color:#8a6a2a!important}.sh2-legacy .c2-era span.done{background:#d8c28e!important}
.sh2-legacy .k-trouble,.sh2-legacy .k-moment{background:#f0c8b0!important;border:2px solid #a8502e!important;border-left-width:6px!important;color:#3a160a!important}
.sh2-legacy .k-trouble *,.sh2-legacy .k-moment *{color:#3a160a!important}
.sh2-legacy .k-fig{background:#16201e!important;border:3px solid #0b0a08!important;box-shadow:inset 2px 2px 0 #2c3a36}
.sh2-legacy .k-fig *{color:#f0e4c4!important}
.sh2-legacy .k-meter-bar,.sh2-legacy .c2-bar,.sh2-legacy .c2-ws,.sh2-legacy .k-rung i{background:#6a5236!important;box-shadow:inset 2px 2px 0 #3a2a18}
.sh2-legacy .k-pips-p i{background:#d8c28e!important;border:1px solid #8a6a3a}
/* buttons inside the parchment (show more, open, and the old card buttons): raised paper, ink letters */
body.shell .c2p .sh2-legacy button:not(.en-tab),body.shell .c2p .sh2-legacy .c2-b,body.shell .c2p .sh2-legacy .k-btn,body.shell .c2p .sh2-legacy .k-more{background:#e2c88e!important;border:3px solid #0b0a08!important;border-image:none!important;box-shadow:inset 3px 3px 0 #f6e4b4,inset -3px -3px 0 #a8884e!important;color:#2a1608!important;min-height:30px;padding:2px 10px!important;font:var(--t1)/var(--lh-tight) var(--px)!important}
body.shell .c2p .sh2-legacy button:not(.en-tab):hover,body.shell .c2p .sh2-legacy .k-more:hover{background:#f0d89e!important}
body.shell .c2p .sh2-legacy button:not(.en-tab):active{box-shadow:inset -3px -3px 0 #f6e4b4,inset 3px 3px 0 #a8884e!important;padding:3px 10px 1px!important}
body.shell .c2p .sh2-legacy button *{color:#2a1608!important}
.sh2-foot{color:#e8dcc0}
/* (v0.61) DOCKED: the sheet as a column down the right, so the map stays in view (the Side button; remembered). */
.c2p.sh2.dock{left:auto;right:8px;top:70px;width:min(470px,calc(100vw - 16px));height:calc(100vh - 132px);transform:translate(12px,0)}
.c2p.sh2.dock.up{transform:none}
.c2p.sh2.dock .sh2-in{overflow-y:auto;}
.c2p.sh2.dock .sh2-cols{display:flex;flex-direction:column;flex:none}
.c2p.sh2.dock .sh2-col{overflow:visible}
.c2p.sh2.dock .sh2-ribbon{font-size:var(--t1);min-width:180px;height:50px;top:-34px}
.c2p.sh2.dock .sh2-btns{position:static;justify-content:flex-end;margin-top:-4px}
.c2p.sh2.dock .sh2-time{grid-template-columns:1fr 1fr}
.c2p.sh2.dock .sh2-legacy{flex-direction:column;overflow:visible;flex:none}
.c2p.sh2.dock .sh2-legacy>.side{width:auto;overflow:visible}
.c2p.sh2.dock .sh2-legacy>.flow{overflow:visible;column-width:auto}
.c2p.sh2.dock .sh2-gauges{grid-template-columns:1fr 1fr}
@media (max-width:900px){.sh2-btns{position:static;justify-content:flex-end}.sh2-legacy>.flow{column-width:auto}.sh2-dockbtn{display:none!important}}

/* narrow (docked, or a phone): the name sits inside the frame and nothing is squeezed */
.c2p.sh2.dock .sh2-in>*{flex-shrink:0}.c2p.sh2.dock .sh2-ribbon{position:relative;left:auto;top:auto;transform:none;align-self:center;height:auto;min-height:50px;min-width:0;max-width:100%;font-size:var(--t1);padding:6px 18px 14px;white-space:normal;text-align:center;line-height:var(--lh-tight)}.c2p.sh2.dock .sh2-in{padding-top:10px}.c2p.sh2.dock .sh2-sub{margin:0;padding:0}
@media (max-width:900px){.sh2-in>*{flex-shrink:0}.sh2-ribbon{position:relative;left:auto;top:auto;transform:none;align-self:center;height:auto;min-height:50px;min-width:0;max-width:100%;font-size:var(--t1);padding:6px 18px 14px;white-space:normal;text-align:center;line-height:var(--lh-tight)}.sh2-in{padding-top:10px}.sh2-sub{margin:0;padding:0}}
.c2p.sh2.dock .sh2-g .v{font-size:var(--t1)!important}
@media (max-width:900px){.sh2-g .v{font-size:var(--t1)!important}.sh2-g .lab{font-size:var(--t1)}}

/* (v0.64) a people's answers to the common needs: a small picture, the need, the answer */
.sh2-need{width:33px;height:33px;image-rendering:pixelated;flex:none;border:2px solid #0b0a08}
.sh2-ans{align-items:center;gap:8px}.sh2-ans .sh2-k{min-width:112px}

.sh2-next{margin-top:6px;padding-top:6px;border-top:2px dotted #b9a27a;line-height:var(--lh)}
.sh2-goodc{color:#3f6a2a}

.sh2-hasnote .sh2-k{border-bottom:1px dotted #8a7450;cursor:help}

/* (v0.75) the war and market pages */
.sh2-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sh2-two>.sh2-parch{margin:0}
.sh2-ws{position:relative;height:18px;background:#3a2c18;border:3px solid #6a4a22;margin:6px 0 2px}
.sh2-ws>i{position:absolute;top:0;bottom:0}
.sh2-ws>b{position:absolute;left:50%;top:-3px;bottom:-3px;width:3px;background:#f0cc7a}
.sh2-wsl{display:flex;justify-content:space-between;font:400 8px var(--lab);letter-spacing:1px;text-transform:uppercase;color:#7a5a2a;margin-bottom:4px}
.sh2-bt{padding:5px 0}
.sh2-bt+.sh2-bt{border-top:3px dotted #b89a5e}
.sh2-why{font-style:italic;color:#6a3a1a}
.sh2-hasnote{cursor:help}
.sh2-tbl.rt{grid-template-columns:1.1fr 1.6fr 1.2fr .5fr}
.sh2-two .sh2-bar{margin:2px 0 4px}
/* (v0.76 audit) the older hero's badges on the dark panel: their words were dark on dark */
.sh2-legacy .k-badge .k-badge-w{color:#f1e8d0!important}
.sh2-legacy .k-badge .k-badge-l{color:#b8a888!important}
.sh2-legacy .k-badge.tn-bad .k-badge-w{color:#e8785a!important}
.sh2-legacy .k-badge.tn-good .k-badge-w{color:#9ad07a!important}
.sh2-legacy .k-badge.tn-watch .k-badge-w{color:#e8c05a!important}
/* (v0.80) skill pips: filled ones show again on paper, and are big enough to count */
.sh2-legacy .k-pips-p{gap:3px}
.sh2-legacy .k-pips-p i{width:10px;height:14px;background:#e8d4a4!important;border:2px solid #8a6a3a!important;box-shadow:none!important}
.sh2-legacy .k-pips-p i.on{background:#c88a2e!important;border-color:#5a3410!important;box-shadow:inset 0 -3px 0 #8a5a1a!important}
/* stance words beside a name: a small inked stamp, not a boxed-in word */
.sh2-legacy .k-tie-k{border:0!important;padding:0 6px!important;margin-left:4px;background:#e2d0a0!important;box-shadow:inset 0 -2px 0 #b89a62}
.sh2-legacy .k-tie-k.tn-good{color:#2e6a1e!important} .sh2-legacy .k-tie-k.tn-bad{color:#9a2a14!important} .sh2-legacy .k-tie-k.tn-plain{color:#5a4a30!important}
/* the buttons along the foot of a page: the same raised wooden button as the header ones */
body.shell .c2p.sh2 .sh2-foot .k-btn{height:36px;padding:0 8px!important;border:12px solid!important;border-image:url(../../../assets/ui/btn.png) 4 fill/12px!important;background:none!important;box-shadow:none!important;font:var(--t1)/var(--lh-tight) var(--px)!important;color:#e8dcc0!important;display:inline-flex;align-items:center}
body.shell .c2p.sh2 .sh2-foot .k-btn:hover{filter:brightness(1.15)}
body.shell .c2p.sh2 .sh2-foot .k-btn:active{transform:translateY(2px)}
body.shell .c2p .sh2-legacy .k-tie-k.tn-good{color:#2e6a1e!important} body.shell .c2p .sh2-legacy .k-tie-k.tn-bad{color:#9a2a14!important} body.shell .c2p .sh2-legacy .k-tie-k.tn-plain{color:#5a4a30!important}
body.shell .c2p .sh2-legacy .k-tie{border-bottom:2px solid #c8ae7a!important}
/* (v0.80) numbers in the book's tables sit right, so their digits line up for comparing */
.en-c.num{justify-content:flex-end;text-align:right;padding-right:14px!important;font-variant-numeric:tabular-nums}
/* (v0.80) one heading style on every page: the old cards' tiny capitals become the same headings as the rest */
body.shell .c2p .sh2-legacy .k-block-t{font:var(--t1)/var(--lh-tight) var(--px)!important;letter-spacing:0!important;text-transform:none!important;color:#2a1c0e!important;margin-bottom:6px}
body.shell .c2p .sh2-legacy .k-block-t::first-letter{text-transform:uppercase}
/* (v0.80) the name column of name/value rows fits its longest name instead of wrapping it */
body.shell .c2p .sh2-legacy .k-fact{grid-template-columns:max-content 1fr;column-gap:24px}
body.shell .c2p .sh2-legacy .k-facts{display:grid;grid-template-columns:max-content 1fr;column-gap:24px;row-gap:2px} body.shell .c2p .sh2-legacy .k-facts>.k-fact{display:contents}
body.shell .c2p .sh2-legacy .k-fact-k{white-space:nowrap}
/* (v0.89) the phone: a thinner frame, and the pages in one row that scrolls sideways instead of three rows of buttons */
@media (max-width:900px){.sh2-frame{border-width:12px;border-image-width:12px}.sh2-in{padding:30px 8px 8px;gap:8px}
  .sh2-pages{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;margin:0 -4px}.sh2-pages::-webkit-scrollbar{display:none}
  .sh2-pages .sh2-btn{flex:none}.sh2-tags{flex-wrap:wrap}}
/* (v0.89) the pages' two columns are laid out by panel.js (filled in order), not by CSS columns */
.sh2-legacy>.flow{column-width:auto;columns:auto}
.sh2-legacy>.flow.two{display:flex;gap:22px;align-items:flex-start} .sh2-legacy>.flow.two>.fc{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:inherit}
.sh2-legacy>.flow.two>.fc{gap:10px}
.sh2-legacy .k-bld{height:auto!important;min-height:112px}
body:has(.c2p.sh2:not([hidden]):not(.dock)) .mk{display:none}
/* (v0.93) the town's first page: the ruler's plate, what its people know */
.sh2-ruler{display:flex;gap:12px;align-items:flex-start}
.sh2-rpic{flex:none;border:3px solid #1a110a;box-shadow:inset 0 0 0 3px #c8a060;background:#2a3a2e;cursor:pointer;line-height:0}
.sh2-rpic canvas{display:block;image-rendering:pixelated}
.sh2-ruler .tx{display:flex;flex-direction:column;gap:3px;min-width:0}
.sh2-rname{font-weight:600;font-size:var(--t1);line-height:var(--lh)}
.sh2-rname .lk{font-size:var(--t1)}
.sh2-rtitle{color:#7a5a2a;font-weight:600}
.sh2-rplate .sh2-chips{margin-top:4px}
.sh2-dim{color:#7a6448}
.sh2-age .big{font-weight:600;font-size:var(--t1);color:#8a3a1a}
.sh2-legs{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px}
.sh2-legs>span:first-child{flex-basis:100%;font-weight:600}
.sh2-legs .ok{color:#3f6a2a}.sh2-legs .no{color:#a8321a}
.sh2-go{margin-top:8px;align-self:flex-start;display:inline-block;padding:2px 10px 3px;border:3px solid #1a110a;background:#e8b84a;box-shadow:inset 3px 3px 0 #ffe9a8,inset -3px -3px 0 #9a742a;font:600 var(--t1) var(--px);color:#2a1608;cursor:pointer}
.sh2-go:hover{filter:brightness(1.1)}.sh2-go:after{content:' \203A'}
.sh2-ansgrid{display:grid;grid-template-columns:1fr;gap:0}
.sh2-ansgrid .sh2-ans .sh2-k{min-width:0;width:auto;flex:0 0 120px}
.c2-tg.own{background:#5a4210;border-color:#c8a040;color:#ffe6a0}
.c2-ans{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px}
.sh2-btnrow{display:flex;flex-wrap:wrap;gap:6px}
