/* The Works' tabs, charter plaque and Boardroom (js/works/works-board.js). Potion green is charters (what's earned and
   kept), brass the bylaws, magenta the money. One column on a phone; every button at least 44px. */
.wktabs { display: flex; gap: 6px; margin: 8px 0 4px; padding: 4px; border: 3px solid var(--wk-ink, #0a0612); border-radius: 12px; background: #0f1014; width: max-content; max-width: 100%; }
.wktabs button { position: relative; min-height: 44px; padding: 0 16px; border: 2px solid transparent; border-radius: 9px; background: none; color: #cfc6b4; font: 800 13px var(--f-ui); letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.wktabs button.on { color: #2a1604; background: linear-gradient(#ffe4a0, #d9971f); border-color: var(--wk-ink, #0a0612); box-shadow: 0 2px 0 var(--wk-ink, #0a0612); }
.wktabs button i { position: absolute; top: -7px; right: -6px; font: 800 11px/1 var(--f-ui); font-style: normal; color: var(--wk-ink, #0a0612); background: var(--wk-potion, #7aff2a); border: 2px solid var(--wk-ink, #0a0612); border-radius: 8px; padding: 2px 5px; }
.wktabs button i:empty { display: none; }
#works [hidden] { display: none !important; }

/* the charter plaque under the press */
.wkcharter { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; padding: 12px 14px; border: 3px solid var(--wk-ink, #0a0612); border-radius: 12px; background: linear-gradient(180deg, #2b2e37, #1f2128); box-shadow: 0 4px 0 var(--wk-ink, #0a0612); }
.wkseal { grid-row: span 2; width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; border: 2px solid var(--wk-ink, #0a0612); background: radial-gradient(circle at 38% 32%, #b5ff7a, #3f9a1a 60%, #1f5a0a); box-shadow: 0 0 20px rgba(122, 255, 42, 0.35), 0 3px 0 var(--wk-ink, #0a0612); }
.wkcrow { display: flex; align-items: center; gap: 10px; font: 600 12px/1.25 var(--f-ui); color: #cfc6b4; }
.wkcrow em { font-style: normal; color: var(--wk-paper, #f0ece0); font-weight: 700; }
.wkcn { font: 400 28px/1 Rye, Georgia, serif; color: var(--wk-potion, #7aff2a); text-shadow: 0 2px 0 #0a0612, 0 0 16px rgba(122, 255, 42, 0.45); }
.wkcbar { height: 10px; border-radius: 6px; border: 2px solid var(--wk-ink, #0a0612); background: #0c0d11; overflow: hidden; }
.wkcbar i { display: block; height: 100%; background: linear-gradient(180deg, #c8ff8a, #5fd21a 50%, #3f9a1a); }
.wkcharter small { grid-column: 1 / -1; font: 600 11.5px var(--f-ui); color: #a8a090; }
.wkrefound, .wkrefno { grid-column: 1 / -1; min-height: 46px; border: 2px solid var(--wk-ink, #0a0612); border-radius: 10px; font: 800 13px var(--f-ui); letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; color: #8d877b; background: linear-gradient(#3a3e48, #25282f); box-shadow: 0 3px 0 var(--wk-ink, #0a0612); }
.wkrefound.can { color: #0a0612; background: linear-gradient(#b5ff7a, #4fc21a); }
.wkrefound.sure { color: var(--wk-paper, #f0ece0); background: repeating-linear-gradient(135deg, #a8201a 0 12px, #0a0612 12px 18px); text-transform: none; }
.wkrefno { min-height: 40px; }

/* the Boardroom */
.wkboard { margin-top: 10px; }
.wbtop { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.wbrank, .wbfree { flex: 1 1 240px; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 3px solid var(--wk-ink, #0a0612); border-radius: 12px; background: linear-gradient(180deg, #2b2e37, #1f2128); box-shadow: 0 4px 0 var(--wk-ink, #0a0612); }
.wbrank b, .wbfree b { font: 400 28px/1 Rye, Georgia, serif; color: var(--wk-brass, #c8902a); text-shadow: 0 2px 0 #0a0612; }
.wbfree b { color: var(--wk-potion, #7aff2a); }
.wbrank small, .wbfree small { font: 600 12px var(--f-ui); color: #a8a090; }
.wbrespec { flex: 0 0 auto; min-height: 48px; padding: 0 16px; align-self: center; border: 2px solid var(--wk-ink, #0a0612); border-radius: 10px; font: 800 13px var(--f-ui); text-transform: uppercase; cursor: pointer; color: #0a0612; background: linear-gradient(#a6f6ff, #2ae0ff); box-shadow: 0 3px 0 var(--wk-ink, #0a0612); }
.wbladder { display: flex; gap: 4px; margin: 14px 0; overflow-x: auto; padding-bottom: 4px; }
.wbstep { flex: 1 0 86px; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border: 2px solid var(--wk-ink, #0a0612); border-radius: 8px; background: #16171c; color: #6d675b; }
.wbstep b { font: 400 12px/1.1 Rye, Georgia, serif; white-space: nowrap; }
.wbstep small { font: 700 10px var(--f-ui); }
.wbstep.on { color: #cfc6b4; background: #24262e; }
.wbstep.me { color: #2a1604; background: linear-gradient(#ffe4a0, #d9971f); box-shadow: 0 0 14px rgba(255, 154, 42, 0.45); }
.wbgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wbwing { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wbwing h4 { margin: 0; font: 400 18px/1 Rye, Georgia, serif; color: var(--wk-brass, #c8902a); }
.wbylaw { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 76px; padding: 8px 10px; text-align: left; cursor: pointer; border: 2px solid var(--wk-ink, #0a0612); border-radius: 10px; color: var(--wk-paper, #f0ece0); background: linear-gradient(180deg, #2b2e37, #1f2128); box-shadow: 0 3px 0 var(--wk-ink, #0a0612); font-family: var(--f-ui); }
.wbylaw b { font: 800 13px var(--f-ui); }
.wbylaw span { font: 600 11.5px/1.3 var(--f-ui); color: #b8b0a0; }
.wbylaw em { font: 800 10.5px var(--f-ui); font-style: normal; letter-spacing: 0.6px; text-transform: uppercase; color: #8d877b; margin-top: auto; }
.wbylaw.open { box-shadow: inset 0 0 0 2px rgba(242, 182, 50, 0.6), 0 3px 0 var(--wk-ink, #0a0612); }
.wbylaw.open em { color: #ffd27a; }
.wbylaw.held { cursor: default; background: linear-gradient(180deg, #2f4a2a, #1f2f1c); }
.wbylaw.held em { color: var(--wk-potion, #7aff2a); }
.wbylaw.shut { opacity: 0.6; }
.wbylaw.pick::after { content: "PICK ONE"; position: absolute; top: -8px; right: 6px; font: 800 9px/1 var(--f-ui); letter-spacing: 1px; color: #0a0612; background: var(--wk-magenta, #ff3ac0); border: 2px solid #0a0612; border-radius: 6px; padding: 2px 4px; }
.wbdiv { margin-top: 12px; width: 100%; min-height: 60px; }

@media (max-width: 719px) {
  .wktabs { width: 100%; gap: 3px; } .wktabs button { flex: 1 1 0; min-width: 0; padding: 0 2px; font-size: 10px; letter-spacing: 0; white-space: normal; line-height: 1.1; } .wktabs button .gi-e { display: none; }
  .wkcharter { order: 2; }
  .wbgrid { grid-template-columns: minmax(0, 1fr); }
  .wbrank b, .wbfree b { font-size: 22px; }
}
