/* The Idle Mafia Game wiki's pages (afkmacro.com/idlemafia/wiki/), on top of site.css. Made by tools\WikiPages.py. */
.whead { text-align: center; padding: 30px 0 10px; }
.kicker { margin: 0; font: 400 20px/1 var(--game); letter-spacing: .5px; color: var(--gold); }
.wh1 { margin: 8px 0 22px; font: 400 clamp(48px, 8vw, 84px)/1 var(--game); letter-spacing: 1px; color: var(--gold-hi);
  -webkit-text-stroke: 8px #000; paint-order: stroke fill; transform: rotate(-2deg); }
.wtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wtab { padding: 10px 18px 11px; border: 3px solid #000; border-radius: 12px; background: #0f0f10; box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 #000;
  font: 400 19px/1 var(--game); color: var(--gold-hi); }
.wtab.on { color: var(--on-gold); background: linear-gradient(180deg, #f6e3a0, #d4af37 60%, #ad8a2a); }
.sec.first { padding-top: 34px; padding-bottom: 40px; }
.lead { max-width: 46em; margin: 0 auto; text-align: center; font-size: 18px; color: var(--text2); text-wrap: balance; }
.lead b, .wsub b { color: var(--text); font-weight: 800; }

.wpanel { padding: 52px 30px 26px; }
.wsub { max-width: 46em; margin: 16px auto 0; text-align: center; font-size: 16px; color: var(--text2); text-wrap: balance; }
.tscroll { overflow-x: auto; }
.wt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wt.two, .wt.one { max-width: 440px; margin: 0 auto; }
.wt th { padding: 0 10px 10px; font-size: 13px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; text-align: right; white-space: nowrap; }
.wt td { padding: 10px 10px; border-top: 2px solid #232326; text-align: right; font: 400 19px/1.2 var(--game); color: var(--gold-hi); white-space: nowrap; }
.wt th:first-child, .wt td:first-child { text-align: left; }
.wt td:first-child { font: 700 17px/1.3 var(--body); color: var(--text); white-space: normal; }
.wt.ops td:last-child { font: 600 15px/1.3 var(--body); color: var(--text2); white-space: normal; text-align: left; }
.wt.ops th:last-child { text-align: left; }
.gold { color: var(--gold); }
.tier { margin: 26px 0 8px; font: 400 22px/1 var(--game); color: var(--gold); }
.tier:first-child { margin-top: 0; }
.tier span { font: 700 15px/1 var(--body); color: var(--text3); margin-left: 8px; }

.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.facts div { padding: 14px 0; border-top: 2px solid #232326; }
.facts div:nth-of-type(-n+2) { border-top: 0; }
.facts dt { font: 400 21px/1.25 var(--game); color: var(--gold); }
.facts dd { margin: 2px 0 0; font-size: 16px; color: var(--text2); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 9px 16px 10px; border: 3px solid #000; border-radius: 12px; background: #0f0f10; box-shadow: 0 4px 0 #000; font: 400 19px/1 var(--game); }
.chips .r0 { color: #c9c9c9; } .chips .r1 { color: #7ebe5a; } .chips .r2 { color: #5a9be6; } .chips .r3 { color: #b07ce8; }
.chips .r4 { color: #f0a63c; } .chips .r5 { color: #f06fb4; } .chips .r6 { color: #f6e9c0; } .chips .r7 { color: #e5483c; }

.wcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wcard { display: flex; flex-direction: column; padding: 26px 24px 22px; color: var(--text); }
.wcard h2 { margin: 0 0 6px; font: 400 32px/1 var(--game); color: var(--gold-hi); }
.wcard p { margin: 0 0 18px; flex: 1; font-size: 16px; color: var(--text2); }
.wcard .go { align-self: flex-start; padding: 8px 18px 9px; border: 3px solid #000; border-radius: 12px; font: 400 18px/1 var(--game); color: var(--on-gold);
  background: linear-gradient(180deg, #f6e3a0, #d4af37 60%, #ad8a2a); box-shadow: 0 4px 0 #000; }
.wcard:hover .go { filter: brightness(1.08); }
.howto { margin: 0 auto; padding: 0; max-width: 52em; list-style: none; counter-reset: st; }
.howto li { counter-increment: st; position: relative; padding: 12px 0 12px 52px; border-top: 2px solid #232326; font-size: 17px; color: var(--text2); }
.howto li:first-child { border-top: 0; }
.howto li::before { content: counter(st); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 3px solid #000; border-radius: 50%; font: 400 18px/1 var(--game); color: var(--on-gold);
  background: linear-gradient(180deg, #f6e3a0, #d4af37 60%, #ad8a2a); box-shadow: 0 3px 0 #000; }
.howto b { color: var(--text); font-weight: 800; }
.dlist { border-top: 2px solid #232326; }
.dlist:first-child { border-top: 0; }
.dlist summary { cursor: pointer; padding: 14px 4px; font: 400 22px/1.2 var(--game); color: var(--gold-hi); list-style: none; }
.dlist summary::-webkit-details-marker { display: none; }
.dlist summary::before { content: "+"; display: inline-block; width: 26px; color: var(--gold); }
.dlist[open] summary::before { content: "\2212"; }
.dlist summary span { font: 700 15px/1 var(--body); color: var(--text3); margin-left: 8px; }
.dlist ol { margin: 0 0 16px; padding-left: 64px; columns: 3 14em; column-gap: 28px; font-size: 15px; color: var(--text2); }
.dlist li { break-inside: avoid; padding: 2px 0; }
.wnote { max-width: 40em; margin: 0 auto; text-align: center; font-size: 15px; color: var(--text3); }

@media (max-width: 860px) { .wcards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .wpanel { padding: 48px 14px 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-of-type(2) { border-top: 2px solid #232326; }
  .wt td { font-size: 16px; padding: 9px 6px; }
  .wt td:first-child { font-size: 15px; }
  .wt th { padding: 0 6px 8px; font-size: 11px; }
  .wtab { font-size: 16px; padding: 8px 12px 9px; }
}
/* the smallest phones: tables fit without scrolling sideways (headers may take two lines) */
@media (max-width: 420px) {
  .wpanel { padding-left: 10px; padding-right: 10px; }
  .wt td { font-size: 15px; padding: 9px 4px; }
  .wt td:first-child { font-size: 14px; }
  .wt th { padding: 0 4px 8px; font-size: 10px; letter-spacing: .3px; white-space: normal; }
}
/* phones: no table scrolls sideways. Text cells wrap; the operations table (5 columns) puts its notes on a line under each row */
@media (max-width: 600px) {
  .wt td { white-space: normal; }
  .wt.ops:not(:has(th:nth-child(6))) tr { display: grid; grid-template-columns: minmax(0, 1fr) 58px 64px 54px; align-items: baseline; }
  .wt.ops th { white-space: normal; }
  .wt.ops:not(:has(th:nth-child(6))) th:last-child { display: none; }
  .wt.ops:not(:has(th:nth-child(6))) td:last-child { grid-column: 1 / -1; border-top: 0; padding-top: 0; font-size: 14px; }
}
/* the heists table (7 columns), up to 700 wide: the name on top, the five numbers under it, the payout on its own line */
@media (max-width: 700px) {
  .wt.ops:has(th:nth-child(7)) tr { display: grid; grid-template-columns: .8fr 1.5fr .9fr .8fr 1fr; align-items: baseline; }
  .wt.ops:has(th:nth-child(7)) :is(th, td) { text-align: left; white-space: normal; }
  .wt.ops:has(th:nth-child(7)) :is(th, td):first-child { grid-column: 1 / -1; }
  .wt.ops:has(th:nth-child(7)) th:first-child, .wt.ops:has(th:nth-child(7)) th:last-child { display: none; }
  .wt.ops:has(th:nth-child(7)) td:not(:first-child) { border-top: 0; padding-top: 2px; }
  .wt.ops:has(th:nth-child(7)) td:last-child { grid-column: 1 / -1; font: 600 14px/1.3 var(--body); color: var(--text2); }
}
@media (max-width: 420px) {
  .wt th { font-size: 9px; letter-spacing: 0; }
  .wt td { padding-left: 3px; padding-right: 3px; }
}
@media (max-width: 360px) {
  .wpanel { padding-left: 6px; padding-right: 6px; }
  .wt td { font-size: 14px; }
  .wt td:first-child { font-size: 13px; hyphens: auto; overflow-wrap: break-word; }
}
