/* The market view: the serious read of an item and a house. A sibling of the Auction House page (page.html): its faces,
   its gold, its coins, flattened into a dense trader's terminal. Every chart is hand-drawn SVG. Read only.
   Prices here are only what things are listed for. The history page (history.html) uses this sheet too. */

/* The faces (QT Friz Quad, Archivo Narrow) are header.css's alone, which every page links (11-15: a copy here blinked the
   text on a page change). No page loads anything from another host but the item icons, which are Blizzard's (11-10). */
:root {
  --serif: "QT Friz Quad", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --num: "Arial Narrow", "Archivo Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  /* Copper is the site's color (David 11-11, 12:06): headers, edges, active tabs, links, focus rings. The three tones come from the
     logo coin (img/coin-*.webp: its lit rim, its face, its deep edge); one edit here retunes every page. --cu-hi is the
     only one text uses (7.7:1 on the top of a box, more lower down); --cu and --cu-lo are for edges and marks. */
  --cu-hi: #fda455; --cu: #cf6729; --cu-lo: #6d2506;
  --cu-text: #ffc896;   /* text on the red button (5:1 at its lightest) */
  --gold: #ffd100;      /* the game's gold: coin icons, money and the chart marks that mean money; never an accent */
  /* the boxes (Forever's newer panels, David 11:10): a soft fade from warm brown-grey to near black, a thin bevel */
  --box-top: #2a241e; --box-bot: #0d0b09; --bevel: #463c33;
  --wm: .08;            /* Mara's scale, the watermark low in a page's main box */
  --ink: #efe6d2; --ink2: #c9b88f; --muted: #9a917b; --faint: #5c5446;   /* --muted: 4.9:1 on the top of a box */
  --well: #0c0a07; --rule: #2a2219; --rule2: #3b3125; --grid: #211b14;
  /* chart marks: the line trios were checked for colorblind separation and contrast on --well */
  --c-min: #bb8714; --c-med: #5590d4; --c-mkt: #3e9e74; --c-sup: #b59a6a; --c-n: #8f9bb0; --c-ran: #8a8070;
  --c-ally: #5590d4; --c-horde: #c4563f; --c-bw: #3e9e74;
  --tl1: #5e4a22; --tl2: #8a6620; --tl3: #b5871f; --tl4: #e6b84a;   /* time left, short to very long */
  --up: #7cc47f; --down: #e27a62;
  --poor: #9d9d9d; --common: #ffffff; --uncommon: #1eff00; --rare: #0070dd; --epic: #a335ee; --legendary: #ff8000; --unknown: #858585;
  color-scheme: dark;
}
:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: 1px; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font: 14px/1.3 var(--serif); color: var(--ink);
  background-color: #0a0806;
  background-image: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(110, 70, 25, .16), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #15110d 0%, #0b0907 45%, #070605 100%);
  background-attachment: fixed;
}
button, input, select { font: inherit; color: inherit; }

/* (the site's header, on every page, is header.css's: the menu, the ticker and the donate strip, 11-11) */
/* a page's own house picker, right under the header (the movers page, the market view, an item's page) */
.pagebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; max-width: 1400px; margin: 0 auto; padding: 10px 16px 0; }

/* ---------- the companion's Connect page (worker/src/pair.html): a one-step page outside the site's menu keeps a
   small bar of its own ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 8px 16px 9px; background: linear-gradient(180deg, #2b2621 0%, #1c1915 60%, #151210 100%);
  border-bottom: 1px solid var(--cu);   /* the frame's thin copper edge */
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, .09), 0 1px 0 #000, 0 6px 18px rgba(0, 0, 0, .55);
}
@media (max-width: 760px) { .top { position: relative; } }   /* on a phone the bar wraps to four lines: let it scroll away */
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; letter-spacing: .5px; color: var(--cu-hi);
  text-shadow: 0 2px 0 #000, 0 0 6px #000; white-space: nowrap; }
.brand .logo { flex: none; width: 34px; height: 34px; margin: -3px 0; filter: drop-shadow(0 1px 2px #000); }
.brand small { font-size: 12px; font-variant: normal; letter-spacing: 0; color: var(--ink2); text-shadow: 0 1px 0 #000; margin-left: 4px; }
.lab { font-size: 13px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; margin-right: 7px; }
.hp { display: flex; align-items: center; }
.box {
  height: 26px; padding: 2px 8px; border-radius: 4px; font: 14px var(--serif); color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(16, 14, 12, .85));
  border: 1px solid #6a6155; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #000; outline: none;
}
.box:focus { border-color: var(--cu-hi); box-shadow: inset 0 1px 3px #000, 0 0 0 1px #000, 0 0 6px rgba(253, 164, 85, .35); }
.dd select { width: 250px; max-width: 70vw; }   /* a picker: its looks and its list are every page's (header.css, dd.js, 11-13) */
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .box { width: 100%; }
.when { font-size: 12.5px; color: #d9cfb8; text-shadow: 0 1px 0 #000; }
.when b { font-weight: normal; color: #fff; }
.btn {
  display: inline-flex; align-items: center; height: 28px; padding: 0 18px 2px; margin-left: auto;   /* the serif sits low in its line: 2px under lifts it to the middle */ cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 14px var(--serif); color: var(--cu-text); text-shadow: 0 1px 0 #000, 0 0 2px #000;
  background: linear-gradient(180deg, #a32211 0%, #861208 48%, #5e0a04 52%, #741008 100%);   /* the game's red button (--cu-text 5:1 at its lightest) */
  border: 1px solid #000; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(253, 164, 85, .55), inset 0 2px 0 rgba(255, 210, 170, .28), 0 1px 2px rgba(0, 0, 0, .8);
}
.btn:hover { filter: brightness(1.15); color: #fff; }
.btn:active { filter: brightness(.9); transform: translateY(1px); }

/* the search dropdown */
.drop { position: absolute; left: 0; top: calc(100% + 4px); width: max(100%, 400px); max-width: calc(100vw - 32px); z-index: 30; padding: 3px 0;
  background: #0d0b08; border: 1px solid var(--bevel); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 10px 24px rgba(0, 0, 0, .8); }
.opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; height: 30px; padding: 0 9px; cursor: pointer; }
a.opt, a.opt:hover { color: inherit; text-decoration: none; }   /* the search's rows are links, for a middle click */
.opt.act, .opt:hover { background: rgba(253, 164, 85, .1); }
.opt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .n { font: 13px var(--num); color: var(--ink2); text-align: right; }
.opt .n.m2 { min-width: 78px; }
.more { padding: 6px 10px; font-size: 12px; color: var(--muted); }
/* an item nobody has up in the house now (suggest.js, 11-21: the search shows every item): quieter, and "None up right
   now" with when it was last up there at what price, in the numbers' place */
.opt.unl .slot, .opt.unl .nm { opacity: .5; }
.opt .nup { grid-column: 3 / -1; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; font: 11.5px/1.2 var(--num); color: var(--muted); white-space: nowrap; }
.opt .nup .m, .opt .nup .none { font-size: 11.5px; }

/* ---------- the strip under the bar ---------- */
.strip { padding: 9px 16px 6px; font-size: 12.5px; color: var(--muted); }
.strip b { font-weight: normal; color: var(--ink2); }
.strip.low { max-width: 1720px; margin: 0 auto; padding: 18px 16px 4px; text-align: center; }   /* the prices line at the foot of the page, above the credit (David 11-12: "down at the bottom") */

/* ---------- layout ---------- */
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 490px; gap: 12px; align-items: start;
  max-width: 1720px; margin: 0 auto; padding: 4px 16px 28px; }
@media (max-width: 1180px) { .wrap { grid-template-columns: minmax(0, 1fr); } }
/* A box: every block on a page sits in its own (Forever's newer panels, David 11-11): the fade from warm brown-grey to
   near black, a thin dark bevel (dark outside, a 1 px light edge, an inner shadow), and its header centered on top. */
.panel, .card, .hero, .tonight {
  position: relative; min-width: 0; padding: 12px 14px 14px; border-radius: 4px; isolation: isolate;
  background: linear-gradient(180deg, var(--box-top) 0%, var(--box-bot) 100%);
  border: 1px solid var(--bevel);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 3px 10px rgba(0, 0, 0, .55), 0 8px 22px rgba(0, 0, 0, .45);
}
/* Mara's scale, faint and low in a page's main box (.wm), behind its content: anything opaque covers it */
.wm::after { content: ""; position: absolute; right: 4%; bottom: 10px; z-index: -1; width: min(30%, 200px); aspect-ratio: 480 / 413; pointer-events: none;
  max-height: calc(100% - 80px);   /* clear of the box's header and its line under it */
  background: url("img/scale-480.png") no-repeat center bottom / contain; opacity: var(--wm); }
.wm::after { background-image: image-set(url("img/scale-480.webp") type("image/webp"), url("img/scale-480.png") type("image/png")); }
@media (max-width: 760px) { .wm::after { display: none; } }   /* on a phone a box's words run its full width: no room beside them */
.ptitle { position: relative; margin: 0 0 8px; font-weight: normal; font-size: 16px; text-align: center; color: var(--cu-hi); letter-spacing: .5px; text-shadow: 0 1px 0 #000; }
.ptitle span { font-variant: normal; letter-spacing: 0; font-size: 12.5px; color: var(--ink2); margin-left: 6px; }
.busy { opacity: .6; transition: opacity .15s; }
.empty { padding: 34px 12px; text-align: center; color: var(--ink2); }

/* ---------- the item ---------- */
/* its header: a round icon frame and the name large, on a soft gradient band (Forever's AH item header) */
.ihead { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.ipage .ihead, #itemp .ihead { padding: 12px 16px; border-radius: 4px; border: 1px solid var(--bevel);
  background: linear-gradient(180deg, #3a322a 0%, #231e19 55%, #16130f 100%);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 1px 0 rgba(255, 236, 214, .12), inset 0 -8px 16px rgba(0, 0, 0, .35); }
.ihead .slot.big { width: 58px; height: 58px; border-radius: 50%; border: 2px solid #000;
  box-shadow: 0 0 0 2px currentColor, 0 0 0 3px #000, inset 0 0 8px #000, 0 3px 8px rgba(0, 0, 0, .7); }   /* the ring takes the item's quality color (David 11-11): its q-* class sets color */
.ihead .slot.big img { border-radius: 50%; }
.ipage .iname { font-size: 26px; }
/* the market lean (lean.js, David 11-14, his colors): Buyer's green, Seller's blue, Balanced orange; a small badge at the
   right of the header box, its why in small grey lines under it, the numbers on hover. On a phone it takes its own line. */
.ihead .lean { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; cursor: help; }
.ihead .lean + .tochart, .ihead .tochart + .lean { margin-left: 0; }
.lean { --lc: var(--cu-hi); }
.l-buyer { --lc: #6fd26a; } .l-seller { --lc: #63a6f0; } .l-balanced { --lc: #f39a3c; }
.lean .lb { padding: 2px 10px 3px; border: 1px solid var(--lc); border-radius: 11px; font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--lc);
  background: color-mix(in srgb, var(--lc) 13%, rgba(0, 0, 0, .35)); text-shadow: 0 1px 0 #000; }
.lean .lw { max-width: 400px; font: 11.5px/1.25 var(--num); color: var(--muted); }
/* a list row's badge (the market view's lists): small, under the row's name */
.t td.nm .leanb { margin-top: 2px; }
.leanb { display: inline-block; padding: 0 6px 1px; border: 1px solid var(--lc); border-radius: 8px; font: 11px/14px var(--num); white-space: nowrap; vertical-align: 1px; color: var(--lc);
  background: color-mix(in srgb, var(--lc) 12%, transparent); cursor: help; }
@media (max-width: 760px) {
  .ipage .ihead, #itemp .ihead { flex-wrap: wrap; }
  .ihead .lean { flex: 1 1 100%; margin-left: 0; align-items: flex-start; text-align: left; }
}
/* "Looted N times" (item.js, David 11-16: "in pretty italics or something", "something swooshy"): one quiet line at the
   right end of the Lowest buyout line (David 11-21: moved out of the header box's corner). It floats right before the
   lede, so the lede's text runs beside it. Palatino's own italic, the serif stack's next face (Friz Quad has no italic,
   and a slanted Friz isn't a swoosh), small, in the meta line's warm ink: copper is for what you click. On a phone it
   takes its own line. */
.looted { float: right; margin: 4px 0 0 16px; white-space: nowrap; color: var(--ink2);
  font: italic 15px/1.2 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: .3px; text-shadow: 0 1px 0 #000; cursor: help; }
@media (max-width: 760px) { .looted { float: none; margin: 4px 0 0; white-space: normal; } }
.tochart { flex: none; margin-left: auto; align-self: flex-start; font-size: 13px; color: var(--cu-hi); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule2); border-radius: 3px; padding: 2px 9px; text-shadow: 0 1px 0 #000; }   /* not .full: that's a card */
.tochart:hover { color: #fff; border-color: var(--cu); }
.slot { display: inline-block; flex: none; width: 32px; height: 32px; border-radius: 3px; overflow: hidden; vertical-align: middle;
  background: radial-gradient(circle at 50% 40%, #24211d 0%, #0d0b09 70%, #050403 100%);
  border: 1px solid #000; box-shadow: inset 0 0 0 1px #55493a, inset 0 0 7px #000, 0 0 0 1px #2c251b; }
.slot img { display: block; width: 100%; height: 100%; }
.slot.big { width: 44px; height: 44px; }
.slot.sm { width: 22px; height: 22px; border-radius: 2px; }
.iname { font-size: 21px; line-height: 1.15; text-shadow: 0 1px 0 #000, 0 0 2px #000; overflow-wrap: anywhere; }
.imeta { margin-top: 2px; font-size: 12.5px; color: var(--ink2); }
.imeta .g { color: var(--muted); }
.imeta .cpid { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px; margin-left: 3px; padding: 0;
  vertical-align: -4px; border: 0; border-radius: 3px; color: var(--muted); background: none; cursor: pointer; }
.imeta .cpid:hover, .imeta .cpid:focus-visible { color: var(--cu-hi, #fda455); background: rgba(253, 164, 85, .1); }
.imeta .cpok { margin-left: 4px; color: var(--cu-hi, #fda455); font-size: 11.5px; }
.imeta { position: relative; }
.imeta .cpmenu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: flex; flex-direction: column; width: max-content; min-width: 220px; max-width: min(320px, 90vw);
  padding: 4px; border: 1px solid var(--bevel); border-radius: 4px; background: linear-gradient(180deg, var(--box-top), var(--box-bot)); box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.imeta .cpmenu button { display: block; padding: 7px 10px; border: 0; border-radius: 3px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.imeta .cpmenu button:hover, .imeta .cpmenu button:focus-visible { background: rgba(253, 164, 85, .12); color: var(--cu-hi, #fda455); outline: none; }
.imeta .cpmenu button span { color: var(--muted); margin-left: 4px; }
.imeta .cpmenu small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.3; white-space: normal; }
.imeta .cpok code { font-size: 11px; color: var(--ink); user-select: all; }
.q-POOR { color: var(--poor); } .q-COMMON { color: var(--common); } .q-UNCOMMON { color: var(--uncommon); }
.q-RARE { color: var(--rare); } .q-EPIC { color: var(--epic); } .q-LEGENDARY, .q-ARTIFACT, .q-HEIRLOOM { color: var(--legendary); }
.q-unknown { color: var(--unknown); }

/* the quote board: what it's going for now */
.quote { display: grid; grid-template-columns: 96px repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border-radius: 3px; overflow: hidden;
  background: var(--rule); border: 1px solid var(--bevel); box-shadow: 0 0 0 1px #000; }
.quote > div { background: linear-gradient(180deg, #17130f 0%, var(--well) 100%); padding: 6px 9px 7px; min-width: 0; }
.quote .rh { display: flex; flex-direction: column; justify-content: center; font-size: 12.5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.quote .rh span { font-size: 11px; color: var(--muted); text-shadow: none; }
.quote .wide { grid-column: span 6; display: flex; align-items: center; color: var(--ink2); font-size: 13px; }
.ql { font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qv { margin-top: 1px; font: 18px var(--num); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.qv .m { font-size: 18px; }

.qs { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .quote { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote .rh { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; }
  .quote .wide { grid-column: 1 / -1; }
  .qs { white-space: normal; line-height: 1.25; }   /* "asking now, cheapest 15%" in a third of a phone: two lines, not "ch..." */
}
.qnote { margin-top: 6px; font-size: 12px; color: var(--muted); }

.up { color: var(--up); } .down { color: var(--down); }

/* chart cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); grid-auto-flow: row dense; gap: 14px 14px; margin-top: 14px; }   /* dense: no hole where a card was stripped */
.card.full { grid-column: 1 / -1; }
.hero { margin-top: 14px; }
/* a box's header, centered on top of it; a chart's controls keep to the right on a wide screen */
.chead { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; text-align: center; }
.chead:has(.ctrls)::before { content: ""; flex: 1 1 0; }
.chead .ctrls { flex: 1 1 0; justify-content: flex-end; }
.ct { font-size: 15px; color: var(--cu-hi); letter-spacing: .4px; text-shadow: 0 1px 0 #000; }
.hero .ct { font-size: 17px; }
@media (max-width: 760px) {
  .chead:has(.ctrls)::before { display: none; }
  .chead .ctrls { flex: 1 1 100%; justify-content: center; }
}
.since { font: 11.5px var(--num); color: var(--muted); border: 1px solid var(--rule2); border-radius: 3px; padding: 0 5px; }
.cap { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.keys { display: flex; flex-wrap: wrap; gap: 3px 13px; margin: 0 0 5px; font-size: 12px; color: var(--ink2); }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key.off { color: var(--faint); }
.sw { display: inline-block; flex: none; width: 16px; height: 2px; border-radius: 1px; vertical-align: middle; }
.sw.min { background: var(--c-min); } .sw.med { background: var(--c-med); } .sw.mkt { background: var(--c-mkt); }
.sw.sup { background: var(--c-sup); } .sw.lst { background: var(--c-n); }
.sw.ma6 { background: var(--c-min); } .sw.ma24 { background: var(--c-mkt); }
.sw.vend { height: 0; border-top: 2px dashed var(--c-ran); background: none; }
.sw.box { width: 11px; height: 11px; border-radius: 2px; }
.sw.band { background: rgba(181, 154, 106, .3); }
.sw.out { background: rgba(187, 135, 20, .16); } .sw.inn { background: rgba(187, 135, 20, .38); }

.sw.vol { background: var(--c-sup); } .sw.vfill { background: rgba(201, 184, 143, .26); box-shadow: inset 0 1px 0 rgba(201, 184, 143, .7); }
.sw.cheap { background: rgba(187, 135, 20, .45); }
.sw.tl1 { background: var(--tl1); } .sw.tl2 { background: var(--tl2); } .sw.tl3 { background: var(--tl3); } .sw.tl4 { background: var(--tl4); }
.sw.ally { background: var(--c-ally); } .sw.horde { background: var(--c-horde); } .sw.bw { background: var(--c-bw); }
.seg { display: inline-flex; border: 1px solid #000; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule2); }
.seg button { height: 22px; padding: 0 10px; border: 0; border-left: 1px solid #000; cursor: pointer; font: 12.5px var(--num); color: var(--ink2);
  background: linear-gradient(180deg, #2c2419 0%, #1a150f 100%); }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: #fff; }
.seg button.on { color: #fff; background: linear-gradient(180deg, #8a4a24 0%, #5c2c12 55%, #44200c 100%); box-shadow: inset 0 0 0 1px var(--cu), inset 0 1px 0 rgba(255, 210, 170, .3); }
.ctrls { display: flex; gap: 10px; margin-left: auto; }
.chart { position: relative; isolation: isolate; background: var(--well); border: 1px solid #000; box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 8px rgba(0, 0, 0, .8); }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font: 11px var(--num); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .base, .chart .tick { stroke: var(--rule2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .sep { stroke: var(--rule2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.thin { stroke-width: 1.5; }
.chart .k-min { stroke: var(--c-min); } .chart .k-med { stroke: var(--c-med); } .chart .k-mkt { stroke: var(--c-mkt); }
.chart .k-qty { stroke: var(--c-sup); } .chart .k-n { stroke: var(--c-n); } .chart .k-p50 { stroke: var(--c-min); }
.chart .k-ma6 { stroke: var(--c-min); } .chart .k-ma24 { stroke: var(--c-mkt); } .chart .k-dos { stroke: var(--c-sup); }
.chart .k-ally { stroke: var(--c-ally); } .chart .k-horde { stroke: var(--c-horde); } .chart .k-bw { stroke: var(--c-bw); }
.chart .dot { stroke: var(--well); stroke-width: 2; }
.chart .dot.k-min, .chart .dot.k-p50, .chart .dot.k-ma6 { fill: var(--c-min); } .chart .dot.k-med { fill: var(--c-med); }
.chart .dot.k-mkt, .chart .dot.k-ma24 { fill: var(--c-mkt); } .chart .dot.k-qty, .chart .dot.k-dos { fill: var(--c-sup); } .chart .dot.k-n { fill: var(--c-n); }
.chart .dot.k-ally { fill: var(--c-ally); } .chart .dot.k-horde { fill: var(--c-horde); } .chart .dot.k-bw { fill: var(--c-bw); }
.chart .area { fill: var(--c-sup); fill-opacity: .12; stroke: none; }
.chart .band { fill: rgb(181, 154, 106); fill-opacity: .18; stroke: none; }
.chart .band.fb { fill-opacity: .08; }   /* before the spread was recorded: lowest to median, drawn lighter (11-12) */
.chart line.rmark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }   /* the item page's suspected market reset */
.chart text.rmark { fill: var(--muted); font-size: 10.5px; }
.tip .rmtip { margin-top: 6px; color: var(--cu-hi); }
.chart .b-out { fill: rgb(187, 135, 20); fill-opacity: .16; stroke: none; }
.chart .b-in { fill: rgb(187, 135, 20); fill-opacity: .38; stroke: none; }
.chart .vendor { stroke: var(--c-ran); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart text.vlab, .chart text.plab { fill: var(--ink2); }
.chart .guide { stroke: #8a6a52; stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
/* a missing copy (chart.js gapHatch, David 11-21: "missing should be red hatch marks very faint"): thin red diagonals at a
   low alpha, one color on any ground, under the lines */
.chart .gaph { stroke: rgb(226, 74, 51); stroke-opacity: .3; stroke-width: 1; fill: none; }
.chart .bar { fill: #bb8714; }

.chart .bar.min { fill: var(--c-min); } .chart .bar.mkt { fill: var(--c-mkt); }
.chart .bar.vol { fill: var(--c-sup); }
.chart .bar.cls { fill: #bb8714; }
/* the hero's listings (chart.js volBars): soft and filled with a brighter top edge, never an outline (David 11-14: "supply
   bars are congested"), on whole pixels */
.chart .vfill { fill: rgb(201, 184, 143); fill-opacity: .26; stroke: none; shape-rendering: crispEdges; }
.chart .vtop { fill: rgb(201, 184, 143); fill-opacity: .7; stroke: none; shape-rendering: crispEdges; }
.chart .stair { fill: none; stroke: var(--c-sup); stroke-width: 2; stroke-linejoin: round; }
.chart .stairfill { fill: var(--c-sup); fill-opacity: .1; }
.chart .cheap { fill: rgb(187, 135, 20); fill-opacity: .45; }
.chart .mark15 { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .tl1 { fill: var(--tl1); } .chart .tl2 { fill: var(--tl2); } .chart .tl3 { fill: var(--tl3); } .chart .tl4 { fill: var(--tl4); }
.chart text.on-dark { fill: #f1e9d8; } .chart text.on-light { fill: #1a1206; }
.chart .hband { fill: rgba(253, 164, 85, .07); }
.chart .here { fill: rgba(253, 164, 85, .07); }
.chart text.cap2 { fill: var(--ink2); }
.chart text.nod { fill: var(--faint); font-style: italic; }
.chart text.hrs { fill: var(--faint); font-size: 10px; }
.chart text.hl { fill: var(--cu-hi); }
.chart text.pane { fill: var(--ink2); font-size: 11px; paint-order: stroke; stroke: var(--well); stroke-width: 3px; stroke-linejoin: round; }   /* over the volume bars */
.chart text.spike { fill: var(--cu-hi); font-size: 11px; }   /* a band top past the scale: its price, at the top edge (chart.js) */
.cempty { display: flex; align-items: center; justify-content: center; padding: 0 20px; text-align: center; font-size: 13px; color: var(--ink2); }
.cfoot { margin-top: 4px; font-size: 11.5px; color: var(--muted); min-height: 0; }
.cfoot:empty { display: none; }

details.more2 { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 8px; }
details.more2 summary { cursor: pointer; font-size: 13px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
details.more2 summary span { color: var(--ink2); font-size: 12.5px; text-shadow: none; }
.scroll { max-height: 360px; overflow: auto; margin-top: 8px; border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }

/* ---------- tables (the lists and the table views) ---------- */
table.t { width: 100%; border-collapse: collapse; table-layout: fixed; }
/* column headers: small bevelled bars, as on the game's auction house */
.t th { position: sticky; top: 0; z-index: 1; padding: 5px 8px 4px; text-align: right; vertical-align: bottom; font-weight: normal; font-size: 12px; line-height: 1.15;
  color: var(--cu-hi); text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #37312a 0%, #231e19 55%, #1a1612 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, .13), inset -1px 0 0 #000, inset 0 -1px 0 #000; }
.t th.l { text-align: left; }

.t td { height: 30px; padding: 2px 8px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 14px var(--num); color: #fff; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.t td.ic { padding: 2px 0 2px 6px; text-align: left; }
.t td.nm { text-align: left; font: 14px var(--serif); text-shadow: 0 1px 0 #000; }
.t td.sp { padding: 2px 4px; }
.t td.sp svg { display: block; }
.t tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .022); }
.t tbody tr[data-id] { cursor: pointer; }
.t tbody tr[data-id]:hover { background: rgba(180, 205, 255, .09); }
.t tbody tr.on { background: rgba(253, 164, 85, .1); box-shadow: inset 2px 0 0 var(--cu-hi); }
.t tbody tr:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: -1px; }
.m { white-space: nowrap; font: 15px var(--serif); color: #fff; text-shadow: 0 1px 0 #000; font-variant-numeric: tabular-nums; }
/* A small coin seen at an angle, its edge showing underneath (David 11-12: the big discs were too big). In em, so it
   follows the number's size. */
.coin { display: inline-block; width: .64em; height: .46em; border-radius: 50%; margin: 0 .42em 0 .16em; vertical-align: .08em;
  transform: rotate(-14deg); box-shadow: inset 0 0 0 .06em rgba(255, 255, 255, .25), 0 .11em 0 var(--edge),
  0 0 0 .045em rgba(0, 0, 0, .85), 0 .17em .07em rgba(0, 0, 0, .8); }
.m .coin:last-child { margin-right: 0; }
.coin.g { --edge: #7a5106; background: radial-gradient(ellipse at 38% 30%, #fffbd0 0 12%, #f6cc35 40%, #c08914 75%, #8a5c08 100%); }
.coin.s { --edge: #5d646b; background: radial-gradient(ellipse at 38% 30%, #ffffff 0 12%, #dfe3e7 40%, #a2a9b0 75%, #6c737a 100%); }
.coin.c { --edge: #6e3210; background: radial-gradient(ellipse at 38% 30%, #ffe0c0 0 12%, #e08648 40%, #a9521f 75%, #7a3a14 100%); }
.none { color: #6f6a62; font-family: var(--num); }

/* the house panel and its lists */
.hsec { margin-top: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }   /* a row too long for a phone wraps, never scrolls the page (Your Adventures' six, 11-14) */
.tab { flex: 1; height: 30px; padding: 0 8px; cursor: pointer; font: 14px var(--serif); color: var(--cu-hi); text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #34302a 0%, #221e19 55%, #191511 100%); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, .14); transition: transform .2s, filter .2s; }
.tab:hover { color: #fff; filter: brightness(1.2); transform: translateY(-1px); }
.tab.on { color: #fff; background: linear-gradient(180deg, #6e3b1d 0%, #4a2410 55%, #36190a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .35), inset 0 0 0 1px var(--cu), 0 0 6px rgba(253, 164, 85, .2); }
.lnote { min-height: 34px; padding: 8px 2px 7px; font-size: 12px; color: var(--muted); }
.lnote b { font-weight: normal; color: var(--ink2); }
.lbox { border: 1px solid #000; background: var(--well); max-height: 820px; min-height: 200px; overflow: auto; box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }
@media (max-width: 1180px) { .lbox { max-height: none; } }

/* scrollbars like the game's: a copper knob on a dark groove */
.lbox::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.lbox::-webkit-scrollbar-track, .scroll::-webkit-scrollbar-track { background: linear-gradient(90deg, #050403, #15110c, #050403); }
.lbox::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { border-radius: 6px; border: 2px solid #0a0806;
  background: radial-gradient(circle at 40% 50%, #ffd2a8 0 8%, var(--cu) 30%, var(--cu-lo) 90%); }

/* ---------- the tooltip, as on the AH page ---------- */
.tip {
  position: fixed; z-index: 50; min-width: 210px; max-width: 320px; padding: 7px 10px 8px; pointer-events: none;
  font: 13px/1.35 var(--serif); color: #fff;
  background: rgba(6, 6, 14, .94); border: 1px solid rgba(205, 205, 205, .8); border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 6px 18px rgba(0, 0, 0, .6);
}
.tip .tt { font-size: 14px; color: var(--cu-hi); margin-bottom: 2px; }
.tip .ln { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.tip .ln > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #d9d2c2; }
.tip .v { font: 14px var(--num); }
.tip .small { font-size: 11.5px; color: #a9a9a9; }
.tip .gap { height: 5px; }

/* the attribution Blizzard's terms ask for, as on the AH page */
.credit { max-width: 900px; margin: 0 auto; padding: 0 16px 22px; font-size: 11.5px; line-height: 1.5; color: #8f8166; text-align: center; }   /* one short line on every page, muted gold (Mara, 11-12) */


/* ---------- the item page (pages.mjs, item.js) and the front page (front.html) ---------- */
a.brand { text-decoration: none; }
.hlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.hlinks .btn { margin-left: 0; padding: 0 12px; }
.iwrap { max-width: 1240px; margin: 0 auto; padding: 12px 16px 24px; }
/* the item page's window: charcoal with the thin copper edge (the boxes sit inside it) */
.ipage .iwrap > .panel, #itemp { background: linear-gradient(180deg, #23201c 0%, #171512 100%); border-color: var(--cu);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, 0 12px 30px rgba(0, 0, 0, .6); }
.ipage h1.iname { margin: 0; font-weight: bold; }
a.iname, .t td.nm a, .rec a { text-decoration: none; }
.rec a:not([class]) { color: var(--common); }   /* pages.mjs gives a recipe link a quality class only when it isn't common */
a.iname:hover, .t td.nm a:hover, .rec a:hover { text-decoration: underline; }
.t td.nm a { display: block; overflow: hidden; text-overflow: ellipsis; }
.fresh { margin: 10px 0 0; font: 12.5px var(--num); color: var(--muted); }
.fresh b { font-weight: normal; color: var(--ink2); }
.lede { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.lede b { font: 15px var(--num); color: #fff; }
.ipage .quote { margin-top: 10px; }
.sig { margin-left: 6px; font: 11px var(--num); color: var(--muted); }
.vtop { margin-left: 6px; font-size: 12.5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }   /* the variants' "Top price": plain copper text, as the game marks things */
.rec .rcp + .rcp { margin-top: 12px; }
.rh2 { font-size: 13.5px; color: var(--ink2); }
.rh2 span { margin-left: 8px; font: 11.5px var(--num); color: var(--muted); }
.rec ul { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }
.rec ul.used { max-height: 420px; overflow: auto; }
.usedhd { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 10px; font: 11.5px var(--num); color: var(--muted); }   /* the Used in list's two columns, named (11-12) */
/* the item page, 11-12: market timing as one line until it has its 28 days; one price for every window in tonight's box */
.tcompact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding: 8px 14px; font: 13px var(--num); color: var(--muted); border: 1px solid var(--rule2); border-radius: 3px; background: rgba(0, 0, 0, .25); }
.tcompact .gauge { flex: 0 1 220px; margin: 0; }
.tnone { margin: 8px 0 0; font-size: 14px; color: var(--ink); }
.coms.slim { padding-block: 8px; }
.coms.slim .chead { display: none; }
.comslim { font: 13px var(--num); color: var(--muted); }
.pwrow + .g.sm { margin-top: 2px; font-size: 12.5px; }
.rec li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 5px 9px; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.rec li:last-child { border-bottom: 0; }
.rec li[data-q]::before { content: attr(data-q) " \00d7"; min-width: 28px; font: 13px var(--num); color: var(--ink2); }
.rec li > a, .rec li > span:first-child { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.rec li small { font: 11.5px var(--num); color: var(--muted); }
.rec .px { margin-left: auto; }
/* the crafting box (pages.mjs craftBox, item.js loadPrices; David 11-14: "tiny digest. click a button to view main
   crafting window"): a recipe's name and the button, the profit line, then short rows, a muted word and its line */
.rec .rcp + .rcp { padding-top: 10px; border-top: 1px solid var(--rule2); }
.rec .rh2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rec .rh2 .rt { flex: 1 1 220px; min-width: 0; }
.rec .rgo { height: 24px; padding: 0 12px 2px; font-size: 13px; }
.rgain { margin: 6px 0 2px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.rgain:empty { display: none; }
.rln { display: flex; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: 13.5px; color: var(--ink); }
.rln > :last-child { flex: 1 1 auto; min-width: 0; }
.rk { flex: 0 0 62px; font: 12px var(--num); color: var(--muted); }
.rteach + .rteach::before { content: "; "; color: var(--muted); }
.rteach .px { margin-left: 0; }
/* the skill colors, the trade skill window's own: orange, yellow, green, grey; each with the skill it starts at */
.rln > .sbar { display: flex; flex: 0 1 300px; gap: 2px; align-self: center; }
.sk { flex: 1 1 0; min-width: 2.4em; }
.sk::before { content: ""; display: block; height: 6px; border-radius: 1px; background: var(--sk); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); }
.sk b { display: block; margin-top: 2px; font: 11.5px var(--num); font-weight: normal; color: var(--ink2); }
.sk.or { --sk: #ff8040; } .sk.ye { --sk: #ffff00; } .sk.gr { --sk: #40bf40; } .sk.gy { --sk: #808080; }
/* the reagents as small chips, each a link and its price for one craft */
.rec ul.rgs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.rec ul.rgs li { flex: 0 1 auto; gap: 2px 6px; padding: 2px 8px; border: 1px solid #000; border-radius: 3px; background: var(--well); box-shadow: 0 0 0 1px var(--rule2); }
.rec ul.rgs li[data-q]::before { min-width: 0; }
.rec ul.rgs li > a { flex: 0 1 auto; }
.rec ul.rgs .px { margin-left: 2px; font-size: 13px; }
.rec ul.rgs small, .rec .px small { font: 11px var(--num); color: var(--muted); }
.t tbody tr.off td { opacity: .5; }

.fwrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 1400px; margin: 0 auto; padding: 4px 16px 24px; }
.fwrap .panel.full { grid-column: 1 / -1; }
@media (max-width: 980px) { .fwrap { grid-template-columns: minmax(0, 1fr); } }
.fpage .pick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fpage .dd select { width: 140px; }
.fpage .dd.sm select { width: 72px; }
.ptitle.mt { margin-top: 18px; }
.ptitle .more3 { position: absolute; right: 0; bottom: 1px; font-variant: normal; letter-spacing: 0; font-size: 13px; color: var(--cu-hi); text-decoration: none; }
.ptitle .more3:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .ptitle .more3 { position: static; display: block; margin-top: 2px; } }
.sub2 { margin: 2px 0 5px; font-size: 13.5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.sub2 span { margin-left: 8px; font: 12px var(--num); color: var(--muted); text-shadow: none; }
.movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fpage .lbox { min-height: 0; max-height: none; }
.fpage .lbox.short { max-height: 380px; }
.heat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.tile { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 10px 9px; text-align: left; cursor: pointer; color: var(--ink);
  background: linear-gradient(180deg, #221d18 0%, var(--well) 100%); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule2), inset 0 1px 0 rgba(255, 236, 214, .08);
  transition: transform .2s; }
.tile:hover { box-shadow: inset 0 0 0 1px #7a6a58; transform: translateY(-1px); }
.tile.on { box-shadow: inset 0 0 0 1px var(--cu-hi), 0 0 6px rgba(253, 164, 85, .25); }
.tile .tn { font-size: 13.5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .tp { font: 20px var(--num); color: #fff; text-shadow: 0 1px 0 #000; }
.tile .ts { font: 12px var(--num); color: #e4dccb; text-shadow: 0 1px 0 #000; }
.tile .tc { font: 11px var(--num); color: var(--ink2); }
.mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
/* the mats board in a half-width panel (a 1024-px screen): one group a row, or each name gets a few letters (11-14) */
#dealp { container-type: inline-size; }
@container (max-width: 560px) { .mats { grid-template-columns: minmax(0, 1fr); } }
.mg .t { border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2); }
.mg .t td { height: 26px; }
@media (max-width: 760px) {
  .movers, .mats { grid-template-columns: minmax(0, 1fr); }
  .heat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hlinks { margin-left: 0; }
  .fpage .dd select { width: 120px; }
  .search { flex-basis: 100%; max-width: none; }
}

/* ---------- Find My Next Copper on the front page: the brand's front door ---------- */
.nc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 18px 20px 19px;
  background: radial-gradient(ellipse 55% 140% at 0% 0%, rgba(207, 103, 41, .14), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, var(--box-top) 0%, var(--box-bot) 100%); }
.nct { font-size: 29px; line-height: 1.1; color: var(--cu-hi); letter-spacing: .5px; text-decoration: none;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(207, 103, 41, .3); }
.nct:hover { color: #ffd2a8; }
.ncs { margin: 5px 0 0; max-width: 640px; font-size: 14px; color: var(--ink2); }
.ncf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ncf .box { width: 76px; text-align: right; font: 15px var(--num); }
.ncf .gl, .npage .gl { margin-left: 6px; font-size: 13px; color: var(--ink2); }
.seg.big button { height: 28px; padding: 0 13px; font-size: 13.5px; }
.btn.ncgo { margin-left: 0; height: 34px; padding: 0 22px; font-size: 16px; }
@media (max-width: 760px) { .nc { grid-template-columns: minmax(0, 1fr); padding: 15px 14px; } .nct { font-size: 25px; } }

/* ---------- the finder pages: find/, deals/, gaps/, flips/ (finders.js) ---------- */
.nwrap { display: grid; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 4px 16px 24px; }
.nwrap.find { max-width: 900px; }
.nwrap.pair { max-width: 640px; padding-top: 28px; }   /* the companion's Connect page (/store/pair, the store's pair.html): one box */
.pair .sharebox { justify-content: center; }
.ntitle { margin: 2px 0 0; font-weight: normal; font-size: 30px; line-height: 1.1; text-align: center; color: var(--cu-hi); letter-spacing: .5px;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(207, 103, 41, .3); }
.ntitle.sm { font-size: 24px; }
.nsub { margin: 5px 0 0; font-size: 14px; text-align: center; color: var(--ink2); }
.testbar { max-width: 1240px; margin: 0 auto 6px; padding: 6px 16px; background: #5a1010; color: #fff; font: 13px var(--num); text-align: center; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.npage .dd select { width: 150px; }
.npage .dd.sm select { width: 72px; }
.npage .box.mx { width: 76px; text-align: right; font: 14px var(--num); }
.npage .lbox { min-height: 0; max-height: none; }
.qs3 { display: grid; gap: 16px; margin-top: 18px; }
.q3 { display: grid; gap: 8px; padding-left: 36px; }
.q3 > .qh { margin-left: -36px; }
.qh { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); text-shadow: 0 1px 0 #000; }
.qn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  font: bold 14px var(--num); color: #1c0b02; background: radial-gradient(circle at 40% 35%, #ffd2a8, var(--cu-hi) 40%, var(--cu) 70%, var(--cu-lo)); box-shadow: 0 0 0 1px #000; }
.goldin { display: flex; align-items: center; }
.goldin .box { width: 110px; height: 32px; text-align: right; font: 18px var(--num); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .risk button { cursor: pointer; color: var(--ink2); background: linear-gradient(180deg, #34302a 0%, #221e19 55%, #191511 100%);
  border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 236, 214, .12); transition: transform .2s; }
.chips button { height: 26px; padding: 0 12px; font: 13px var(--num); }
.chips button:hover, .risk button:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.15); }
.chips button.on, .risk button.on { color: #fff; background: linear-gradient(180deg, #6e3b1d 0%, #4a2410 55%, #36190a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .35), inset 0 0 0 1px var(--cu); }
.pick3 { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 640px; }
.risk button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 11px 8px; text-align: left; }
.risk b { font-weight: normal; font-size: 15px; }
.risk small { font: 12px var(--num); opacity: .85; }
/* Find's two ways (11-13): Your picks, the default, or Search your own deals (finders.js). Each asks its own questions,
   numbered in order by a counter, so the hidden ones don't count; the search's page is as wide as Quick Deals' */
.fmode { justify-content: center; margin-top: 14px; }
.fmode button { height: 28px; padding: 0 16px; font-size: 14px; }
.qs3 { counter-reset: q; }
.q3 { counter-increment: q; }
.qn:empty::before { content: counter(q); }
.nwrap.find.wide { max-width: 1240px; }
.pick3 .box.lv { width: 46px; text-align: right; font: 14px var(--num); }
.pick3 .hp > .box.lv:first-of-type { margin-left: 8px; }
.pick3 .dd.lvk select { width: 150px; }
.pick3 .hp.grow { max-width: 380px; }
.pick3 .box.sname { width: 100%; min-width: 120px; }
.ptitle.sbar .hp { position: absolute; right: 0; top: -5px; font-size: 13px; }
.fsum { margin: 10px 0 2px; }
.fsum:empty { display: none; }
.sumrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding: 10px 14px; font-size: 14.5px; color: var(--ink2);
  background: var(--well); border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }
.sumrow b { font-weight: normal; }
.sumrow .big, .sumrow .big .m { font-size: 19px; }
.sumrow .big { margin-left: auto; }
.sumnote { margin-top: 5px; font-size: 12px; color: var(--muted); }
.picks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pk { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 12px 14px;
  background: linear-gradient(180deg, #17130f 0%, var(--well) 100%); border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule2), inset 0 1px 0 rgba(255, 236, 214, .05); }
.pk .slot { width: 44px; height: 44px; }
.pkno { padding-top: 12px; font: 15px var(--num); color: var(--muted); text-align: right; }
.pkh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pkn { font-size: 17px; text-decoration: none; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
.pkn:hover { text-decoration: underline; }
.pkl { margin-top: 3px; font-size: 14px; color: var(--ink); }
.pkl b { font: 15px var(--num); color: #fff; }
.pkl .g { font: 13px var(--num); color: var(--muted); }
.pkp { display: flex; flex-direction: column; align-items: flex-end; padding-top: 2px; white-space: nowrap; }
.pkp .up, .pkp .m { font-size: 18px; }
.pkp small { font: 11.5px var(--num); color: var(--muted); }
.why { margin-top: 3px; font: 12.5px/1.3 var(--num); color: var(--muted); white-space: normal; }
.pk .why { color: #b3a98f; }   /* a pick's history line, a step brighter than --muted (11-12, the audit) */
.why.lw, .pk .why.lw { color: #c99282; }   /* why a row is Low confidence, a shade of the Low badge (11-14) */
.hownote { margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.empty .young { max-width: 620px; margin: 10px auto 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.conf { display: inline-block; padding: 0 6px; border-radius: 3px; font: 11.5px/17px var(--num); letter-spacing: .2px; white-space: nowrap; border: 1px solid; }
.conf.c-high { color: #9fdca1; border-color: #3c6b3e; background: rgba(124, 196, 127, .08); }
.conf.c-medium { color: #e8cf7a; border-color: #6b5a2a; background: rgba(232, 207, 122, .07); }
.conf.c-low { color: #e6a08e; border-color: #6e3a2e; background: rgba(226, 122, 98, .07); }
.t td.nw { white-space: normal; padding-top: 5px; padding-bottom: 5px; }
.t td.nw a { white-space: nowrap; }
.t td.two { line-height: 1.5; }
.cnt { margin-right: 5px; font-size: 12px; color: var(--cu-hi); }
/* Quick Deals on a phone: the cost, how far under and the confidence on a line under the item (finders.js, 11-13) */
.t td.nm .dl { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 4px; font: 12.5px var(--num); color: var(--ink2); text-shadow: none; }
.side { font-size: 13px; }
.side.ally { color: #7fb0ea; } .side.horde { color: #e0806a; } .side.bw { color: #6cc79c; }
@media (max-width: 760px) {
  /* a phone: a row's name takes two lines before it's cut (the item card folds to its ⋯ beside it, star.js; 11-14) */
  .t td.nm > a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .q3 { padding-left: 0; }
  .q3 > .qh { margin-left: 0; }
  .ptitle.sbar .hp { position: static; justify-content: center; margin-top: 8px; }
  .risk button { padding: 6px 8px 7px; }
  .risk small { font-size: 11px; }
  .pk { grid-template-columns: 36px minmax(0, 1fr); padding: 10px; gap: 4px 10px; }
  .pk .slot { width: 36px; height: 36px; }
  .pkno { display: none; }
  .pkp { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; }
  .sumrow .big { margin-left: 0; }
  .ntitle { font-size: 25px; }
  .npage .dd select { width: 124px; }
}

/* ---------- module 4: the watchlist star, supply pressure, the established value, unusual market activity, the price
   wall, market timing, and the tool pages (watch, portfolio, shop, craft, timing, resets) ---------- */
[hidden] { display: none !important; }   /* a hidden bar, box or button stays hidden whatever its own display says */
span.g, div.g { color: var(--muted); }
/* the star, the ticker pin and the bell live in one card now (star.js itemActs, header.css .acts) */
.t td.nm .acts { float: right; margin: 1px 0 0 10px; }   /* at the name cell's right end, so the icon and the name stay together (David 11-12) */
.t td.nm .acts.fold { margin-left: 6px; }   /* folded to its ⋯ where the cell is narrow (star.js): the name keeps the room */
.pkh .acts { margin: 0 0 0 6px; }
/* supply pressure: a word, a meter on a log scale (a tenth of usual to ten times), and the slot for observed buying */
.pw { display: inline-block; padding: 0 6px; border-radius: 3px; font: 12px/18px var(--num); white-space: nowrap; border: 1px solid var(--rule2); color: var(--ink2); }
.pw.w-far-under { color: #f0a08c; border-color: #6e3a2e; background: rgba(226, 122, 98, .1); }
.pw.w-under { color: #e8c08a; border-color: #6b532a; background: rgba(232, 180, 122, .07); }
.pw.w-restoring { color: #e8cf7a; border-color: #6b5a2a; background: rgba(232, 207, 122, .07); }
.pw.w-near { color: var(--ink2); }
.pw.w-over { color: #9cc2ee; border-color: #2e4a6e; background: rgba(85, 144, 212, .08); }
.pw.w-far-over { color: #b9d6ff; border-color: #3a5f8e; background: rgba(85, 144, 212, .16); }
.pwrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 10px; font-size: 13px; }
.meter { position: relative; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--rule2); overflow: hidden; }
.meter .z { position: absolute; top: 0; bottom: 0; }
.meter .z.fu { background: rgba(226, 122, 98, .32); } .meter .z.u { background: rgba(232, 180, 122, .14); }
.meter .z.o { background: rgba(85, 144, 212, .16); } .meter .z.fo { background: rgba(85, 144, 212, .34); }
.meter .mid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink2); opacity: .6; }
.meter .mk { position: absolute; top: 1px; bottom: 1px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--cu-hi); box-shadow: 0 0 0 1px #000; }
.mlab { display: flex; justify-content: space-between; margin-top: 3px; font: 11px var(--num); color: var(--muted); }
/* the supply chart under the meter: items listed per copy, 7 days, and the usual supply dashed (the meter's middle line) */
.supc { margin-top: 12px; }
.chart .usl { stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .75; }
.chart text.usl-t { fill: var(--ink2); }
.sw.usl { height: 0; border-top: 2px dashed var(--ink2); background: none; }
.obs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 12px; padding: 7px 10px; font-size: 13px;
  color: var(--ink2); border: 1px dashed var(--rule2); border-radius: 3px; }
.empty.sm { padding: 14px 8px; font-size: 13px; }
.gauge { max-width: 280px; height: 6px; margin: 10px auto 0; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--cu); }
/* the established value beside the lowest, and the warning when the asking price runs well over it */
.estv { display: flex; flex-wrap: wrap; gap: 3px 22px; margin-top: 8px; font-size: 13.5px; color: var(--ink2); }
.estv b { font-weight: normal; }
.estv .warn { flex-basis: 100%; padding: 6px 10px; color: #f3c9bd; background: rgba(160, 40, 20, .18); border-left: 3px solid #c4563f; border-radius: 2px; }
/* unusual market activity: the evidence table and two plain sentences */
.unusual { margin-top: 12px; padding: 10px 12px 12px; border: 1px solid #6e2e22; border-radius: 4px; background: rgba(140, 30, 15, .12); }
.unusual .ct { color: #f0a08c; }
.t.evid { border: 1px solid var(--rule); background: var(--well); }
.t.evid th { position: static; width: 46%; text-align: left; color: var(--ink2); font-size: 12.5px; padding: 5px 8px; white-space: normal; vertical-align: middle; }
.t.evid td { text-align: left; white-space: normal; height: auto; padding: 5px 8px; }
.teach { margin: 8px 0 0; font-size: 13px; color: var(--ink2); }
/* the price wall */
.chart .farover { fill: rgb(196, 86, 63); fill-opacity: .28; }
.chart .estl { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .wallmk { stroke: #fff3a8; stroke-width: 3; stroke-linecap: round; }
.sw.estk { height: 0; border-top: 2px dashed var(--gold); background: none; }
.sw.wallk { height: 3px; background: #fff3a8; }
.sw.faro { background: rgba(196, 86, 63, .45); }

/* market timing */
.tline { margin: 2px 0 4px; font-size: 13.5px; }
.tline b { font-weight: normal; color: var(--cu-hi); margin-right: 4px; }
.tbars { display: grid; gap: 6px; margin-top: 8px; overflow: hidden; }
.tbars svg { display: block; max-width: 100%; height: auto; }
.tbars text { font: 10px var(--num); fill: var(--muted); }
.tbars .base { stroke: var(--rule2); }
.tbars .tb-up { fill: var(--c-med); } .tbars .tb-dn { fill: var(--c-min); }
/* comments, under the market panels (item.js; module 9's store) */
.coms { margin-top: 14px; }
.comf { display: grid; gap: 6px; margin: 2px 0 10px; }
.box.comtx { width: 100%; height: auto; min-height: 68px; padding: 7px 9px; resize: vertical; font: 14px/1.4 var(--num); }
.box.comtx:disabled { opacity: .55; }
.comrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 13px var(--num); color: var(--ink2); }
.comas { flex: 1 1 auto; }
.comneed { font-size: 14px; color: var(--ink2); }   /* no handle yet: the line in place of the box (11-12) */
.comneed a { color: var(--cu-hi); }
.comn { color: var(--muted); }
.comn.near { color: #f0a08c; }
.comrow .btn, .comask .btn { margin-left: 0; height: 26px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.comin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 2px 0 10px; }
.comin .btn { margin-left: 0; }
.com { padding: 10px 2px; border-top: 1px solid var(--rule2); }
.com:first-child { border-top: 0; }
.comh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 12.5px var(--num); color: var(--muted); }
.cby { font: 14px var(--serif); color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.cby.anon { color: var(--ink2); }
.cyou { color: var(--muted); }
.crole { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px 0 3px; border: 1px solid var(--cu-lo); border-radius: 9px;
  font: 11.5px/16px var(--num); color: var(--cu-hi); background: rgba(207, 103, 41, .12); }
.crole img { width: 12px; height: 12px; }
.crole.r-donor { border-color: rgba(216, 171, 99, .55); color: var(--sup-gold); background: rgba(216, 171, 99, .12); }   /* a gift's gold coin (11-13) */
.crole.r-donor img { filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(1.25); }
.comact { margin-left: auto; }
.comb { margin: 4px 0 0; font: 14px/1.45 var(--num); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.com.hid .comb { opacity: .6; }
.comhid { margin-top: 4px; font: 12.5px var(--num); color: #f0a08c; }
.comask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; padding: 7px 10px; font: 13px var(--num);
  border: 1px solid var(--rule2); border-radius: 4px; background: rgba(0, 0, 0, .25); }
.box.comwhy { flex: 1 1 200px; min-width: 0; font: 13px var(--num); }
.comask .pmsg { flex-basis: 100%; margin-top: 0; }
.commore { text-align: center; }
.commore .btn { margin: 8px auto 0; }
/* comments v2 (11-12; David's 8:09 PM picture of his own 2011 Wowhead comment): votes in a column on the left, the
   nameplate, the character and the patch beside the name, markdown, one level of replies, the tools as small buttons */
.com { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 16px 2px 14px; }
.csort + .com { border-top: 0; }
.cmain { min-width: 0; }
.cvote { display: grid; justify-items: center; gap: 3px; padding-top: 2px; }
.cv { display: grid; place-items: center; width: 36px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: #6b6152; cursor: pointer; }
.cv svg { fill: currentColor; }
.cv:hover:not(:disabled) { color: #e88a4a; background: rgba(255, 255, 255, .05); }
.cv:disabled { cursor: default; opacity: .45; }
.cv.up.on { color: #5cff6c; opacity: 1; filter: drop-shadow(0 0 3px rgba(92, 255, 108, .55)); }   /* the board's lit colors (ticker.js LED) */
.cv.down.on { color: #ff5b4d; opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 91, 77, .55)); }
.cs { font: 19px/22px var(--num); color: var(--ink); }
.cs.pos { color: #9fdca1; }
.cs.neg { color: #f0a08c; }
.cplate { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 2px; border: 1px solid #c22a1f; border-radius: 2px;
  font: 12.5px/16px var(--serif); letter-spacing: .7px; text-transform: uppercase; color: #ff3b2b; -webkit-text-stroke: .35px currentColor; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #3a3a40 0%, #1d1d21 46%, #0e0e10 54%, #26262b 100%);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .6); }   /* TNC Founder: red edge, black metal, red letters (David 8:05) */
.cplate::before, .cplate::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9a9aa3, #3a3a40 70%); box-shadow: 0 0 0 1px #000; }
.cchar { font-size: 12.5px; color: var(--ink2); }
.cl-warrior { color: #c69b6d; } .cl-paladin { color: #f48cba; } .cl-hunter { color: #aad372; } .cl-rogue { color: #fff468; } .cl-priest { color: #fff; }
.cl-shaman { color: #0070de; } .cl-mage { color: #3fc7eb; } .cl-warlock { color: #8788ee; } .cl-druid { color: #ff7c0a; }
.cver { padding: 0 5px; border: 1px solid #6b5a2a; border-radius: 3px; font: 10.5px/15px var(--num); letter-spacing: .4px; color: #e8cf7a; background: rgba(232, 207, 122, .08); }
.cver.old { border-color: var(--rule2); color: var(--muted); background: none; }
.cedit { color: var(--muted); }
.cgone { margin-top: 3px; font: italic 12.5px var(--num); color: var(--muted); }
.comb.md { white-space: normal; }
.comb.md p { margin: 0 0 6px; }
.comb.md p:last-child { margin-bottom: 0; }
.comb.md ul, .comb.md ol { margin: 2px 0 6px; padding-left: 22px; }
.comb.md blockquote { margin: 4px 0 6px; padding: 2px 10px; border-left: 3px solid var(--cu-lo); color: var(--ink2); }
.comb.md code { padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .35); font: 13px ui-monospace, Consolas, monospace; }
.comb.md strong, .comb.md .mh { color: #fff; font-weight: bold; }
.comb .ilink { text-decoration: none; white-space: nowrap; }   /* [item=ID]: the icon, then the name in its quality's color */
.comb .ilink:hover { text-decoration: underline; }
.comb .ilink img { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.ctools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.ctool { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 1px solid var(--rule2); border-radius: 3px; background: rgba(0, 0, 0, .25); color: var(--ink2); cursor: pointer; }
.ctool:hover { color: #fff; border-color: var(--cu-lo); }
.ctools .g { margin-left: 4px; font: 12.5px var(--num); }
.creps { margin-top: 8px; }
.creps:empty { display: none; }
.com.rep { padding: 14px 0 6px; }
.comb.md { margin-top: 7px; line-height: 1.55; }
.com.rep:first-child { margin-top: 4px; }
.crepf { margin-top: 8px; }
.comask .comf { flex: 1 1 100%; margin: 0; }
.chist { display: grid; flex: 1 1 100%; gap: 8px; }
.chh { display: flex; justify-content: space-between; align-items: center; font: 12.5px var(--num); color: var(--muted); }
.chv { padding-top: 6px; border-top: 1px solid var(--rule2); }
.csort { display: flex; justify-content: flex-end; align-items: center; gap: 2px; padding-bottom: 4px; font: 12.5px var(--num); color: var(--muted); }
.csort .lnk.on { color: #fff; text-decoration: underline; }
.cpick .dd { margin-left: 4px; max-width: 100%; vertical-align: middle; }   /* the site's picker (dd.js), its width the longest name (11-14) */
.cpick .dd > select.box { width: auto; max-width: min(100%, 380px); height: 24px; padding: 0 26px 0 8px; font: 13px var(--num); }
.cpick .dd > .dd-btn { padding: 0 26px 0 8px; font: 13px var(--num); }
/* the tool pages */
div.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 9px 12px; font-size: 14px;
  border: 1px solid #6b5a2a; border-radius: 4px; background: rgba(232, 207, 122, .07); }
div.ask > span { flex: 1 1 260px; }   /* div only: the find page's section is .ask too (module 3), 11-11 */
div.ask .btn, .sharebox .btn, .addrow .btn, .btns .btn { margin-left: 0; height: 26px; padding: 0 12px 2px; font-size: 13px; }
.btn.quiet { background: linear-gradient(180deg, #34302a 0%, #221e19 55%, #191511 100%); box-shadow: inset 0 1px 0 rgba(255, 236, 214, .12), inset 0 0 0 1px #4a4036; color: var(--cu-hi); }   /* the game's dark secondary button */
.btn.file { position: relative; overflow: hidden; }
.btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sharebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.hp.grow { flex: 1 1 260px; min-width: 0; }
.lnkbox { flex: 1; min-width: 0; width: 100%; font: 12.5px var(--num); }
.addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.addrow .search.nb { flex: 1 1 240px; max-width: 360px; }
.npage .box.mx2 { width: 96px; font: 14px var(--num); }
.npage .box.dt { width: 140px; font: 14px var(--num); }
.box.bulk { flex: 1 1 280px; min-width: 0; max-width: 620px; height: auto; min-height: 44px; padding: 6px 8px; resize: vertical; font: 13.5px var(--num); }
.pmsg { min-height: 0; margin-top: 6px; font: 13px var(--num); color: #f0a08c; }
.pmsg:empty { display: none; }
.lnk { padding: 0 4px; border: 0; background: none; cursor: pointer; font: 13px var(--num); color: var(--cu-hi); }
.lnk:hover { color: #fff; text-decoration: underline; }
.lnk.x { font-size: 17px; color: var(--muted); }
.t td.acts { padding: 2px 4px; text-align: right; }
.t td.nw2 { white-space: normal; line-height: 1.3; }
.t tr.closer td { text-align: left; height: auto; padding: 7px 10px; background: rgba(232, 207, 122, .05); }
.t tr.closer .hp, .t tr.closer .btn { display: inline-flex; margin: 0 10px 0 0; vertical-align: middle; }
.box.qneed { width: 64px; max-width: 100%; height: 24px; padding: 2px 6px; text-align: right; font: 13.5px var(--num); }   /* the shop page's Need: the site's small number box (David 11-13, 5:45 PM; it took the Find page's round .qn by its name) */
.why.mk { color: var(--ink2); }
.why .up { color: var(--up); }
.t tbody tr.off2 td.nm a { opacity: .7; }
.rs { display: inline-block; padding: 0 6px; border-radius: 3px; font: 12px/18px var(--num); border: 1px solid var(--rule2); }
.rs.r-holding { color: #e8cf7a; border-color: #6b5a2a; } .rs.r-held { color: #f0a08c; border-color: #6e3a2e; } .rs.r-collapsed { color: var(--muted); }
.t td.l { text-align: left; }
.t td.nm2 { font-size: 13px; color: var(--ink2); }
.npage .gl { margin: 0 6px; }
@media (max-width: 760px) {
  .addrow .search.nb { flex-basis: 100%; max-width: none; }
  .estv { gap: 3px 14px; }
  .t.evid th { width: 40%; }
  /* Every house: three number columns left the name 50 px ("U..."); narrower numbers, and the name wraps */
  #acrossT col:nth-child(2), #acrossT col:nth-child(3) { width: 62px !important; }
  #acrossT col:nth-child(4) { width: 52px !important; }
  #acrossT td, #acrossT th { padding-inline: 5px; }
  #acrossT td.nm { white-space: normal; font-size: 13px; line-height: 1.2; height: auto; padding-block: 5px; }
}

/* ---------- module 9: Your Adventures and the community page (adventures.js) ---------- */
.mt { margin-top: 12px; }
/* the figures (11-15, David: "this is SO congested", "make it prettier"): each tile a small muted label over its number,
   the numbers lined up along the bottom. One row of equal tiles on a wide screen; two a row under 900px, a lead tile
   full width when the count is odd. A tile is never narrower than its number: a big one takes the next row instead. */
.figs { display: flex; flex-wrap: wrap; gap: 10px; }
.fig { flex: 1 1 0; min-width: max-content; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 11px 14px 12px;
  background: linear-gradient(180deg, #1f1a15 0%, var(--well) 100%); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--rule2), inset 0 1px 0 rgba(255, 236, 214, .06); }
.fig .fl { font: 12.5px/1.2 var(--num); letter-spacing: .3px; color: var(--muted); }
.fig .fv { font: 18px/1.15 var(--serif); color: #fff; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.fig .fv .m { font-size: 18px; }
.fig.lead { box-shadow: inset 0 0 0 1px var(--cu-lo), inset 0 1px 0 rgba(255, 210, 170, .1); }
.fig.lead .fl { color: var(--ink2); }
.fig.lead .fv, .fig.lead .fv .m { font-size: 22px; }
.fig[title] { cursor: help; }
/* money in green, money out red, on every tab (David 11-15, 1:04 AM: "green numbers for incoming red numbers for outgoing") */
.gain .m { color: var(--up); }
.cost .m { color: var(--down); }
.fnote { margin: 8px 2px 0; font: 13px var(--num); color: var(--muted); }
.fnote .m { font-size: 14px; }
@media (max-width: 900px) {
  .figs { gap: 8px; }
  .fig { flex-basis: calc(50% - 4px); padding: 9px 12px 10px; }
  .figs.odd .fig.lead { flex-basis: 100%; }
}
section.view .filters { margin-top: 12px; }
.t.jt td { height: auto; padding-top: 5px; padding-bottom: 5px; }
/* the journal by day (11-14): each day's header opens or folds it, with its one-line summary; the rarity chips in their
   colors, dim when off; a price that beat its week in green. Under 600px a row stacks: when and what, the item, the details */
.jrf { margin-top: 8px; }
.flab { font: 13px var(--num); color: var(--muted); }
.rchips button, .rchips button.on { background: linear-gradient(180deg, #2a2620 0%, #1b1814 55%, #141110 100%); }
.rchips button { opacity: .5; box-shadow: inset 0 1px 0 rgba(255, 236, 214, .06); }
.rchips button.on { opacity: 1; box-shadow: inset 0 0 0 1px currentColor, inset 0 1px 0 rgba(255, 236, 214, .12); }
.rchips button.q-POOR, .rchips button.q-POOR:hover { color: var(--poor); } .rchips button.q-COMMON, .rchips button.q-COMMON:hover { color: var(--common); }
.rchips button.q-UNCOMMON, .rchips button.q-UNCOMMON:hover { color: var(--uncommon); } .rchips button.q-RARE, .rchips button.q-RARE:hover { color: #3a95f0; }
.rchips button.q-EPIC, .rchips button.q-EPIC:hover { color: #b866ff; } .rchips button.q-LEGENDARY, .rchips button.q-LEGENDARY:hover { color: var(--legendary); }
.t.jt tr.jday td { height: auto; padding: 0; text-align: left; white-space: normal; background: linear-gradient(180deg, #2b241b, #1c1812);
  border-top: 1px solid #000; border-bottom: 1px solid var(--rule2); }
.t.jt tbody.jdays + tbody.jdays tr.jday td { border-top: 6px solid var(--well); }
.jday button { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; width: 100%; padding: 8px 10px 7px; border: 0; background: none;
  color: var(--ink); text-align: left; cursor: pointer; }
.jday button::before { content: "\25B8"; flex: none; width: 12px; color: var(--cu-hi); font-size: 12px; transition: transform .15s; }
.jday button[aria-expanded="true"]::before { transform: rotate(90deg); }
.jday button:hover .dname, .jday button:focus-visible .dname { color: #fff; }
.jday button:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: -2px; }
.jday .dname { font: 15px var(--serif); text-shadow: 0 1px 0 #000; }
.jday .dsum { font: 13px var(--num); color: var(--ink2); }
.t.jt .mlab { color: var(--ink2); margin-right: 2px; }
.t.jt .mw { color: var(--ink2); }
.t.jt .win { color: var(--up); }
.t.jt .mwl { color: var(--ink2); }
@media (max-width: 600px) {
  .t.jt colgroup, .t.jt thead { display: none; }
  .t.jt, .t.jt tbody { display: block; width: 100%; }
  .t.jt tr.jday, .t.jt tr.jday td { display: block; }
  .t.jt tr.jrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; padding: 7px 10px; border-top: 1px solid var(--grid); }
  .t.jt tr.jrow td { height: auto; padding: 0; text-align: left; white-space: normal; overflow: visible; }
  .t.jt tr.jrow td.jw { grid-column: 1; font-size: 12.5px; color: var(--muted); }
  .t.jt tr.jrow td.jk { grid-column: 2; font-size: 12.5px; color: var(--ink2); }
  .t.jt tr.jrow td.jk div { display: inline; margin-left: 6px; }
  .t.jt tr.jrow td.ji, .t.jt tr.jrow td.jd { grid-column: 1 / -1; }
  .t.jt tr.jrow td.jd { font-size: 13px; }
  .t.jt tbody tr:not(.jrow):not(.jday) { display: block; }
  .t.jt tbody tr:not(.jrow):not(.jday) td { display: block; white-space: normal; height: auto; }
}
ul.plain { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
ol.steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; color: var(--ink); }
.charrow { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 8px; background: var(--well); border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule2); }
.charrow .hp { gap: 8px; font-size: 13.5px; }
.pmsg.ok { color: #9fdca1; }
/* the Account page in settings style (11-12, David 2:32 AM): the sections listed on the left in three groups, the chosen
   one on the right, left-aligned; on a phone the list is a row of tabs that scrolls sideways. The loot log question sits
   above both while it's unanswered. Delete account sits apart, in a box with a thin red edge. */
.nwrap.acct { max-width: 1040px; }
.acct .aall { display: grid; gap: 12px; min-width: 0; }
.aset { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 4px; }
.anav { display: grid; gap: 14px; padding: 12px 10px 14px; }
.agrp { display: grid; gap: 2px; }
.agh { margin: 0 0 4px; padding: 0 10px; font: 11.5px var(--num); font-weight: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.anav a { display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 3px 3px 0; font-size: 14.5px;
  color: var(--ink2); text-decoration: none; text-shadow: 0 1px 0 #000; }
.anav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.anav a.on { color: var(--cu-hi); background: rgba(207, 103, 41, .13); border-left-color: var(--cu); }
.agrp.danger { padding-top: 12px; border-top: 1px solid var(--rule2); }
.agrp.danger a { color: #e59a86; }
.agrp.danger a.on { color: #ffb4a0; background: rgba(170, 52, 28, .16); border-left-color: #b4381c; }
.apane { min-width: 0; }
.apane .asec { padding: 16px 20px 18px; text-align: left; }
.apane .ptitle { margin-bottom: 10px; font-size: 19px; text-align: left; }
.asec.danger { border-color: #7c2a18; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 3px 10px rgba(0, 0, 0, .55), 0 0 0 2px rgba(180, 56, 28, .28), 0 8px 22px rgba(0, 0, 0, .45); }
.asec.danger .ptitle { color: #ffb4a0; }
.atext { margin: 8px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.anote { display: block; margin: 6px 0 0; max-width: 62ch; font: 13px/1.45 var(--num); color: var(--muted); }
.asub { margin: 20px 0 0; font-weight: normal; font-size: 15.5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.atitle { margin-top: 2px; font-size: 17px; color: var(--cu-hi); letter-spacing: .5px; text-shadow: 0 1px 0 #000; }
.akv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: 12px; font-size: 14.5px; color: var(--ink); }
.akv .ak { flex: 0 0 96px; font: 13px var(--num); color: var(--muted); }
.akv .av { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.akv .av .pmsg { display: block; }
.akv .hname { font: 17px var(--serif); color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.hform { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; vertical-align: middle; }
.hform .box { width: 220px; max-width: 100%; font: 14px var(--num); }
.hform .btn { margin-left: 0; height: 26px; padding: 0 12px; font-size: 13px; }
.apane .addrow .box { width: 220px; max-width: 100%; font: 14px var(--num); }
#whoami a, .acct .nsub a, body[data-page="adventures"] .hownote a { color: var(--cu-hi); }
@media (max-width: 760px) {
  .aset { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .anav { display: flex; gap: 4px; padding: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .agrp { display: contents; }
  .agh { display: none; }
  .anav a { flex: none; padding: 7px 12px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 3px 3px 0 0; }
  .anav a.on { border-bottom-color: var(--cu); }
  .agrp.danger a.on { border-bottom-color: #b4381c; }
  .apane .asec { padding: 14px 14px 16px; }
  .akv .ak { flex-basis: 100%; }
}
.hp.aswitch { gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink); }
.hp.aswitch .gl { margin: 0; }
div.ask.lootask, div.ask.grace { margin-top: 14px; border-color: var(--cu); background: rgba(207, 103, 41, .1); }
div.ask.lootask .pmsg, div.ask.grace .pmsg { flex-basis: 100%; margin-top: 0; }
/* Get started (11-15, David 3:51 AM): the three steps under the top line while any is left (adventures.js drawStart), in
   a box like the sections'. A done step is dimmed with its ✓; one left has its way beside it, or under it on a phone. */
.astart { padding: 12px 20px 8px; text-align: left; }
.astart .ptitle { margin-bottom: 4px; font-size: 19px; text-align: left; }
.asteps { list-style: none; margin: 0; padding: 0; }
.asteps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 7px 0;
  border-top: 1px solid var(--rule2); font-size: 14.5px; color: var(--ink); }
.asteps li:first-child { border-top: 0; }
.asteps li.done { color: var(--muted); }
.asteps .acheck { text-align: center; }
.asteps .aact { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
.asteps .aact .btn { margin-left: 0; height: 26px; padding: 0 12px 2px; font-size: 13px; }
.asteps .aact a:not(.btn) { font: 13px var(--num); color: var(--cu-hi); }
@media (max-width: 760px) {
  .astart { padding: 12px 14px 8px; }
  .asteps li { grid-template-columns: 18px minmax(0, 1fr); }
  .asteps .aact { grid-column: 2; justify-content: flex-start; }
}
ul.akeys { gap: 8px; }
.akey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; background: var(--well); border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule2); }
.akey .aklab { flex: 1 1 260px; min-width: 0; color: var(--ink); }
.akey .aklab .gl { display: block; margin: 2px 0 0; }
.knewrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
div.ask#knew > span:first-child { flex: 0 1 auto; }   /* the words take their own width, the key sits right after them */
div.ask#knew > span.knewrow { flex: 0 0 auto; }
/* Disconnect asks in a small box over the row, so nothing below moves (David 11-12) */
.akact { position: relative; }
.akask { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: min(340px, 86vw); display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 10px; padding: 10px 12px; background: #1c1610; border: 1px solid #000; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--rule2), 0 8px 22px rgba(0, 0, 0, .6); }
.akask > span:first-child { flex: 1 1 100%; color: var(--ink); line-height: 1.35; }
.akask .btns { display: flex; gap: 8px; margin-left: auto; }
.akname { display: inline-flex; align-items: baseline; gap: 8px; }
.aklink { all: unset; cursor: pointer; font: 12px var(--num); color: var(--muted); text-decoration: underline dotted; }
.aklink:hover, .aklink:focus-visible { color: var(--cu-hi); }
.akin { height: 24px; width: 16em; max-width: 100%; padding: 0 6px; font-weight: bold; }
.kmask { padding: 4px 8px; font: 12.5px var(--num); color: var(--ink); background: var(--well); border: 1px solid #000; border-radius: 3px; word-break: break-all; user-select: all; }   /* a new key, hidden as tnc_u_ and dots (adventures.js) */
.akey .btn { margin-left: 0; height: 26px; padding: 0 12px; font-size: 13px; }
.acoin { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--ink); }
.acoin .why { display: block; margin-top: 2px; font: 12.5px var(--num); color: var(--muted); }
.coinmark { display: inline-flex; flex: none; width: 36px; height: 36px; border-radius: 50%; }
.coinmark img { width: 36px; height: 36px; }
.coinmark.c-gilded img { filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(1.25); }
.coinmark.c-red img { filter: hue-rotate(-28deg) saturate(2.2) brightness(.95); }
/* Supporter and gift boxes under the coin (adventures.js drawSupport, 11-12) */
.sbox { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule2); font-size: 15px; color: var(--ink); }
.sbox > .why { display: block; margin-top: 2px; }
.sbox > .sprice { display: block; margin-top: 10px; font-weight: bold; font-size: 16px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
#acoin > .asub:first-child { margin-top: 4px; }
.sbox > .swarn { margin: 6px 0 0; color: var(--cu-hi); font-size: 13.5px; }
.sbox .addrow { margin-top: 10px; align-items: center; }
.sbox .dollar { color: var(--ink2); }
#samount, #pamount { width: 4.5em; flex: none; }
.coinmark.c-none img { filter: grayscale(1) brightness(.55); opacity: .7; }
.opens .units { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.opens .unit { padding: 1px 8px; border-radius: 3px; font: 12.5px var(--num); color: var(--muted); border: 1px solid var(--rule2); }
.opens .unit.on { color: #9fdca1; border-color: #3c6b3e; }

/* ---------- module 10: the item page's "What price sells by tonight?" box and its walls (item.js, tonight.js) ---------- */
.tonight { margin-top: 12px; padding: 9px 12px 8px; }   /* a box (above) */
.tnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; }
.tnrow .box { width: 84px; text-align: right; font: 15px var(--num); }
.tnline { flex: 1 1 300px; margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.tnline .m { font-size: 15px; }
.t.tn { max-width: 560px; margin-top: 8px; }
.t.tn td { height: 26px; }
.dphead { display: flex; justify-content: space-between; gap: 10px; margin: 2px 2px 4px; font-size: 12px; color: var(--ink2); }
.dphead span:last-child { text-align: right; }
.dphead small { display: block; font: 11px var(--num); color: var(--muted); }
.chart .dp-on { fill: #6f86a6; }
.chart .dp-off { fill: url(#dphatch); stroke: rgba(159, 182, 216, .67); stroke-width: 1; }
.chart .dp-hl { stroke: rgba(159, 182, 216, .8); stroke-width: 2; }
.chart .dp-usual { stroke: rgba(255, 209, 0, .67); stroke-dasharray: 3 3; }
.chart .dp-wall { stroke: var(--gold); stroke-width: 2.5; }
.chart text.dp-wt { fill: var(--gold); font: 10.5px var(--serif); letter-spacing: .5px; }
.chart text.dp-mid { fill: var(--gold); font-size: 10px; }
.chart text.dp-gl { fill: #6d6656; font-size: 10px; }
.chart .dp-here { fill: rgba(253, 164, 85, .1); }
.dpread { margin-top: 6px; padding: 7px 10px; border: 1px solid var(--rule2); border-radius: 3px; background: #15130f; font-size: 13px; line-height: 1.45; color: #e6dcc4; }
.dpread b { font: 600 14px var(--num); color: var(--gold); }
.dpkeys { margin-top: 7px; }
.dpkeys .key { white-space: normal; }   /* the mail-confirmed line is long: it wraps on a phone */
.sw.dpk-on { background: #6f86a6; } .sw.dpk-mine { background: var(--gold); }
.sw.dpk-off { background: repeating-linear-gradient(135deg, rgba(159, 182, 216, .8) 0 2px, rgba(0, 0, 0, 0) 2px 5px); box-shadow: inset 0 0 0 1px rgba(159, 182, 216, .6); }
.sw.dpk-usual { height: 0; border-top: 2px dashed rgba(255, 209, 0, .8); background: none; }

/* ---- the Support page (11-12): Mara's concept and palette. Copper is TNC; gold is the Supporter's, used sparingly ---- */
body.sup { --sup-bg: #10141b; --sup-cu: #b98250; --sup-gold: #d8ab63; --sup-ink: #eae1ce; background: var(--sup-bg); }
.supwrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px; color: var(--sup-ink); }
.supwrap h1, .supwrap h2, .supwrap h3 { font-family: var(--serif); font-weight: normal; color: var(--sup-ink); text-shadow: 0 1px 0 #000; }
.supwrap p { line-height: 1.5; }
.suphero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 26px 28px; border-radius: 6px;
  background: radial-gradient(ellipse at 75% 55%, rgba(185, 130, 80, .22), rgba(16, 20, 27, 0) 60%), linear-gradient(180deg, #151a23, #0d1016);
  border: 1px solid rgba(185, 130, 80, .35); }
.supeye { margin: 0 0 6px; color: var(--sup-cu); font-size: 12.5px; letter-spacing: 2px; }
.suphero h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.suphero h2 { margin: 6px 0 14px; font-size: clamp(18px, 2.6vw, 22px); color: var(--sup-cu); }
.suphero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .7)); }
.supprice { margin: 16px 0 4px; font-size: 15px; }
.supprice b { font-size: 26px; color: var(--sup-gold); font-family: var(--serif); font-weight: normal; }
.supprice > span { display: block; color: #b9b0a0; font-size: 14px; }
.supbtn { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 10px 22px 12px; border-radius: 5px; cursor: pointer;
  font: 17px var(--serif); color: #2a1a08; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 236, 200, .45);
  background: linear-gradient(180deg, #f0cf8e 0%, #d8ab63 45%, #b98a45 55%, #c99a55 100%);
  border: 1px solid #4a3010; box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .5), inset 0 -2px 0 rgba(90, 55, 15, .5), 0 2px 6px rgba(0, 0, 0, .6); }
.supbtn:hover { filter: brightness(1.08); } .supbtn:disabled { opacity: .6; cursor: wait; }
.supbtn.copper { color: #fff4e6; text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #c98a55 0%, #b98250 45%, #8a5a30 55%, #9c6838 100%); border-color: #2a1606; }
.supfine { margin-top: 10px; color: #b9b0a0; font-size: 13.5px; }
.supcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.supcard { padding: 22px 24px; border-radius: 6px; background: linear-gradient(180deg, #171c25, #11151c); border: 1px solid rgba(185, 130, 80, .3); }
.supcard h2 { margin: 0 0 4px; font-size: 22px; }
.suplead { margin: 0 0 10px; font-size: 17px; color: var(--sup-cu); font-family: var(--serif); }
.supbook { margin-top: 14px; padding: 14px 16px; border-radius: 4px; color: #3a2a16;
  background: linear-gradient(180deg, #efe2c4, #e2d0a8); box-shadow: inset 0 0 0 1px rgba(90, 60, 25, .35), inset 0 0 24px rgba(120, 80, 30, .25), 0 6px 14px rgba(0, 0, 0, .5); }
.supbook table { width: 100%; border-collapse: collapse; font-size: 14px; }
.supbook th { text-align: left; font-weight: normal; font-family: var(--serif); color: #6a4a22; border-bottom: 1px solid rgba(90, 60, 25, .35); padding: 2px 6px 6px; }
.supbook td { padding: 5px 6px; border-bottom: 1px dotted rgba(90, 60, 25, .25); }
.supbook th:last-child, .supbook td:last-child { text-align: right; }
.supchat { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: rgba(0, 0, 0, .55); border: 1px solid #2a2f38; display: grid; gap: 10px; }
.supname { font-size: 17px; font-family: var(--serif); cursor: default; outline: none; }
.supname .rep { color: var(--epic); }
.supname .who { color: #69ccf0; }
.supname small { display: block; margin-top: 1px; font: 12.5px system-ui, sans-serif; color: #8f8778; }
.supname.patron .mark { color: var(--sup-cu); display: inline-block; }
.supname.patron:hover .mark, .supname.patron:focus .mark { animation: supspark 1.2s ease-in-out infinite; }
.supname.gilded .who { text-shadow: 0 0 6px rgba(216, 171, 99, .75), 0 0 1px #000; }
.supname.gilded .mark { color: var(--sup-gold); text-shadow: 0 0 6px rgba(216, 171, 99, .8); }
.supname.gilded:hover .who, .supname.gilded:focus .who { animation: supglow 1.6s ease-in-out infinite; }
@keyframes supspark { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.35) rotate(20deg); opacity: .7; } }
@keyframes supglow { 0%, 100% { text-shadow: 0 0 6px rgba(216, 171, 99, .75), 0 0 1px #000; } 50% { text-shadow: 0 0 12px rgba(240, 207, 142, 1), 0 0 2px #000; } }
.supfree { margin-top: 22px; padding: 34px 26px; text-align: center; border-radius: 6px; background: #0b0e13; border: 1px solid #252a33; }
.supfree h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.supfree-sub { margin: 6px 0 20px; color: var(--sup-cu); font-size: 17px; }
.supfree-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.supfree-grid li { padding: 12px 10px; border-radius: 4px; background: #141922; border: 1px solid #262c36; font-size: 15px; }
.supfree-grid li span { display: block; font-size: 11.5px; letter-spacing: 1px; color: var(--sup-cu); text-transform: uppercase; margin-bottom: 3px; }
.supfree-note { max-width: 640px; margin: 20px auto 0; color: #cfc6b4; font-size: 14.5px; }
.supplan { position: relative; max-width: 520px; margin: 30px auto 0; padding: 30px 30px 24px; text-align: center; border-radius: 8px;
  background: linear-gradient(180deg, #1a1f29, #12161d); border: 1px solid rgba(216, 171, 99, .55); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .6); }
.supplan-coin { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 2px 4px #000); }
.supplan h2 { margin: 4px 0 6px; font-size: 24px; color: var(--sup-gold); }
.supprice.big b { font-size: 32px; }
.supor { margin: 0 0 12px; color: #b9b0a0; }
.supplan ul { text-align: left; margin: 6px 0 14px; padding-left: 20px; line-height: 1.55; }
.supterm { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14.5px; }
.supterm label { cursor: pointer; }
.suphave { margin: 6px 0 0; color: var(--sup-gold); font-family: var(--serif); font-size: 17px; }
.supmsg { min-height: 1.2em; margin: 8px 0 0; color: var(--sup-gold); font-size: 14px; }
.suppatron { max-width: 520px; margin: 22px auto 0; padding: 22px 26px; text-align: center; border-radius: 6px; background: #161310; border: 1px solid rgba(185, 130, 80, .45); }
.suppatron h2 { margin: 6px 0 2px; font-size: 21px; }
.supgive { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.supgive .dollar { color: #b9b0a0; } .supgive .box { width: 4.5em; }
.supgive .supbtn { margin-top: 0; }
.supfaq { max-width: 720px; margin: 34px auto 0; }
.supfaq h3 { margin: 18px 0 4px; font-size: 18px; color: var(--sup-cu); }
.supfaq p { margin: 0; color: #d4ccbb; }
.supend { margin: 34px 0 0; text-align: center; color: #b9b0a0; font-size: 14px; }
.supend img { vertical-align: -3px; margin-right: 4px; }
@media (max-width: 760px) {
  .suphero, .supcards { grid-template-columns: 1fr; }
  .suphero-art { order: -1; }
  .supfree-grid { grid-template-columns: 1fr 1fr; }
}
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }   /* the footer's Privacy link (11-12) */
.credit a:hover { color: #d8ab63; }
/* the founder's News in the game form (Account page, 11-12): room, the line, Post on one row; it wraps on a phone */
.nform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.nform .box { height: 26px; font: 14px var(--num); }
.nform #ntext { flex: 1 1 260px; min-width: 0; }
.nform .btn { margin-left: 0; height: 26px; padding: 0 14px 2px; font-size: 13px; }
.nlist { list-style: none; margin: 12px 0 0; padding: 0; }
.nlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.nlist .ntext { flex: 1 1 100%; overflow-wrap: anywhere; }
.nlist .nmeta { flex: 1 1 auto; color: #8f8166; font-size: 12.5px; }
.nlist .btn { height: 24px; padding: 0 12px 2px; font-size: 12.5px; }
/* price alerts (11-12): where they ring, the Account list, and the item page's line under the quote */
.aways .hp.aswitch { margin-top: 8px; }
.aways .hp.aswitch.off { color: #8f8166; }
.alist { margin: 8px 0 0; }
.alist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.alist li > a { flex: 1 1 100%; overflow-wrap: anywhere; }
.alist .ameta, .alist .astate { flex: 1 1 auto; color: #8f8166; font-size: 12.5px; }
.alist .rattle { color: #c9773b; font-style: italic; }
.alist .btn { height: 24px; padding: 0 12px 2px; font-size: 12.5px; }
.ialert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; font-size: 14px; color: #b9ad94; }
.ialert .btn { height: 26px; padding: 0 12px 2px; font-size: 13px; margin: 0; }
.ialert .gsc { display: inline-flex; align-items: center; gap: 4px; }
.ialert .gsc input { width: 56px; text-align: right; }
.ialert .gsc input.s, .ialert .gsc input.c { width: 38px; }
.ialert .pmsg { flex: 1 1 100%; }
.ialert a { color: #e8c766; }
.aways a, .alist a { color: #e8c766; }
/* the plans page (11-13; David's layout pass 4:18 PM): a compact intro with a real monthly/yearly switch, three plans in
   one row (stacked on a phone) with Both featured, David's notes as a short row, the gift, then everything compared.
   Each card is its own object: a brighter top than the page, the name and price high in contrast, the button the same
   size on every card. The site's own palette throughout. */
.nwrap.plans { max-width: 1120px; gap: 18px; padding-top: 10px; }
.pintro { display: grid; justify-items: center; gap: 10px; padding: 8px 0 2px; }
.pintro .nsub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pintro .nsub.small { margin-top: -8px; font-size: 13px; color: var(--ink2); }   /* David's second line, smaller (11-14) */
.pterm { display: inline-flex; gap: 2px; padding: 3px; border-radius: 7px; background: var(--well); border: 1px solid var(--bevel); box-shadow: 0 0 0 1px #000; }
.pterm button { min-width: 110px; padding: 7px 20px 8px; border: 0; border-radius: 5px; cursor: pointer; font: 15px var(--serif); color: var(--ink2); background: transparent; }
.pterm button:hover { color: #fff; }
.pterm button.on { color: #fff; background: linear-gradient(180deg, #6e3b1d 0%, #4a2410 55%, #36190a 100%); box-shadow: inset 0 1px 0 rgba(255, 210, 170, .35), inset 0 0 0 1px var(--cu); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 10px; }
@media (max-width: 900px) { .pcards { grid-template-columns: minmax(0, 1fr); max-width: 520px; width: 100%; margin-inline: auto; } }
.pcard, .pgift { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 24px 22px; border-radius: 6px; text-align: center;
  background: linear-gradient(180deg, var(--rule2) 0%, var(--box-top) 28%, var(--box-bot) 100%); border: 1px solid var(--bevel);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 236, 214, .08), 0 10px 26px rgba(0, 0, 0, .55); }
.pcard.best { border-color: var(--cu); box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(207, 103, 41, .45), inset 0 1px 0 rgba(255, 210, 170, .14), 0 0 28px rgba(207, 103, 41, .22), 0 10px 26px rgba(0, 0, 0, .55); }
@media (min-width: 901px) { .pcard.best { margin: -8px 0; padding-top: 30px; padding-bottom: 30px; } }
.pcard.mine { border-color: var(--cu-hi); }
.pemblem { display: block; width: 150px; height: auto; aspect-ratio: 1; margin: -6px auto 8px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
@media (max-width: 900px) { .pemblem { width: 120px; } }
.pname { margin: 0; font-weight: normal; font-size: 23px; line-height: 1.15; color: var(--cu-hi); letter-spacing: .3px; text-shadow: 0 1px 0 #000; }
.pfor { min-height: 2.7em; margin: 6px 0 0; max-width: 30ch; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.pfor b { font-weight: normal; }
.pfor.pbest b { display: inline-block; padding: 3px 12px 4px; border-radius: 10px; font-size: 13px; letter-spacing: .5px; color: #1c0b02; background: linear-gradient(180deg, var(--cu-hi), var(--cu)); }
.pprice { margin: 6px 0 0; font-size: 15px; color: var(--ink2); }
.pprice b { font-weight: normal; }
.pprice [data-price] { font-size: 36px; line-height: 1.1; color: #fff; text-shadow: 0 1px 0 #000; }
.plead { max-width: 32ch; margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.pgets { width: 100%; margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.pgets li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid var(--rule2); font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.pgets li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--cu-hi); }
.pnote { width: 100%; margin: 6px 0 0; text-align: left; font: 12.5px/1.45 var(--num); color: var(--muted); }
.pgo { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-height: 40px; margin-top: auto; padding-top: 18px; }
.pgo .btn { justify-content: center; height: 38px; margin: 0; font-size: 15px; }
.pgo .pmine { align-self: center; font-size: 16px; letter-spacing: .5px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.pgo .anote { align-self: center; text-align: center; }
.ppolicy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; max-width: 920px; margin: 6px auto 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.ppolicy li { position: relative; padding-left: 12px; }
.ppolicy li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: var(--cu); }
.ppolicy b { font-weight: normal; color: var(--cu-hi); }
.pclosed { margin: 0; text-align: center; color: var(--cu-hi); }
.plans > .pmsg { text-align: center; }
.pgift { width: 100%; max-width: 560px; margin: 8px auto 0; padding: 20px 24px; }
.pgift .pgets { max-width: 260px; }
.pgift .addrow { justify-content: center; margin-top: 14px; }
.pgift .dollar { color: var(--ink2); }
/* Mara's glove from the donate strip, bigger, in the gift card's left column (David 11-15, 12:53 AM: "put it here too...
   left justified against the image area"); the words keep their own centered column to its right */
.pgift .gglove { position: absolute; left: 26px; top: 50%; width: 153px; height: auto; transform: translateY(-50%); pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
@media (min-width: 601px) { .pgift { padding-left: 200px; } }
@media (max-width: 600px) { .pgift .gglove { position: static; width: 110px; margin: -4px auto 8px; transform: none; } }
.pcomp { min-width: 0; margin-top: 22px; }
.pcomp .nsub { max-width: 70ch; margin: 6px auto 0; }
.pscroll { position: relative; overflow-x: auto; margin-top: 14px; border-radius: 6px; border: 1px solid var(--bevel); box-shadow: 0 0 0 1px #000; background: var(--box-bot); }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.ptable thead th { position: sticky; top: 0; font: 12px var(--num); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: var(--box-top); text-align: center; }
.ptable thead th:first-child { text-align: left; }
.ptable tbody th { font-weight: normal; text-align: left; color: var(--ink); }
.ptable td { width: 13%; text-align: center; }
.ptable td:last-child, .ptable thead th:last-child { background: rgba(207, 103, 41, .07); }
.ptable .pgrp th { padding-top: 16px; font: 12px var(--num); letter-spacing: 1px; text-transform: uppercase; color: var(--cu-hi); background: transparent; }
.ptable .cy { color: var(--up); font-size: 15px; }
.ptable .cn { color: var(--faint); }
.ptable .ctext { font: 13.5px var(--num); color: var(--ink); }
/* the whole list, folded under the short table (11-13) */
.pall { margin-top: 18px; }
.pall > summary { cursor: pointer; width: max-content; margin: 0 auto; padding: 6px 14px; border: 1px solid var(--cu-lo); border-radius: 6px;
  font: 13px var(--num); letter-spacing: .5px; color: var(--cu-hi); list-style: none; }
.pall > summary::-webkit-details-marker { display: none; }
.pall > summary::after { content: ' ▾'; }
.pall[open] > summary::after { content: ' ▴'; }
.pall > summary:hover, .pall > summary:focus-visible { background: rgba(207, 103, 41, .12); }
.pall[open] > .pscroll { margin-top: 12px; }
/* the reputation page (11-14): the plans page's intro and table, one column; a rank is its diamond and its name in the
   rank's color (copy.mjs writes the color from rules.js REP). The Account page's reputation line uses the same diamond. */
.nwrap.rpage { max-width: 860px; gap: 14px; padding-top: 10px; }
.rpage .panel { min-width: 0; }
.rtable { min-width: 0; }
.rtable td, .rtable thead th { width: auto; background: none; }
.rtable td:last-child, .rtable thead th:last-child { background: none; }
.rtable tbody th { white-space: nowrap; }
/* the earning table on a phone (11-14): each row stacked, the activity on its own line and its points and weekly limit
   under it, each with its column's name, so nothing hides behind a sideways swipe */
@media (max-width: 600px) {
  .rearn { display: block; }
  .rearn thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rearn tbody { display: block; }
  .rearn tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
  .rearn tbody th, .rearn tbody td { display: block; width: auto; padding: 0; border: 0; text-align: left; white-space: normal; }
  .rearn tbody th { grid-column: 1 / -1; }
  .rearn tbody td::before { display: block; margin-bottom: 1px; font: 11px var(--num); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .rearn tbody td:nth-of-type(1)::before { content: "Reputation"; }
  .rearn tbody td:nth-of-type(2)::before { content: "Weekly limit"; }
  .rearn tbody .pgrp { display: block; padding: 16px 12px 6px; }
  .rearn tbody .pgrp th { padding: 0; }
}
.rdia { display: inline-block; width: 9px; height: 9px; margin: 0 10px 1px 2px; transform: rotate(45deg); box-shadow: 0 0 0 1px #000; vertical-align: middle; }
.rkname { text-shadow: 0 1px 0 #000; }
.rlist li b { font-weight: normal; color: var(--cu-hi); }
.rpage .atext { max-width: none; }
.akv .arep { display: block; margin-top: 4px; font: 13px var(--num); color: var(--cu-hi); }
/* the reputation history (11-15, adventures.js): on Profile the latest 3 as plain lines with View all under them (David
   5:14 AM, so it doesn't run down the page; .rlast), and the whole list in its own section (David 4:03 AM: "just a list /
   50 long, pages / inset / so it's clean"; .rhist): an inset well like the others, its own scroll, Newer and Older under it */
.rlast { list-style: none; max-width: 520px; margin: 0; padding: 0; }
.rlast li { padding: 1px 0; font: 13px/1.45 var(--num); color: var(--ink2); overflow-wrap: anywhere; }
.rlast .rhp { font-weight: normal; color: var(--up); }
.rlast .rhw { color: var(--ink); }
.rlast .rhd { color: var(--muted); white-space: nowrap; }
.asec > .rhist { margin-top: 10px; }
.rhist { list-style: none; max-width: 520px; max-height: 300px; margin: 2px 0 0; padding: 2px 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--well); border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }
.rhist li { padding: 5px 10px; border-top: 1px solid var(--grid); font: 13px/1.4 var(--num); color: var(--ink2); overflow-wrap: anywhere; }
.rhist li:first-child { border-top: 0; }
.rhist .rhp { font-weight: normal; color: var(--up); }
.rhist .rhw { color: var(--ink); }
.rhist .rhd { color: var(--muted); white-space: nowrap; }
.rhist.apay { margin-top: 10px; }   /* the payment history in Support & badges (11-15): the same inset lines */
.rhnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rhnav .btn { margin-left: 0; height: 26px; padding: 0 12px 2px; font-size: 13px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Community sharing on the Account page (11-13): the loot log switch under the sharing one, greyed out while sharing is off */
.adep { margin-top: 18px; }
.adep.off { opacity: .5; }
.adep.off .aswitch { cursor: default; }

/* ---------- the Crafting dashboard (craft.html, craft.js; David 11-13, 5:29 PM): the recipes, the recipe's full tree,
   CopperCompass beside it and the market under it. Scoped to .cpage. ---------- */
.cwrap { display: grid; gap: 12px; max-width: 1720px; margin: 0 auto; padding: 4px 16px 24px; }
.cpage .ctop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 9px 14px; }
.cpage .ctitle { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cpage .ctitle .ntitle { text-align: left; font-size: 25px; }
.cpage .ctitle .nsub { margin-top: 2px; max-width: 520px; font-size: 13px; text-align: left; }
@media (max-width: 1599px) { .cpage .ctitle .nsub { display: none; } }   /* one row of filters beside the title: the tree and its numbers need the height (David 7:12 PM) */
.cpage .anvil svg { display: block; width: 50px; height: 31px; filter: drop-shadow(0 2px 2px #000) drop-shadow(0 0 10px rgba(207, 103, 41, .35)); }
.cpage .ctop .filters { margin-top: 0; gap: 8px 12px; }
.cpage .dd select { width: 138px; }
.cpage #prof { width: 172px; }
.cpage .dd.sm select { width: 72px; }
.cpage .empty.sm { padding: 18px 10px; font-size: 13px; }
.cpage p.g { color: var(--muted); }
.cpage .g.sm { font: 12px var(--num); color: var(--muted); }
.cpage .nk { font: italic 13px var(--num); color: #b8a77f; }
.cpage .chip { display: inline-block; padding: 0 7px; border-radius: 3px; font: 12px/19px var(--num); letter-spacing: .4px; text-transform: uppercase; }
.cpage .chip.ok { color: #9be39e; border: 1px solid #3e7a4a; background: rgba(124, 196, 127, .12); }
.cpage .chip.buy { color: #9cc4f0; border: 1px solid #3d5f8a; background: rgba(85, 144, 212, .12); }
.cpage .ptitle.sm2 { margin: 0 0 6px; font-size: 14px; text-align: left; }

.cgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
@media (min-width: 1500px) { .cgrid { grid-template-columns: 280px minmax(0, 1fr) 340px; } }
@media (max-width: 1199px) { .cgrid { grid-template-columns: 240px minmax(0, 1fr); } .ccomp { grid-column: 2; } }
@media (max-width: 860px) { .cgrid { grid-template-columns: minmax(0, 1fr); } .ccomp { grid-column: auto; } }

/* the recipe list */
.clist { padding: 10px 10px 12px; }
.clhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.clhead .ptitle { margin: 0; font-size: 18px; text-align: left; }
#rcount { margin-left: 4px; white-space: nowrap; font: 11.5px var(--num); color: var(--muted); }
.csearch { width: 100%; margin-bottom: 8px; }
/* Show categories (11-14): off, the list is one flat list, each row's category under its name */
.rcats { display: flex; align-items: center; gap: 7px; margin: -2px 0 8px; font: 13px var(--num); color: var(--ink2); cursor: pointer; user-select: none; }
.rcats input { margin: 0; accent-color: var(--cu); cursor: pointer; }
.rcats:hover { color: var(--ink); }
.rrow.flat { padding-block: 4px; }
.rrow .nmw { display: flex; flex-direction: column; min-width: 0; }
.rrow .nmw .rc { font: 11px var(--num); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rgroups { max-height: 640px; overflow: auto; border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .7); }
.rgroups::-webkit-scrollbar { width: 12px; }
.rgroups::-webkit-scrollbar-track { background: linear-gradient(90deg, #050403, #15110c, #050403); }
.rgroups::-webkit-scrollbar-thumb { border-radius: 6px; border: 2px solid #0a0806; background: radial-gradient(circle at 40% 50%, #ffd2a8 0 8%, var(--cu) 30%, var(--cu-lo) 90%); }
.rcat { all: unset; box-sizing: border-box; position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 9px; cursor: pointer;
  font: 14px var(--serif); color: var(--cu-hi); text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #2c251e 0%, #191511 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, .1), inset 0 -1px 0 #000; }
.rcat:hover { color: #fff; }
.rcat:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: -1px; }
.rcat .n { margin-left: auto; font: 12px var(--num); color: var(--muted); }
.chev { flex: none; width: 7px; height: 7px; margin: -3px 2px 0; border-right: 2px solid var(--cu); border-bottom: 2px solid var(--cu); transform: rotate(45deg); transition: transform .15s; }
.rgrp.shut .chev { margin-top: 0; transform: rotate(-45deg); }
.rgrp.shut .ritems { display: none; }
.rrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 3px 8px 3px 10px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.rrow:hover { background: rgba(253, 164, 85, .07); }
.rrow.on { background: linear-gradient(90deg, rgba(253, 164, 85, .2), rgba(253, 164, 85, .04)); box-shadow: inset 2px 0 0 var(--cu-hi), inset 0 0 0 1px rgba(253, 164, 85, .35); }
.rrow .nm { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.rrow .pf { font: 12px var(--num); white-space: nowrap; }
.rrow .pf.none { color: var(--faint); }

/* the recipe: its header, the tabs, the body and the numbers under it, in the copper-edged window */
.crec { padding: 12px 14px; border-color: #7a4a26; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 3px 10px rgba(0, 0, 0, .55), 0 0 22px rgba(207, 103, 41, .1), 0 8px 22px rgba(0, 0, 0, .45); }
.rhead { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.rico { flex: none; text-decoration: none; }
.rico .slot.big { width: 56px; height: 56px; border-radius: 8px; border: 2px solid #000; box-shadow: 0 0 0 1px var(--cu), 0 0 14px rgba(253, 164, 85, .35); }
.rico:hover .slot.big { box-shadow: 0 0 0 1px var(--cu-hi), 0 0 18px rgba(253, 164, 85, .55); }
.rtt { min-width: 0; }
.rname { margin: 0; font-weight: normal; font-size: 26px; line-height: 1.1; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.rsub { margin-top: 3px; font-size: 13.5px; color: var(--ink2); }
.rsub a { text-decoration: none; }
.rsub a:hover { text-decoration: underline; }
.racts { margin-left: auto; align-self: flex-start; }
.rtabbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.rtabs { display: flex; flex: 1 1 420px; gap: 4px; margin: 0; }
.rtabs .tab { flex: 0 1 auto; padding: 0 16px; }
.rbody { margin-top: 10px; min-height: 280px; }

/* the Crafting Tree: the flow runs left to right into the product; each node's parts are to its left, joined by copper
   lines where they're on the cheapest path */
.tlead, .tkey { position: absolute; left: 7px; z-index: 2; padding: 3px 8px; border-radius: 4px; font: 12px var(--num); color: var(--muted); pointer-events: none;
  background: rgba(12, 10, 7, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.tlead { top: 7px; }
.tkey { bottom: 7px; }
.tbig .tlead, .tbig .tkey { display: none; }
.tlead b { font-weight: normal; color: var(--ink); }
.tkey { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100% - 14px); }
.tkey .sw { margin-left: 6px; }
.tkey .sw:first-child { margin-left: 0; }
.sw.tl-on { background: var(--cu-hi); box-shadow: 0 0 5px rgba(253, 164, 85, .8); }
.sw.tl-off { background: #4a3f33; }
.tbox { position: relative; display: grid; height: 300px; overflow-x: auto; overflow-y: hidden; padding: 14px; border: 1px solid #000; border-radius: 4px;   /* its height: craft.js sizeBox; never scrolls up and down on its own; the wheel over it zooms (craft.js zoomer) */
  background: radial-gradient(ellipse 55% 75% at 88% 50%, rgba(207, 103, 41, .17), rgba(0, 0, 0, 0) 70%),
    radial-gradient(ellipse 45% 60% at 8% 100%, rgba(110, 70, 25, .12), rgba(0, 0, 0, 0) 70%), var(--well);
  box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 12px rgba(0, 0, 0, .8); }
.tbox { cursor: grab; }   /* it pans by press and drag (craft.js pan) */
.tbox.dragging, .tbox.dragging * { cursor: grabbing !important; user-select: none; }
.tbox:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: 1px; }
/* the zoom, in the box's top right corner, and the large view over the page (craft.js zoomer, openBig) */
.twrap { position: relative; }
.tctl { position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; align-items: center; gap: 1px; padding: 2px; border-radius: 4px;
  border: 1px solid var(--rule2); background: rgba(12, 10, 7, .88); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .6); }
.tctl button { all: unset; box-sizing: border-box; display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 3px; cursor: pointer;
  font: 16px/1 var(--num); color: var(--ink2); }
.tctl button.zt { font-size: 12.5px; }
.tctl button:hover { color: #fff; background: rgba(253, 164, 85, .14); }
.tctl button:focus-visible { outline: 1px solid var(--cu-hi); outline-offset: -1px; }
.tctl svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tctl .tzv { min-width: 36px; font: 11.5px var(--num); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.tover { position: fixed; inset: 0; z-index: 70; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 3vh 2.5vw; background: rgba(0, 0, 0, .72); }
.tbig { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; padding: 10px 12px 12px; border: 1px solid var(--cu); border-radius: 6px;
  background: linear-gradient(180deg, #23201c 0%, #121009 100%); box-shadow: 0 0 0 1px #000, 0 0 30px rgba(207, 103, 41, .2), 0 24px 60px rgba(0, 0, 0, .8); }
.tbighead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-right: 4px; }
.tbighead b { font-weight: normal; font-size: 18px; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.tbighead span { font: 12px var(--num); color: var(--muted); }
.tbig .twrap { flex: 1; min-width: 0; min-height: 0; }
.tbig .tbox { height: 100%; }
.tbox.lmore { box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 12px rgba(0, 0, 0, .8), inset 30px 0 22px -20px rgba(253, 164, 85, .4); }   /* more of the tree to its left */
.tlead .tmore { color: var(--cu-hi); }
.tbox::-webkit-scrollbar { height: 12px; width: 12px; }
.tbox::-webkit-scrollbar-track { background: linear-gradient(180deg, #050403, #15110c, #050403); }
.tbox::-webkit-scrollbar-thumb { border-radius: 6px; border: 2px solid #0a0806; background: radial-gradient(circle at 50% 40%, #ffd2a8 0 8%, var(--cu) 30%, var(--cu-lo) 90%); }
.ttree { display: flex; min-width: max-content; margin: auto; }   /* in the middle while it fits, from the left edge once it doesn't */
.tsub { --tl: #4a3f33; --tg: none; position: relative; display: flex; align-items: center; }
.tsub.on { --tl: var(--cu); --tg: 0 0 6px rgba(253, 164, 85, .55); }
.tkids { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-right: 28px; }   /* every part's node against the bus */
/* each part's line out to its parent's bus, the bus between the first part and the last, and the parent's line in */
.tkids > .tsub::after, .tkids + .tnode::before { content: ""; position: absolute; top: 50%; width: 14px; height: 2px; margin-top: -1px; background-color: var(--tl); box-shadow: var(--tg); }
.tkids > .tsub::after { left: 100%; }
.tkids + .tnode::before { right: 100%; }
.tsub:not(.kc) > .tkids + .tnode::before { background-color: #4a3f33; box-shadow: none; }   /* kc: its parts are on the cheapest path */
.tkids > .tsub::before { content: ""; position: absolute; left: calc(100% + 12px); top: -5px; bottom: -5px; width: 2px; background-color: var(--tl); box-shadow: var(--tg); }
.tkids > .tsub:first-child::before { top: 50%; }
.tkids > .tsub:last-child::before { bottom: 50%; }
.tkids > .tsub:only-child::before { display: none; }
/* a spark running along the lines on the cheapest path */
.tkids > .tsub.on::after, .tsub.kc > .tkids + .tnode::before {
  background-image: linear-gradient(90deg, rgba(255, 230, 190, 0) 0%, rgba(255, 236, 205, .95) 50%, rgba(255, 230, 190, 0) 100%);
  background-size: 14px 100%; background-repeat: no-repeat; animation: tflow 1.8s linear infinite; }
@keyframes tflow { from { background-position: -14px 0; } to { background-position: 30px 0; } }
.tnode { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 9px; width: 194px; padding: 7px 9px 7px 7px;
  border-radius: 6px; border: 1px solid #4a3d30; background: linear-gradient(180deg, #2b231b 0%, #15110d 100%);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 236, 214, .08), 0 4px 12px rgba(0, 0, 0, .55);
  animation: tin .35s ease-out both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes tin { from { opacity: 0; transform: translateX(-6px); } }
.tnode.on { border-color: #9a5428; box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 236, 214, .1), 0 0 12px rgba(253, 164, 85, .16), 0 4px 12px rgba(0, 0, 0, .55); }
.tsub.off > .tnode { opacity: .6; }
.tsub.off > .tnode:hover { opacity: 1; }
.tnode.root { width: 222px; padding: 12px 12px 11px; border: 1px solid var(--cu-hi);
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(253, 164, 85, .2), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, #33281d 0%, #140f0b 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(207, 103, 41, .22), 0 0 28px rgba(253, 164, 85, .28), 0 8px 20px rgba(0, 0, 0, .6); }
.tnode.cycle { border-style: dashed; }
.tnode .ti { position: relative; display: block; text-decoration: none; }
.tnode .ti .slot { width: 38px; height: 38px; border-radius: 5px; border: 1px solid #000; box-shadow: 0 0 0 1px #6a4a30; transition: box-shadow .15s; }
.tnode.root .ti .slot.big { width: 50px; height: 50px; border-radius: 7px; box-shadow: 0 0 0 1px var(--cu-hi), 0 0 12px rgba(253, 164, 85, .45); }
.tnode .ti:hover .slot, .tnode .ti:focus-visible .slot { box-shadow: 0 0 0 1px var(--cu-hi), 0 0 10px rgba(253, 164, 85, .6); }
.tnode .tq { position: absolute; right: -5px; bottom: -5px; padding: 0 3px; font: 11px/14px var(--num); color: #fff; background: #000; border: 1px solid #5a4632; border-radius: 3px; }
.tnode .tb { min-width: 0; }
.tnode .tn { display: block; overflow: hidden; font-size: 13.5px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; text-shadow: 0 1px 0 #000; }
.tnode .tn:hover { text-decoration: underline; }
.tnode.root .tn { font-size: 16px; white-space: normal; }
.tnode .m { font-size: 12.5px; }
.tnode .tl1 { margin-top: 2px; overflow: hidden; font: 11.5px var(--num); color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.tnode .tl2 { margin-top: 3px; font: 11px/1.3 var(--num); color: var(--muted); }
.tnode .tl2 a { color: var(--ink2); text-decoration: none; }
.tnode .tl2 a:hover { color: var(--cu-hi); text-decoration: underline; }
.tnode .tl2.cyc { color: #c9a26b; }
.tnode .tbc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tnode .ttot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(253, 164, 85, .28); font: 12.5px var(--num); color: var(--cu-hi); }
.tnode .ttot .m { font-size: 16px; white-space: nowrap; }
.tnode .ttot { flex-wrap: wrap; gap: 0 8px; }
.tnode:hover { border-color: #c87a3e; }
.tnode.root:hover { border-color: #ffd2a8; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 5px; border-radius: 3px; font: normal 11px var(--num); color: var(--ink2); white-space: nowrap;
  border: 1px solid #3b3125; background: rgba(0, 0, 0, .3); }
.pill .m { font-size: 11.5px; }
.pill.on { color: #fff; }
.pill.b.on { border-color: #4f7fb8; background: rgba(85, 144, 212, .2); }
.pill.c.on { border-color: #4f9a70; background: rgba(62, 158, 116, .22); }
.pill.v.on { border-color: #7a6a52; background: rgba(201, 184, 143, .14); }
.tnode .pill.on.b::after, .tnode .pill.on.c::after { content: "\2713"; color: var(--up); }
.pill.na { opacity: .6; }
.tkey .pill { margin-left: 2px; }
/* a mat's source, at the far left of its branch: a link that opens CopperCompass on it */
.tsrc { display: flex; align-items: center; gap: 7px; width: 116px; padding: 5px 9px; border-radius: 16px; text-decoration: none; color: var(--muted);
  border: 1px dashed #5a4a38; background: rgba(0, 0, 0, .4); transition: box-shadow .15s, border-color .15s; animation: tin .35s ease-out both; animation-delay: calc(var(--d, 0) * 45ms + 45ms); }
.tsrc:hover, .tsrc:focus-visible, .tsrc.sel { border-style: solid; border-color: var(--cu-hi); box-shadow: 0 0 10px rgba(253, 164, 85, .32); }
.tsrc.vendor { color: #d9b77a; }
.tsrc.farm { color: #7cc47f; border-color: #3c6b45; }
.tsrc.how { color: var(--cu-hi); border-color: #6a4a30; }   /* from the item's type: a recipe, Herbalism, Mining... */
.cs .g a { color: var(--ink2); }
.cs .g a:hover { color: var(--cu-hi); }
.tsi svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tst { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.tst b { overflow: hidden; font-weight: normal; font-size: 12.5px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.tst small { overflow: hidden; font: 10.5px var(--num); color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .tnode, .tsrc { animation: none; } .tkids > .tsub.on::after, .tsub.kc > .tkids + .tnode::before { animation: none; background-image: none; } }
/* under the tree: the recipe itself (where it's learned), and what the cheapest path buys */
.tfoot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; margin-top: 10px; }
.trec { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px dashed #7a4fb0; border-radius: 6px;
  background: linear-gradient(180deg, rgba(122, 79, 176, .16), rgba(0, 0, 0, .2)); box-shadow: 0 0 14px rgba(122, 79, 176, .12); }
.trec b { font-weight: normal; font-size: 14px; color: #e6d4fa; }
a.trec { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.trec:hover, a.trec:focus-visible { border-style: solid; border-color: #b48ae6; box-shadow: 0 0 16px rgba(160, 110, 230, .3); }
a.trec:hover b { text-decoration: underline; }
.trec b.q-COMMON { color: #e6d4fa; }
.trec .slot.big { width: 40px; height: 40px; border-radius: 5px; border: 1px solid #000; box-shadow: 0 0 0 1px #8a63c0, 0 0 10px rgba(160, 110, 230, .35); }
.trec .g .m { font-size: 13px; }
.trec .g { margin-top: 2px; font: 12px/1.35 var(--num); }
/* a recipe that's an item: the box in that item's quality color, the color its name has (David 11-14), --qc set by craft.js */
a.trec.item { border-color: var(--qc); background: linear-gradient(180deg, color-mix(in srgb, var(--qc) 12%, transparent), rgba(0, 0, 0, .2));
  box-shadow: 0 0 14px color-mix(in srgb, var(--qc) 14%, transparent); }
a.trec.item:hover, a.trec.item:focus-visible { border-color: var(--qc); box-shadow: 0 0 16px color-mix(in srgb, var(--qc) 32%, transparent); }
a.trec.item b.q-COMMON { color: var(--common); }
a.trec.item .slot.big { box-shadow: 0 0 0 1px var(--qc), 0 0 10px color-mix(in srgb, var(--qc) 35%, transparent); }
.tshop ul, .rel ul { list-style: none; margin: 0; padding: 0; border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2), inset 0 2px 6px rgba(0, 0, 0, .6); }
.tshop ul { max-height: 176px; overflow-y: auto; }   /* six lines, then it scrolls: the numbers under it stay on screen */
.tshop li { display: grid; grid-template-columns: 22px 46px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 1px 8px; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.tshop .si, .rel .si, .vch .si { display: block; text-decoration: none; }
.tshop .sq { font: 12.5px var(--num); color: var(--ink2); text-align: right; }
.tshop .sn, .rel .sn { overflow: hidden; font-size: 13.5px; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.tshop .sn:hover, .rel .sn:hover { text-decoration: underline; }
.tshop .sc { text-align: right; }
.tshop .sc .m, .rel .sc .m { font-size: 13.5px; }
.tshop .stot { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px 0; font-size: 14px; color: var(--cu-hi); }

/* the numbers under the tab */
.rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid #000; border-radius: 4px; background: #000; box-shadow: 0 0 0 1px var(--rule2); }
.rstats .st { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px; background: linear-gradient(180deg, #1f1914 0%, var(--well) 100%); }
.rstats .st > div { min-width: 0; }
.rstats .sic svg { display: block; width: 22px; height: 22px; fill: none; stroke: var(--cu); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(207, 103, 41, .45)); }
.rstats .sk { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.rstats .sv { overflow: hidden; font: 16px/1.2 var(--num); color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.rstats .sv .m { font-size: 15px; }
.rstats .ss { overflow: hidden; font: 10.5px var(--num); color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 1800px) { .rstats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 760px) { .rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rstats .sic { display: none; } }

/* Market, Details and Related Recipes */
.mk4, .nrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #000; border-radius: 3px; background: #000; }
.mk4 { margin-bottom: 12px; }
.nrow { margin-top: 8px; }
.mk4 > div, .nrow > div { min-width: 0; padding: 6px 9px; background: linear-gradient(180deg, #17130f, var(--well)); }
.qv.sm { font-size: 15px; }
.qv.sm .m { font-size: 14px; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.dr { display: flex; gap: 12px; padding: 6px 2px; font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.dk { flex: 0 0 118px; color: var(--ink2); }
.dv { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.dv a { text-decoration: none; }
.dv .g { font: 12px var(--num); }
.relg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.rel ul { max-height: 250px; overflow: auto; }
.rel li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 3px 8px; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.rel li small { font: 11.5px var(--num); color: var(--muted); }
.rel .sn { color: var(--ink); }

/* CopperCompass */
.ccomp { padding: 12px 12px 14px; border-color: #7a4a26;
  background: radial-gradient(ellipse 90% 30% at 50% 0%, rgba(207, 103, 41, .14), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, var(--box-top) 0%, var(--box-bot) 100%); }
.cchead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule2); }
.crose svg { display: block; width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(253, 164, 85, .35)); }
.cct { margin: 0; font-weight: normal; font-size: 19px; color: var(--cu-hi); letter-spacing: .4px; text-shadow: 0 2px 0 #000, 0 0 12px rgba(207, 103, 41, .35); }
.ccs { font-size: 12px; color: var(--ink2); }
.cleaves { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.cleaf { display: block; padding: 2px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; }
.cleaf:hover { border-color: #6a4a30; }
.cleaf.on { border-color: var(--cu-hi); box-shadow: 0 0 8px rgba(253, 164, 85, .4); }
.chd { display: flex; align-items: center; gap: 10px; }
.chd .ci { flex: none; text-decoration: none; }
.chd .slot.big { width: 46px; height: 46px; border-radius: 6px; border: 1px solid #000; box-shadow: 0 0 0 1px var(--cu); }
.chd > div { min-width: 0; }
/* .cn and .cs are under .cpage: the plans table's "Not included" cells are .cn too, and an item page's comment score .cs */
.cpage .cn { font-size: 17px; text-decoration: none; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
.cpage .cn:hover { text-decoration: underline; }
.ck { font-size: 12px; color: var(--muted); }
.chd .acts { margin-left: auto; }
.cnums { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1px; margin: 10px 0 12px; overflow: hidden; border: 1px solid #000; border-radius: 3px; background: #000; }
.cnums > div { min-width: 0; padding: 5px 7px; background: linear-gradient(180deg, #1d1813, var(--well)); }
.cnums span { display: block; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.cnums b { font: normal 14px var(--num); color: #fff; white-space: nowrap; }
.cnums .m { font-size: 13px; }
.csrc { display: grid; gap: 6px; margin-bottom: 12px; }
.cpage .cs { display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; border: 1px solid var(--rule2); border-radius: 4px; background: rgba(0, 0, 0, .28); }
.cpage .cs.dim { opacity: .75; }
.csi svg { display: block; width: 20px; height: 20px; fill: none; stroke: var(--cu-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs b { font-weight: normal; font-size: 13.5px; color: var(--ink); }
.cs .g { font: 12px/1.35 var(--num); }
.cs .m { font-size: 12.5px; }
.verdict { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--rule2); border-radius: 5px; background: rgba(0, 0, 0, .3); }
.verdict b { display: block; font-weight: normal; font-size: 15px; color: var(--ink); }
.verdict p { margin: 4px 0 0; font: 13px/1.4 var(--num); color: var(--ink2); }
.verdict p.g { font-size: 11.5px; color: var(--muted); }
.verdict.ok { border-color: #3e7a4a; background: linear-gradient(180deg, rgba(124, 196, 127, .16), rgba(0, 0, 0, .25)); box-shadow: 0 0 14px rgba(124, 196, 127, .1); }
.verdict.ok b { color: #a6e8a8; }
.verdict.no { border-color: #7a3d2e; background: linear-gradient(180deg, rgba(226, 122, 98, .14), rgba(0, 0, 0, .25)); }
.verdict.no b { color: #f0a08c; }
.probadge { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 3px; font: 11px/17px var(--num); letter-spacing: .5px; color: #1a1206; background: linear-gradient(180deg, #ffd9a8, #cf6729); vertical-align: 1px; }
.prol { margin: -2px 0 12px; font: 12px var(--num); color: var(--muted); }
.zbox { padding: 6px; border: 1px solid #000; background: var(--well); box-shadow: 0 0 0 1px var(--rule2); }
.zmap { display: block; width: 100%; height: auto; }
.zmap .zt { fill: rgba(255, 255, 255, .035); stroke: rgba(253, 164, 85, .08); stroke-width: .5; }
.zmap .zh { fill: var(--cu); }
.zmap .zh.mine { stroke: #a6e8a8; stroke-width: 1.5; }
/* the zone's world map under the grid (11-14): dimmed, so the squares and the outline read first; the empty squares
   are only faint lines, so the map shows through them, and a square's edge keeps a dim one visible on the ground */
.zmap .zimg { opacity: .5; }
.zmap.art .zt { fill: rgba(12, 10, 7, .12); stroke: rgba(255, 255, 255, .07); stroke-width: .5; }
.zmap.art .zh:not(.mine) { stroke: var(--cu-hi); stroke-opacity: .85; stroke-width: .75; }
/* a square under the tiles' rateH (15 minutes, David 11-14): what turned up there, no rate, so dashed at the faintest */
.zmap .zh.nr { stroke: var(--cu-hi); stroke-opacity: .7; stroke-width: .75; stroke-dasharray: 2.5 2; }
.zmap .zh.nr.mine { stroke: #a6e8a8; stroke-opacity: 1; stroke-width: 1.5; }
.zcredit { margin-top: 2px; font-size: 10.5px; color: var(--muted); opacity: .75; }
.bfarms { list-style: none; margin: 0; padding: 0; }
.bfarms li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 2px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.bfarms b { font-weight: normal; }
.bfarms .m { font-size: 13.5px; }

/* the market, under the recipe */
.cbelow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cbelow > .card { grid-column: span 12; margin: 0; }
@media (min-width: 1200px) { .cbelow > .cw7 { grid-column: span 7; } .cbelow > .cw5 { grid-column: span 5; } .cbelow > .cw4 { grid-column: span 4; } .cbelow > .cw8 { grid-column: span 8; } }
@media (min-width: 761px) and (max-width: 1199px) { .cbelow > .cw4 { grid-column: span 6; } }
.cbelow .chead.mt { margin-top: 16px; }
.cbelow .chart .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.vs td.nm a { display: inline; }
.vs td .m { font-size: 12.5px; }
.vs td, .vs th { padding-left: 5px; padding-right: 5px; }
table.t.vs { table-layout: auto; }
.vs td.nm { width: 100%; max-width: 0; }
.vsum { margin-top: 8px; }
.vsum > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px; font-size: 13px; color: var(--ink2); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.vsum > div:last-child { font-size: 14.5px; color: var(--cu-hi); border-bottom: 0; }
.vbadges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.vb { padding: 8px 10px; text-align: center; border: 1px solid var(--rule2); border-radius: 4px; background: rgba(0, 0, 0, .25); }
.vb span { display: block; font-size: 11.5px; color: var(--ink2); }
.vb b { font: normal 19px var(--num); color: #fff; }
.vb b.up { color: var(--up); } .vb b.down { color: var(--down); }
.bk td { height: 26px; }
.bk td.g2 { color: var(--muted); }
.vch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.vch li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vcb { flex: 1; min-width: 0; }
.vct { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.vct a { overflow: hidden; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.vct .g { white-space: nowrap; font: 12px var(--num); }
.vcv { margin-left: auto; font: 12.5px var(--num); white-space: nowrap; }
.vcv .m { font-size: 13px; }
.vbar { height: 6px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.vbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6d2506, #cf6729 60%, #fda455); box-shadow: 0 0 6px rgba(253, 164, 85, .5); }
.nkbig { margin: 8px 0 8px; font-size: 20px; }
.nkbig .nk { font-size: 20px; }

/* a phone: the panels stack, the tree scrolls sideways in its own box */
@media (max-width: 760px) {
  .cpage .ctop { padding: 12px; }
  .cpage .ctitle .ntitle { font-size: 22px; }
  .cpage .anvil svg { width: 46px; height: 29px; }
  .cpage .dd select { width: 120px; }
  .rgroups { max-height: 290px; }
  .rname { font-size: 20px; }
  .rhead { gap: 10px; }
  .rico .slot.big { width: 46px; height: 46px; }
  .rtabs { flex-wrap: wrap; }
  .rtabs .tab { flex: 1 1 auto; padding: 0 8px; font-size: 13px; }
  .tbox { height: 280px; padding: 12px 10px; }
  .tover { padding: 8px; }
  .tnode { width: 170px; }
  .tnode.root { width: 186px; }
  .tsrc { width: 104px; }
  .cpage #prof { width: 170px; }
  .tfoot, .dgrid, .relg, .vch { grid-template-columns: minmax(0, 1fr); }
  .mk4, .nrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the guides (11-14): the index (guides.html) and one guide (guide.html), a reading column like the privacy
   page's, the site's copper for headings and links ---------- */
.gpage .gwrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 48px; font-size: 16px; line-height: 1.55; }
.gpage .gwrap a { color: var(--cu-hi); }
.gpage .gwrap a.btn { color: var(--cu-text); }
.gpage h2, .gpage h3 { margin: 28px 0 6px; font-weight: normal; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.gpage h2 { font-size: 21px; }
.gpage h3 { font-size: 17px; }
.gpage p, .gpage li { color: #ded5c1; }
.glist { display: grid; gap: 4px; margin: 24px 0 0; padding: 0; list-style: none; }
.gitem { padding: 14px 16px; border: 1px solid var(--bevel); border-radius: 4px; background: linear-gradient(180deg, var(--box-top), var(--box-bot)); }
.gitem .gname { font-size: 20px; text-decoration: none; }
.gitem .gname:hover { text-decoration: underline; }
.gitem .gsum { margin: 4px 0 0; }
.gpage .gby { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.gback { margin: 0 0 14px; font-size: 14px; }
.gh1 { margin: 0; font-weight: normal; font-size: 30px; line-height: 1.15; color: var(--cu-hi); text-shadow: 0 1px 0 #000; }
.gtext { margin-top: 20px; }
.gtext ul, .gtext ol { padding-left: 22px; }
.gtext li { margin: 4px 0; }
.gtext b { color: var(--ink); }
/* "Submit a guide" on the index: the how, and with the store the form (guides.js) and the account's own submissions */
.gsubmit { margin-top: 36px; padding-top: 4px; border-top: 1px solid var(--rule2); }
body[data-store="soon"] .gsoon[hidden] { display: block; }   /* before the store: when submissions open */
.gsoon { color: var(--muted); }
.gpage .gdel { font-size: 14px; color: var(--muted); }   /* what deleting an account does to a guide (Fiona's M2) */
.gform { display: grid; gap: 8px; margin-top: 14px; }
.gform [hidden] { display: none; }
.gfields { display: grid; gap: 6px; }
.glab { font-size: 14px; color: var(--ink2); }
.gform .box { width: 100%; }
.gbodybox { height: auto; min-height: 260px; padding: 8px; resize: vertical; font: 15px/1.45 var(--serif); }
.grow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.grow .btn { margin-left: auto; }
.gcount { font: 13px var(--num); color: var(--muted); }
.gcount.over { color: #f0a08c; }
.gnote .btn { margin: 0 6px 0 0; }
.gminelist { padding-left: 20px; }
.gminelist .gstate { color: var(--muted); }
