/* The profitability table (/profitability-table, owner 1 Dec 2026): the product lists' rows (theme8.css "The ranking rows
   ... as the homepage rows": one bordered row card per product, the photo on grey, the name with its facts, the 30-day line,
   the lowest price and the offers button), with the table's own columns: the rank, revenue and power cost beside the
   profit, and payback. One line of column heads that sort. The parts follow the list's own width (the side panel takes a
   share of the window): the 30-day line goes first, then power cost, then revenue, then payback. */
.pt-page .hw-main > .pt-setup { margin: 0 0 14px; padding: 16px 20px !important; }
.pt-fs { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
.pt-fs > .ct-f { margin: 0; }
.pt-fs #ptElec { max-width: 190px; }
.pt-checks { display: grid; gap: 6px; padding-bottom: 4px; }
.pt-checks .check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.pt-note { margin: 10px 0 0; }
.pt-page #ptCats { margin: 0 0 12px; }
.pt-page #ptCats .chip .pt-cn { opacity: .65; font-variant-numeric: tabular-nums; }
.pt-bar { justify-content: flex-start; }
.pt-bar #ptCount { margin-left: 4px; }
.pt-catsel { display: none; }
.pt-fic { width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; flex: none; }
.pt-fmore-b { margin: 4px 0 0 12px; padding: 0; border: 0; background: none; color: var(--cta-text, hsl(var(--foreground))); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pt-fmore-b:hover { text-decoration: underline; }
.pt-foot { margin-top: 14px; }

/* the table: rows as row cards on a grid of named areas, the heads on the same grid */
.pt-wrap { container-type: inline-size; container-name: ptw; }
table.pt { display: block; width: 100%; border: 0; border-collapse: separate; background: none; }
table.pt > thead, table.pt > tbody { display: block; }
table.pt tr { display: grid; grid-template-columns: 30px minmax(220px, 1fr) 124px 92px 92px 128px 88px auto; grid-template-areas: "rk md sp rev pw pf roi buy";
  align-items: center; column-gap: 14px; }
table.pt th, table.pt td { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: none; text-align: left; white-space: nowrap; }
table.pt .pt-rk { grid-area: rk; } table.pt .pt-md { grid-area: md; } table.pt .pt-sp { grid-area: sp; } table.pt .pt-rev { grid-area: rev; }
table.pt .pt-pw { grid-area: pw; } table.pt .pt-pf { grid-area: pf; } table.pt .pt-roi { grid-area: roi; } table.pt .pt-buy { grid-area: buy; }
table.pt thead tr { padding: 0 18px 8px 10px; font-size: 12.5px; font-weight: 600; color: hsl(var(--muted-foreground)); }
table.pt thead th { font: inherit; color: inherit; }
table.pt thead th.pt-rk { text-align: center; }
table.pt thead th.pt-buy { text-align: right; padding-right: 4px; }
table.pt thead th.pt-rev, table.pt thead th.pt-pw, table.pt thead th.pt-roi { text-align: right; }
table.pt thead button { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
table.pt thead button:hover { color: hsl(var(--foreground)); }
table.pt thead th[aria-sort="ascending"] button, table.pt thead th[aria-sort="descending"] button { color: hsl(var(--foreground)); }
table.pt thead th[aria-sort="descending"] button::after { content: " ↓"; } table.pt thead th[aria-sort="ascending"] button::after { content: " ↑"; }
table.pt tbody tr { margin: 0 0 10px; padding: 10px 18px 10px 10px; border: 1px solid hsl(var(--border)); border-radius: 16px; background: hsl(var(--card)); transition: border-color .15s; }
table.pt tbody tr:hover { border-color: var(--cta-edge); }
/* Featured: the edge light (theme8.css), the same white row with a border fading to orange at the bottom */
table.pt tbody tr.is-partner { border: 1.5px solid transparent;
  background: linear-gradient(hsl(var(--card)), hsl(var(--card))) padding-box, linear-gradient(180deg, rgb(249 115 22 / 0) 30%, rgb(249 115 22 / .55) 70%, #f97316) border-box;
  box-shadow: 0 10px 20px -12px rgb(249 115 22 / .55); }
/* rank, photo, name and its facts */
.pt-rk span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: hsl(var(--muted)); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); }
table.pt .pt-rk.pt-top span { background: var(--title, hsl(var(--foreground))); color: hsl(var(--background)); }
.pt-md { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.pt-pic { display: block; width: 64px; height: 56px; padding: 5px; border-radius: 12px; background: hsl(var(--muted)); object-fit: contain; box-sizing: border-box; }
span.pt-pic { background: hsl(var(--muted)) url(/img/device-asic-box.svg) center / 28px no-repeat; }
span.pt-pic--gpu, span.pt-pic--cpu { background-image: url(/img/device-gpu.svg); }
.pt-nm { display: grid; gap: 2px; min-width: 0; white-space: normal; }
.pt-mk { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.pt-est { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft, hsl(var(--muted))); font-size: 11px; font-weight: 600; color: var(--warn, hsl(var(--foreground))); cursor: help; }
.pt-nm > a { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: hsl(var(--foreground)); text-decoration: none; overflow-wrap: anywhere; }
.pt-nm > a:hover { text-decoration: underline; }
.pt-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.pt-facts > span { white-space: nowrap; }
.pt-coin { display: inline-flex; align-items: center; gap: 3px; }
.pt-coin img { width: 17px; height: 17px; border-radius: 50%; }
.pt-tk { font-size: 11.5px; font-weight: 700; }
/* the money: revenue and power cost quiet, profit loud */
.pt-rev, .pt-pw, .pt-roi { text-align: right !important; font-size: 14.5px; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); }
.pt-pw { color: hsl(var(--muted-foreground)); }
table.pt td.pt-pf { background: none !important; box-shadow: none !important; }
.pt-pf .pf { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--pos); font-variant-numeric: tabular-nums; }
.pt-pf .pf::before { content: "▲ "; font-size: .55em; vertical-align: .25em; }
.pt-pf.neg .pf { color: var(--neg); } .pt-pf.neg .pf::before { content: "▼ "; }
.pt-roi { font-weight: 700; }
/* the lowest price, then the offers button in the tier colour */
.pt-buy { display: flex !important; align-items: center; justify-content: flex-end; gap: 16px; }
.pt-lp { display: grid; justify-items: end; line-height: 1.2; }
.pt-lp b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-lp small, .pt-none { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.pt-go { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 42px; padding: 0 18px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.pt-go .pt-gs { display: none; }
.pt-go--ghost { background: hsl(var(--card)); }

/* the list narrower than all the columns: the parts go in order of importance */
@container ptw (max-width: 1180px) {
  table.pt tr { grid-template-columns: 30px minmax(200px, 1fr) 92px 92px 128px 88px auto; grid-template-areas: "rk md rev pw pf roi buy"; }
  table.pt .pt-sp { display: none; }
}
@container ptw (max-width: 1040px) {
  table.pt tr { grid-template-columns: 30px minmax(200px, 1fr) 92px 128px 88px auto; grid-template-areas: "rk md rev pf roi buy"; }
  table.pt .pt-pw { display: none; }
  .pt-go { min-width: 0; } .pt-go .pt-gl { display: none; } .pt-go .pt-gs { display: inline; }
}
@container ptw (max-width: 880px) {
  table.pt tr { grid-template-columns: 30px minmax(190px, 1fr) 128px 84px auto; grid-template-areas: "rk md pf roi buy"; }
  table.pt .pt-rev { display: none; }
}
@container ptw (max-width: 720px) {
  table.pt tr { grid-template-columns: 30px minmax(170px, 1fr) 120px auto; grid-template-areas: "rk md pf buy"; }
  table.pt .pt-roi { display: none; }
  .pt-buy { gap: 12px; }
}
/* phones: the product, then its profit with the payback under it, the lowest price and the button beside them */
@container ptw (max-width: 600px) {
  table.pt thead { display: none; }
  table.pt tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "md md" "pf buy" "roi buy"; row-gap: 6px; column-gap: 12px; padding: 10px 12px; }
  table.pt .pt-rk { display: none; }
  table.pt .pt-roi { display: block; text-align: left !important; font-size: 13px; font-weight: 600; }
  table.pt .pt-roi::before { content: attr(data-l) " "; font-weight: 400; color: hsl(var(--muted-foreground)); }
  table.pt .pt-pf { margin-top: 4px; }
  table.pt .pt-pf::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 400; color: hsl(var(--muted-foreground)); }
  .pt-md { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
  .pt-pic { width: 56px; height: 48px; }
  .pt-nm > a { font-size: 15px; }
  .pt-pf .pf { font-size: 16px; }
  .pt-buy { flex-direction: column; align-items: flex-end !important; justify-content: center; gap: 4px; }
  .pt-lp small { display: none; }
  .pt-go { height: 36px; padding: 0 14px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .pt-page #ptCats { display: none; }
  .pt-catsel { display: inline-flex; }
  .pt-bar { flex-wrap: nowrap; gap: 8px; }
  .pt-bar .aic-sort { flex: 1 1 0; min-width: 0; }
  .pt-bar .aic-sort select { width: 100%; min-width: 0; text-overflow: ellipsis; }
  .pt-bar #ptCount { flex: none; }
}
@media (max-width: 760px) { .pt-fs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pt-fs .ct-f--wide { grid-column: 1 / -1; grid-row: 2; } .pt-fs #ptElec { max-width: none; } }
@media (max-width: 640px) {
  .pt-page .hw-main > .pt-setup { padding: 14px !important; }
  .pt-bar #ptCount { display: none; }
  .pt-checks .check { white-space: normal; }
}
/* a coin's icon before its name, the name left and the count right, as the other panel entries */
.pt-side .hw-cats a:has(.pt-fic) { justify-content: flex-start; align-items: center; gap: 0; }
.pt-side .hw-cats a:has(.pt-fic) .hw-n { margin-left: auto; padding-left: 10px; }
.pt-bar .aic-sort span { white-space: nowrap; }
/* phones: the setup in as few lines as it takes, so the first products show on the first screen */
@media (max-width: 640px) {
  .pt-note { display: none; }
  .pt-fs { gap: 10px 14px; }
  .pt-page .ct-l { margin-bottom: 4px; }
  .pt-checks { gap: 4px; padding-bottom: 0; }
  .pt-checks .check { font-size: 13px; }
  .pt-page #ptSetup .ct-seg button { height: 30px; padding: 0 11px; }
}
/* the header (owner 1 Dec: "our gradient effect but different colors"): OUR mesh (hero-mesh.js) in the table's own palette,
   deep sea-teal with the profit green glowing through where the other lists glow orange; /miners keeps slate. Nine colours
   in the hero's order: base, bright, middle, deep, warm; base, light, bright, warm */
.bm-g-profit { --g0: #061a22; --g1: #0c4f5c; --g2: #0f6f78; --g3: #0a3340; --g4: #19b46b; color: #c9d2cd; }
.head.mh.bm-g-profit { --glow: #061a22 #0f6f78 #0c4f5c #0a3340 #19b46b  #061a22 #6fc7c2 #0f6f78 #19b46b; }
:root .head.mh .pt-h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; color: #e6f2ef; }
@media (max-width: 640px) { :root .head.mh .pt-h2 { font-size: 17px; margin-bottom: 8px; } }
