/* WoW Onchain Docs: GitBook's layout (top bar, page tree, page, "On this page", Ctrl+K search, prev/next)
   dressed in the 1.12 UI: Friz Quadrata and Morpheus, the quest log's +/- buttons and title highlight,
   real item icons, tooltip-border callouts, the dialog box around search. Two themes: Night (default)
   and Parchment (the quest text page). Loaded only on /docs/ pages, after site.css and wow-real.css. */

:root {
  --dx-top: 62px; --dx-nav-w: 288px; --dx-toc-w: 236px; --dx-main-w: 780px;
  --dx-bg: #0d0b08; --dx-bg-2: #110e09; --dx-raise: #19140d;
  --dx-line: rgba(255, 209, 0, .16); --dx-line-2: rgba(255, 235, 190, .085);
  --dx-text: #e6dbc2; --dx-muted: #b3a688; --dx-faint: #857959;
  --dx-gold: #ffd100; --dx-head: #fff2cf; --dx-link: #ffd100;
  --dx-hi: rgba(255, 209, 0, .09); --dx-code: #0a0806; --dx-mark: rgba(255, 209, 0, .3);
  --dx-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
:root[data-dx="parchment"] {
  --dx-bg: #e7d5ab; --dx-bg-2: #dfcb9b; --dx-raise: #ecdcb8;
  --dx-line: rgba(92, 56, 14, .32); --dx-line-2: rgba(92, 56, 14, .16);
  --dx-text: #2b1d0e; --dx-muted: #5a4527; --dx-faint: #7b6340;
  --dx-gold: #6e3c00; --dx-head: #1b0f04; --dx-link: #8a2a06;
  --dx-hi: rgba(110, 60, 0, .1); --dx-code: #17110b; --dx-mark: rgba(160, 90, 0, .28);
  --dx-shadow: 0 10px 30px rgba(60, 30, 0, .3);
}

/* ------------------------------------------------------------ page: the site header steps aside */
body[data-page="docs"] { background: var(--dx-bg); color: var(--dx-text); }
body[data-page="docs"]::before { display: none; }
:root[data-dx="parchment"] body[data-page="docs"] { background: var(--dx-bg) url("/img/parchment.webp") 0 0 / 512px; }
body[data-page="docs"] .topbar, body[data-page="docs"] .sysmsg { display: none; }
:root:has(body[data-page="docs"]) { scroll-padding-top: calc(var(--dx-top) + 20px); scrollbar-color: #6b5426 var(--dx-bg); }
.dx ::selection, .dx-modal ::selection { background: var(--dx-mark); color: inherit; }
.dx :focus-visible, .dx-modal :focus-visible { outline: 2px solid var(--dx-gold); outline-offset: 2px; }
.dx kbd, .dx-modal kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid var(--dx-line); border-bottom-width: 2px;
  border-radius: 3px; background: var(--dx-raise); font: 11px/1.4 var(--f-ui); color: var(--dx-muted); text-align: center; }

/* ------------------------------------------------------------ top bar */
.dx-top { position: sticky; top: 0; z-index: 50; height: var(--dx-top); display: flex; align-items: center; gap: 20px;
  padding: 0 24px; background: var(--dx-bg); border-bottom: 1px solid var(--dx-line); box-shadow: 0 1px 0 rgba(0,0,0,.6); }
:root[data-dx="parchment"] .dx-top { background: #dcc694; box-shadow: 0 1px 0 rgba(255,255,255,.3); }
.dx-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; width: calc(var(--dx-nav-w) - 44px); }
.dx-brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.dx-brand span { font: 400 25px/1 var(--f-title); color: var(--dx-gold); padding-left: 14px; border-left: 1px solid var(--dx-line); }
.dx-search { flex: 1 1 auto; max-width: 460px; height: 34px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-style: solid; border-width: 0 8px; border-image: url("/wow/ui/input-c.png") 0 8 fill / 0 8px stretch;
  background: none; padding: 0 4px; font: 14.5px var(--f-ui); color: var(--dx-faint); text-align: left; }
.dx-search:hover { color: #fff; }
:root[data-dx="parchment"] .dx-search { color: #c9b98e; }
.dx-search-t { flex: 1; }
.dx-search-ico { width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10.2 10.2 15 15' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10.2 10.2 15 15' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.dx-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.dx-links > a:not(.btn) { font: 14.5px var(--f-ui); color: var(--dx-muted); text-decoration: none; }
.dx-links > a:not(.btn):hover { color: var(--dx-gold); }
.dx-theme { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--dx-line); border-radius: 3px; background: none; font: 13.5px var(--f-ui); color: var(--dx-muted); }
.dx-theme:hover { color: var(--dx-gold); border-color: var(--dx-gold); }
.dx-theme img { width: 16px; height: 16px; }
.dx-play.btn { font-size: 14.5px; min-height: 30px; padding: 7px 12px 6px; }
.dx-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--dx-line); border-radius: 3px; background: none; cursor: pointer;
  align-items: center; justify-content: center; flex: none; }
.dx-burger span, .dx-burger span::before, .dx-burger span::after { display: block; width: 18px; height: 2px; background: var(--dx-gold); position: relative; content: ""; }
.dx-burger span::before { position: absolute; top: -6px; } .dx-burger span::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------ three columns */
.dx-body { display: grid; grid-template-columns: var(--dx-nav-w) minmax(0, 1fr) var(--dx-toc-w); max-width: 1500px; margin: 0 auto; }

/* the page tree: the quest log */
.dx-nav { position: sticky; top: var(--dx-top); height: calc(100vh - var(--dx-top)); overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--dx-line-2); scrollbar-width: thin; }
.dx-nav-in { padding: 22px 14px 40px 18px; }
.dx-group { margin-top: 18px; }
.dx-group-h { display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 6px; border: 0; background: none; cursor: pointer;
  font: 15px var(--f-ui); color: var(--dx-gold); text-align: left; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
:root[data-dx="parchment"] .dx-group-h { text-shadow: none; }
.dx-pm { width: 16px; height: 16px; flex: none; background: url("/wow/ui/minus-button-up.png") center / 16px no-repeat; }
.dx-group-h[aria-expanded="false"] .dx-pm { background-image: url("/wow/ui/plus-button-up.png"); }
.dx-group-h:hover .dx-pm { filter: brightness(1.3); }
.dx-group-l { list-style: none; margin: 4px 0 0; padding: 0; }
.dx-group-h[aria-expanded="false"] + .dx-group-l { display: none; }
.dx-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 6px 10px 6px 31px; text-decoration: none;
  font: 15px/1.3 var(--f-ui); color: var(--dx-text); isolation: isolate; }
.dx-item .dx-ico { width: 22px; height: 22px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 0 0 2px rgba(255,209,0,.18); }
.dx-item:hover { color: #fff; background: var(--dx-hi); }
:root[data-dx="parchment"] .dx-item:hover { color: #000; }
.dx-item.cur { color: #fff; }
:root[data-dx="parchment"] .dx-item.cur { color: #000; }
.dx-item.cur::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #ffd100; opacity: .55;
  -webkit-mask: url("/wow/ui/quest-log-title-highlight-a.png") center / 100% 100% no-repeat; mask: url("/wow/ui/quest-log-title-highlight-a.png") center / 100% 100% no-repeat; }
.dx-home { padding-left: 10px; margin-bottom: 2px; }

/* ------------------------------------------------------------ the page */
.dx-main { min-width: 0; width: 100%; max-width: calc(var(--dx-main-w) + 120px); justify-self: center; padding: 34px 60px 70px; }
.dx-crumbs { display: flex; align-items: center; gap: 8px; font: 13.5px var(--f-ui); color: var(--dx-faint); margin-bottom: 18px; }
.dx-crumbs a { color: var(--dx-muted); text-decoration: none; }
.dx-crumbs a:hover { color: var(--dx-gold); }
.dx-crumbs i { font-style: normal; opacity: .6; }
.dx-head { display: flex; gap: 18px; align-items: flex-start; }
.dx-head-ico { width: 56px; height: 56px; flex: none; margin-top: 4px;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(255, 209, 0, .28), 0 6px 14px rgba(0,0,0,.55); }
.dx-head h1 { font: 400 clamp(34px, 3.6vw, 48px)/1.06 var(--f-title); color: var(--dx-head); margin: 0 0 10px; text-wrap: balance; }
.dx-lead { font-size: 18px; line-height: 1.6; color: var(--dx-muted); margin: 0; max-width: 62ch; }
.dx-meta { display: flex; gap: 16px; margin: 18px 0 0; padding: 0 0 22px 74px; border-bottom: 1px solid var(--dx-line-2);
  font: 13px var(--f-ui); color: var(--dx-faint); }
.dx-meta span + span { padding-left: 16px; border-left: 1px solid var(--dx-line-2); }

/* prose */
.dx-content { font: 16.5px/1.78 var(--f-ui); color: var(--dx-text); padding-top: 8px; }
.dx-content > :first-child { margin-top: 18px; }
.dx-content > h2:first-child { border-top: 0; padding-top: 0; margin-top: 30px; }
.dx-content p { margin: 0 0 16px; }
.dx-content h2 { position: relative; font: 400 31px/1.15 var(--f-title); color: var(--dx-gold); margin: 50px 0 14px; padding-top: 24px;
  border-top: 1px solid var(--dx-line-2); }
.dx-content h3 { position: relative; font: 400 19.5px/1.35 var(--f-ui); color: var(--dx-head); margin: 32px 0 8px; }
.dx-content h4 { font: 400 16.5px var(--f-ui); color: var(--dx-gold); margin: 22px 0 6px; }
.dx-content .anchor { position: absolute; left: -26px; padding-right: 8px; opacity: 0; text-decoration: none; color: var(--dx-faint); }
.dx-content h3 .anchor { top: 0; } .dx-content h2 .anchor { top: 30px; }
.dx-content .anchor::after { content: "#"; font: 18px var(--f-ui); }
.dx-content h2:hover .anchor, .dx-content h3:hover .anchor, .dx-content .anchor:focus-visible { opacity: 1; }
.dx-content a { color: var(--dx-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--dx-link) 38%, transparent);
  text-underline-offset: 3px; }
.dx-content a:hover { text-decoration-color: currentColor; }
.dx-content strong { color: var(--dx-head); font-weight: 400; text-shadow: .35px 0 0 currentColor; }
.dx-content em { font-style: italic; }
.dx-content ul, .dx-content ol { padding-left: 1.4em; margin: 0 0 18px; }
.dx-content li { margin-bottom: 6px; padding-left: 2px; }
.dx-content li::marker { color: var(--dx-gold); }
.dx-content code { font: .86em var(--f-mono); padding: .12em .4em; border-radius: 3px; word-break: break-word;
  background: var(--dx-hi); border: 1px solid var(--dx-line-2); color: var(--dx-head); }
.dx-content pre.code { position: relative; margin: 18px 0 22px; padding: 38px 18px 16px; overflow: auto; border-radius: 3px;
  background: var(--dx-code); border: 1px solid var(--dx-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  font: 14px/1.6 var(--f-mono); color: #eadfc4; }
.dx-content pre.code::before { content: attr(data-lang); position: absolute; left: 14px; top: 9px; font: 12px var(--f-ui); color: #857959; }
.dx-content pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.dx-copy { position: absolute; right: 8px; top: 6px; }
.dx-content .tbl { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--dx-line); border-radius: 3px; }
.dx-content table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.dx-content th { text-align: left; font-weight: 400; color: var(--dx-gold); background: var(--dx-raise); padding: 9px 14px;
  border-bottom: 1px solid var(--dx-line); }
.dx-content td { padding: 9px 14px; border-bottom: 1px solid var(--dx-line-2); vertical-align: top; }
.dx-content tr:last-child td { border-bottom: 0; }
.dx-content th:empty { display: none; }
.dx-content thead:not(:has(th:not(:empty))) { display: none; }   /* only a header with no labels at all (key-value tables) */
.dx-content td.r, .dx-content th.r { text-align: right; }
.dx-content hr.divider { border: 0; height: 1px; margin: 34px 0; background: linear-gradient(90deg, transparent, var(--dx-line), transparent); }
.dx-content img { border: 1px solid var(--dx-line); border-radius: 3px; }
.dx-content .item { text-shadow: 0 0 1px rgba(0,0,0,.6); }
:root[data-dx="parchment"] .dx-content .item { text-shadow: none; }
:root[data-dx="parchment"] .dx-content .item.q1 { color: #2b1d0e; }
:root[data-dx="parchment"] .dx-content .item.q2 { color: #128a00; }
:root[data-dx="parchment"] .dx-content .item.q3 { color: #0057b0; }
:root[data-dx="parchment"] .dx-content .item.q4 { color: #7a1fc0; }
:root[data-dx="parchment"] .dx-content .item.q5 { color: #b85c00; }
:root[data-dx="parchment"] .dx-content .money .amt { color: var(--dx-head); }

/* callouts: a tooltip, with the gossip icon for its kind */
.dx-content .callout { position: relative; isolation: isolate; margin: 22px 0; padding: 2px 6px 0 34px; border-radius: 0;
  border: 16px solid transparent; border-image: url("/wow/ui/tip-border-nine.png") 16 / 16px; background: none; box-shadow: none;
  color: #e6dbc2; font-size: 15.5px; line-height: 1.7; }
.dx-content .callout::before { content: ""; position: absolute; inset: -11px; z-index: -1; border-radius: 4px; background: rgba(9, 9, 25, .9); }
.dx-content .callout::after { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: url("/wow/ui/gossip-gossip-icon.png") center / 18px no-repeat; }
.dx-content .callout-tip::after { background-image: url("/wow/ui/available-quest-icon.png"); }
.dx-content .callout-warn::after { background-image: url("/wow/ui/dialog-alert-icon.png"); background-size: 22px; }
.dx-content .callout-dev::after { background-image: url("/wow/ui/trainer-gossip-icon.png"); }
.dx-content .callout p { margin-bottom: 10px; }
.dx-content .callout-title { font: 400 16.5px var(--f-ui); color: #ffd100; margin: 0 0 4px; }
.dx-content .callout-warn .callout-title { color: #ff7a52; }
.dx-content .callout-dev .callout-title { color: #c58cff; }
.dx-content .callout strong { color: #fff; }
.dx-content .callout a { color: #ffd100; }
.dx-content .callout code { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }

/* prev / next */
.dx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.dx-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; text-decoration: none; border: 1px solid var(--dx-line);
  border-radius: 3px; background: var(--dx-bg-2); transition: border-color .15s, background .15s; }
.dx-card:hover { border-color: var(--dx-gold); background: var(--dx-raise); }
.dx-next { text-align: right; grid-column: 2; }
.dx-card-k { font: 13px var(--f-ui); color: var(--dx-faint); }
.dx-card-t { font: 400 21px/1.2 var(--f-title); color: var(--dx-gold); }
.dx-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--dx-line-2); font-size: 14px; color: var(--dx-faint); }
.dx-foot p { margin: 0; }

/* ------------------------------------------------------------ "On this page" */
.dx-toc { position: sticky; top: var(--dx-top); align-self: start; max-height: calc(100vh - var(--dx-top)); overflow-y: auto;
  padding: 38px 22px 30px 8px; scrollbar-width: thin; }
.dx-toc-h { font: 13.5px var(--f-ui); color: var(--dx-muted); margin: 0 0 10px; }
.dx-toc-l { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--dx-line-2); }
.dx-toc-l a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent;
  font: 13.5px/1.4 var(--f-ui); color: var(--dx-faint); text-decoration: none; }
.dx-toc-l .l3 a { padding-left: 26px; font-size: 13px; }
.dx-toc-l a:hover { color: var(--dx-text); }
.dx-toc-l a.on { color: var(--dx-gold); border-left-color: var(--dx-gold); }

/* ------------------------------------------------------------ the docs home */
.dx-cover { margin: 0 0 30px; height: clamp(180px, 22vw, 290px); overflow: hidden; border: 1px solid var(--dx-line); border-radius: 3px;
  box-shadow: var(--dx-shadow); background: #000; }
.dx-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.dx-home-head { padding-bottom: 6px; }
.dx-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 10px; }
.dx-start { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; text-decoration: none; border: 1px solid var(--dx-line);
  border-radius: 3px; background: var(--dx-bg-2); transition: border-color .15s, background .15s; }
.dx-start:hover { border-color: var(--dx-gold); background: var(--dx-raise); }
.dx-start-ico { width: 40px; height: 40px; margin-bottom: 6px; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255,209,0,.25); }
.dx-start-t { font: 400 22px/1.15 var(--f-title); color: var(--dx-gold); }
.dx-start-s { font-size: 14px; line-height: 1.55; color: var(--dx-muted); }
.dx-shelf h2, .dx-asks h2 { font: 400 28px/1.15 var(--f-title); color: var(--dx-gold); margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--dx-line-2); }
.dx-shelf ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.dx-shelf a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 12px; text-decoration: none; border-radius: 3px; }
.dx-shelf a:hover { background: var(--dx-hi); }
.dx-shelf .dx-ico { width: 36px; height: 36px; flex: none; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255,209,0,.2); }
.dx-shelf b { display: block; font: 400 16.5px var(--f-ui); color: var(--dx-head); margin-bottom: 3px; }
.dx-shelf a:hover b { color: var(--dx-gold); }
.dx-shelf em { display: block; font-style: normal; font-size: 14px; line-height: 1.5; color: var(--dx-muted); }
.dx-asks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.dx-asks a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; color: var(--dx-text); border-radius: 3px; font-size: 15.5px; }
.dx-asks a:hover { background: var(--dx-hi); color: var(--dx-gold); }
.dx-asks img { flex: none; }

/* ------------------------------------------------------------ search: the dialog box */
.dx-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .62); display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; }
.dx-modal[hidden] { display: none; }
.dx-modal-box { position: relative; width: min(660px, 100%); max-height: 76vh; display: flex; flex-direction: column;
  border: 32px solid transparent; border-image: url("/wow/ui/dialog-border-nine.png") 32 / 32px; margin: -14px; }
.dx-modal-box::before { content: ""; position: absolute; inset: -22px; z-index: -1; background: url("/wow/ui/dialog-bg.png") 0 0 / 64px; }
.dx-q { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; border-bottom: 1px solid rgba(255, 209, 0, .2); color: #ffd100; }
.dx-q input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 19px var(--f-ui); color: #fff; caret-color: #ffd100; padding: 6px 0; }
.dx-q input:focus-visible { outline: 0; }
.dx-q:focus-within { border-bottom-color: rgba(255, 209, 0, .55); }
.dx-q input::placeholder { color: #776c56; }
.dx-q input::-webkit-search-cancel-button { display: none; }
.dx-results { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; min-height: 60px; scrollbar-width: thin; }
.dx-results li a { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; padding: 9px 10px; text-decoration: none; border-left: 2px solid transparent; }
.dx-results li img { grid-row: span 3; width: 30px; height: 30px; box-shadow: 0 0 0 1px #000; margin-top: 2px; }
.dx-results .r-page { font: 12.5px var(--f-ui); color: #857959; }
.dx-results .r-title { font: 16px var(--f-ui); color: #ffd100; }
.dx-results .r-snip { font: 13.5px/1.5 var(--f-ui); color: #bdb193; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx-results mark { background: rgba(255, 209, 0, .25); color: #fff; border-radius: 2px; padding: 0 1px; }
.dx-results li[aria-selected="true"] a, .dx-results li a:hover { background: rgba(255, 209, 0, .08); border-left-color: #ffd100; }
.dx-results .r-none { padding: 18px 10px; color: #a99c80; font-size: 15px; }
.dx-modal-foot { display: flex; gap: 18px; margin: 10px 0 0; padding: 10px 6px 0; border-top: 1px solid rgba(255, 209, 0, .14); font-size: 12.5px; color: #857959; }
.dx-modal-foot kbd { margin-right: 4px; }
.dx-modal kbd { background: #19140d; color: #b3a688; border-color: rgba(255,209,0,.2); }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1240px) {
  .dx-body { grid-template-columns: var(--dx-nav-w) minmax(0, 1fr); }
  .dx-toc { display: none; }
}
@media (max-width: 900px) {
  :root { --dx-top: 58px; }
  .dx-top { gap: 12px; padding: 0 16px; }
  .dx-burger { display: inline-flex; }
  .dx-brand { width: auto; gap: 10px; }
  .dx-brand img { height: 34px; }
  .dx-brand span { font-size: 21px; padding-left: 10px; }
  .dx-search { flex: 0 0 auto; width: 40px; margin-left: auto; justify-content: center; }
  .dx-search-t, .dx-search kbd { display: none; }
  .dx-links { margin-left: 0; gap: 10px; }
  .dx-links > a:not(.btn), .dx-theme-t { display: none; }
  .dx-theme { padding: 0 8px; }
  .dx-play.btn { display: none; }
  .dx-body { display: block; }
  .dx-nav { position: fixed; z-index: 60; left: 0; top: var(--dx-top); bottom: 0; height: auto; width: min(86vw, 320px);
    background: var(--dx-bg-2); border-right: 1px solid var(--dx-line); transform: translateX(-103%); transition: transform .22s ease; }
  :root[data-dx="parchment"] .dx-nav { background: #dcc694; }
  .dx.nav-open .dx-nav { transform: none; box-shadow: var(--dx-shadow); }
  .dx-scrim { position: fixed; inset: var(--dx-top) 0 0; z-index: 55; background: rgba(0,0,0,.5); }
  .dx-main { padding: 22px 16px 56px; }
  .dx-head { flex-direction: column; gap: 14px; }
  .dx-head-ico { width: 44px; height: 44px; }
  .dx-lead { font-size: 16.5px; }
  .dx-meta { padding-left: 0; }
  .dx-content { font-size: 16px; }
  .dx-content h2 { font-size: 26px; }
  .dx-content .anchor { display: none; }
  .dx-starts, .dx-shelf ul, .dx-asks ul { grid-template-columns: 1fr; }
  .dx-pager { grid-template-columns: 1fr; }
  .dx-next { grid-column: 1; }
  .dx-modal { padding-top: 6vh; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-nav, .dx-card, .dx-start { transition: none; }
}

/* ------------------------------------------------------------ calculators (What can you earn?) */
.dx-content .dx-calc { position: relative; isolation: isolate; margin: 26px 0 30px; padding: 18px 18px 6px;
  border: 1px solid var(--dx-line); border-radius: 3px; background: linear-gradient(180deg, var(--dx-raise), var(--dx-bg-2)); }
.dx-calc .calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dx-calc label { font: 400 16px var(--f-ui); color: var(--dx-gold); }
.dx-calc .calc-cap { font: 400 34px/1 var(--f-title); color: var(--dx-head); letter-spacing: .01em; }
.dx-calc .calc-range { width: 100%; margin: 14px 0 12px; accent-color: var(--dx-gold); cursor: pointer; }
.dx-calc .calc-range:focus-visible { outline: 2px solid var(--dx-gold); outline-offset: 4px; }
.dx-calc .calc-presets { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.dx-calc .calc-presets .btn[aria-pressed="true"] { color: #fff; filter: brightness(1.25) saturate(1.15); }
.dx-calc .calc-rate { margin: 14px 0 0; color: var(--dx-muted); font-size: 15px; }
.dx-calc .calc-rate b { font-weight: 400; color: var(--dx-head); }
.dx-calc .tbl { margin: 14px 0 12px; }
.dx-calc td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-calc .calc-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--dx-line); border-radius: 2px;
  font: 11px/1.5 var(--f-ui); color: var(--dx-faint); vertical-align: 1px; }
.dx-calc .calc-foot { margin: 0 0 12px; font-size: 13.5px; color: var(--dx-faint); }
.dx-calc tr.cur td { background: rgba(255, 128, 0, .08); }
.dx-calc .crate-recent { margin: 6px 0 12px; padding-left: 18px; }
.dx-calc .crate-recent li { margin: 3px 0; }
.dx-calc .calc-when { color: var(--dx-faint); font-size: 13px; margin-left: 6px; }
.dx-calc .crate-form { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin: 12px 0 8px; }
.dx-calc .crate-form label { display: flex; flex-direction: column; gap: 4px; font: 400 13px var(--f-ui); color: var(--dx-muted); }
.dx-calc .crate-in { min-width: 0; padding: 7px 9px; border: 1px solid var(--dx-line); border-radius: 2px; background: rgba(0, 0, 0, .35);
  color: var(--dx-head); font: 400 14px/1.2 ui-monospace, Consolas, monospace; }
.dx-calc .crate-in.short { width: 9em; }
.dx-calc .crate-in:focus-visible { outline: 2px solid var(--dx-gold); outline-offset: 1px; }
.dx-calc .crate-seeds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-size: 13.5px; color: var(--dx-muted); }
@media (max-width: 560px) { .dx-calc .crate-form { grid-template-columns: 1fr 1fr; } .dx-calc .crate-form label:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .dx-content .dx-calc { padding: 14px 12px 4px; }
  .dx-calc .calc-cap { font-size: 28px; }
  .dx-calc th:nth-child(3), .dx-calc td:nth-child(3) { display: none; }
}

/* ------------------------------------------------------------ share bar (```bar fence: Tokenomics) */
.dx-content .dx-bar { margin: 26px 0 30px; }
.dx-bar .bar-track { position: relative; display: flex; height: 38px; padding: 5px 7px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(#0d0b09, #000); border: 1px solid #000;
  box-shadow: inset 0 0 0 2px #8f7a52, inset 0 0 0 3px #2a2014, inset 0 0 0 4px #c9b07a, 0 0 0 1px #000, 0 6px 14px rgba(0,0,0,.55); }
.dx-bar .bar-seg { display: flex; align-items: center; justify-content: center; min-width: 0; flex-grow: 0; flex-shrink: 0;
  font: 400 15px/1 var(--f-num, var(--f-ui)); color: #fff; text-shadow: 0 1px 1px #000, 0 0 4px #000; }
.dx-bar .bar-seg + .bar-seg { box-shadow: inset 2px 0 0 #000; }
.dx-bar .bar-seg b { font-weight: 400; }
.dx-bar .tone-vault { background: linear-gradient(180deg, #b9dcff 0%, #4f8fe0 38%, #173f86 62%, #2f69bd 100%); }
.dx-bar .tone-pool { background: linear-gradient(180deg, #ffd98a 0%, #e7a12a 38%, #8a5108 62%, #c07a16 100%); }
.dx-bar .tone-team { background: linear-gradient(180deg, #9a9a9a 0%, #5d5d5d 50%, #3a3a3a 100%); }
.dx-bar .tone-q1 { background: linear-gradient(180deg, #f4f4f4 0%, #b8b8b8 45%, #6d6d6d 100%); }
.dx-bar .tone-q2 { background: linear-gradient(180deg, #8dff6e 0%, #1eff00 40%, #0d7a00 100%); }
.dx-bar .tone-q3 { background: linear-gradient(180deg, #7cc0ff 0%, #0070dd 45%, #003a73 100%); }
.dx-bar .tone-q4 { background: linear-gradient(180deg, #d9a6ff 0%, #a335ee 45%, #5a1491 100%); }
.dx-bar .tone-q5 { background: linear-gradient(180deg, #ffd08a 0%, #ff8000 45%, #8f4300 100%); }
.dx-bar .bar-key { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.dx-bar .bar-key li { display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 0; }
.dx-bar .bar-key li::before { display: none; }
.dx-bar .bar-key i { flex: none; width: 14px; height: 14px; border: 1px solid #000; box-shadow: 0 0 0 1px #8f7a52; transform: translateY(2px); }
.dx-bar .bar-key b { font-weight: 400; color: var(--dx-head); }
.dx-bar .bar-key em { font-style: normal; color: var(--dx-gold); margin: 0 4px 0 2px; }
@media (max-width: 560px) { .dx-bar .bar-track { height: 32px; } .dx-bar .bar-seg { font-size: 13px; } }
