/* GPUMath v2 shared stylesheet
   Plain, dense, DiskPrices-style utility layout.
   Keep this as the single source of visual truth for all pages. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f1eee8;
  --panel: #edeae3;
  --paper: #fff;
  --paper-soft: #faf8f4;
  --ink: #1a1a1a;
  --muted: #666;
  --muted-light: #888;
  --line: #ccc;
  --line-soft: #e8e4dc;
  --dark: #1e1e1e;
  --dark-2: #2a2a2a;
  --dark-3: #383838;
  --accent: #c85a00;
  --accent-soft: #fff8f0;
  --green: #446622;
  --red: #993333;
  --blue: #336699;
  --yellow: #996600;
  --font: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --left-col: 170px;
  --right-col: 230px;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-size: 12.6px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:visited {
  color: #6b4fa3;
}

a:hover {
  text-decoration: underline;
}

button,
select,
input {
  font-family: inherit;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  color: #d8d4cc;
  padding: 6px 14px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--accent);
}

.site-logo {
  color: #d8d4cc;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-logo:visited {
  color: #d8d4cc;
}

.site-logo:hover {
  text-decoration: none;
  color: #fff;
}

.site-logo span {
  color: var(--accent);
}

.site-meta {
  color: #8a8a8a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  text-align: right;
}

/* ── MARKET STRIP ─────────────────────────────────────── */
.market-strip {
  margin: 8px 10px 0;
  background: var(--accent-soft);
  border: 1px solid #e8a060;
  border-left: 3px solid var(--accent);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  overflow: hidden;
}

.market-label {
  font-size: 10px;
  font-weight: bold;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.market-scroll {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.market-ticker {
  display: flex;
  gap: 40px;
  white-space: nowrap;
}

.market-ticker.is-animated {
  animation: market-scroll 22s linear infinite;
}

.market-ticker:hover {
  animation-play-state: paused;
}

.market-ticker span,
.market-ticker a {
  display: inline-block;
  white-space: nowrap;
}

.market-link {
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes market-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAV ──────────────────────────────────────────────── */
.site-nav {
  margin: 8px 10px 0;
  background: #d4d0c8;
  border-top: 1px solid #aaa;
  border-bottom: 2px solid #aaa;
  padding: 5px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-right: 10px;
  font-weight: bold;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  padding: 2px 12px;
  border-right: 1px solid #bbb;
  white-space: nowrap;
}

.site-nav a:last-child {
  border-right: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.current,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: bold;
}

/* ── PAGE LAYOUT ──────────────────────────────────────── */
.page-wrap {
  display: grid;
  grid-template-columns: var(--left-col) minmax(0, 1fr) var(--right-col);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.filters,
.sidebar {
  background: var(--panel);
  font-size: 11px;
  min-height: calc(100vh - 92px);
}

.filters {
  border-right: 1px solid var(--line);
  padding: 8px 0;
}

.sidebar {
  border-left: 1px solid var(--line);
  padding: 8px 0;
}

.main-content {
  min-width: 0;
  padding: 8px 10px 16px;
}

/* ── FILTERS ──────────────────────────────────────────── */
.filter-toggle {
  display: none;
  width: calc(100% - 20px);
  margin: 0 10px 8px;
  padding: 5px 7px;
  border: 1px solid #aaa;
  background: #faf8f4;
  color: #222;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.filter-body {
  display: block;
}

.filter-group {
  border-bottom: 1px solid #d4d0c8;
  padding: 6px 10px 8px;
}

.filter-title {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #333;
  margin-bottom: 5px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  color: #222;
  cursor: pointer;
}

.filter-group label:hover {
  color: var(--accent);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  width: 12px;
  height: 12px;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-note {
  color: #555;
  font-size: 10px;
  line-height: 1.5;
  padding: 7px 10px 2px;
}

/* ── INTRO ────────────────────────────────────────────── */
.page-intro {
  margin-bottom: 10px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}

.page-intro h1 {
  font-size: 15px;
  line-height: 1.2;
  color: #111;
  margin-bottom: 4px;
}

.page-intro p {
  color: #555;
  font-size: 11px;
  max-width: 980px;
}

/* ── TOOL CARD ────────────────────────────────────────── */
.tool-card {
  background: #fdfbf8;
  border: 1px solid #bbb;
  border-left: 4px solid var(--accent);
  margin-bottom: 18px;
}

.tool-header {
  background: #242424;
  padding: 5px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-header h2 {
  font-size: 11px;
  font-weight: bold;
  color: #e8e4dc;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tool-header p {
  color: #999;
  font-size: 10px;
}

.tool-body {
  padding: 7px 10px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tool-field span,
.tool-check span {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111;
}

.tool-field select,
.tool-field input {
  font-family: var(--mono);
  font-size: 12px;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid #999;
  background: #fdfcfa;
  color: #111;
}

.tool-field select {
  min-width: 160px;
  cursor: pointer;
}

.tool-field input {
  width: 112px;
}

.tool-check {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 4px;
  cursor: pointer;
}

.tool-check input {
  width: 12px;
  height: 12px;
  accent-color: var(--accent);
  cursor: pointer;
}

.tool-check span {
  color: #333;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
}

.button-primary {
  font-size: 11px;
  font-weight: bold;
  background: #1a1a1a;
  color: #e8e4dc;
  border: 1px solid #555;
  padding: 4px 16px;
  height: 26px;
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.button-primary:hover,
.button-primary:focus {
  background: #333;
  color: #fff;
  border-color: #888;
}

.tool-result {
  padding: 6px 10px 8px;
  border-top: 1px solid var(--line-soft);
  background: #fafaf8;
}

.tool-verdict {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 3px;
}

.tool-verdict.strong-buy { color: var(--green); }
.tool-verdict.fair { color: var(--yellow); }
.tool-verdict.overpriced { color: var(--accent); }
.tool-verdict.bad-deal,
.tool-verdict.avoid { color: var(--red); }

.tool-explain {
  font-size: 11px;
  color: #444;
  line-height: 1.55;
}

.tool-reference {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SECTION HEAD ─────────────────────────────────────── */
.table-section {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.section-head h2,
.buyer-notes h2 {
  font-size: 12px;
  font-weight: bold;
  color: #111;
}

.section-head p {
  font-size: 11px;
  color: #333;
}

#gpu-count {
  font-weight: bold;
  color: #222;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #333;
}

.sort-control select {
  font-size: 11px;
  padding: 2px 4px;
  border: 1px solid #bbb;
  background: #fafaf8;
  cursor: pointer;
}

.table-note {
  color: #666;
  font-size: 10px;
  text-align: right;
  margin-bottom: 2px;
}

/* ── TABLE ────────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.table-wrap:focus {
  outline: 1px solid #aaa;
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}

thead tr {
  background: var(--dark-2);
  color: #ddd;
}

th {
  padding: 5px 8px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  font-size: 11px;
  font-weight: bold;
  border-right: 1px solid #3a3a3a;
  user-select: none;
}

th:last-child,
td:last-child {
  border-right: none;
}

th:hover {
  background: var(--dark-3);
  color: #fff;
}

th.sorted {
  color: #ffb870;
}

.sort-arrow {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 2px;
}

td {
  padding: 4px 8px;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #e8e6e0;
  vertical-align: middle;
  color: #111;
}

tbody tr:nth-child(even) {
  background: #f8f6f2;
}

tbody tr:hover {
  background: #ece7de;
}

tbody tr.value-king,
tbody tr.val-king,
tbody tr.top-pick {
  background: #fff9f4;
}

tbody tr.value-king:hover,
tbody tr.val-king:hover,
tbody tr.top-pick:hover {
  background: #f5ede0;
}

.col-rank,
.cell-rank {
  color: #888;
  font-size: 11px;
  text-align: center;
  width: 28px;
}

.col-gpu,
.cell-gpu {
  font-weight: bold;
  font-size: 12.5px;
  white-space: nowrap;
}

.col-price,
.cell-price,
.cell-money,
.cell-number,
.cell-vram,
.cell-benchmark,
.cell-power {
  font-family: var(--mono);
  white-space: nowrap;
}

.cell-price,
.cell-money {
  font-weight: bold;
}

.cell-small,
.cell-condition {
  font-size: 10px;
  color: #555;
}

.value-wrap,
.score-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.value-number,
.score-number {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: bold;
  min-width: 30px;
}

.value-bar-bg,
.score-bar-bg {
  width: 52px;
  height: 6px;
  background: #c8c4bc;
  flex-shrink: 0;
}

.value-bar-fill,
.score-bar-fill {
  height: 100%;
  background: var(--accent);
}

.value-label,
.score-label,
.badge {
  display: block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-new,
.source-amazon,
.src-amazon {
  color: #7a3200;
}

.badge-used,
.source-ebay,
.src-ebay {
  color: #134a1e;
}

.source-link,
.source-amazon,
.source-ebay,
.src-amazon,
.src-ebay {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid currentColor;
  font-size: 10.5px;
  font-weight: bold;
  white-space: nowrap;
}

.source-link:hover,
.source-amazon:hover,
.source-ebay:hover,
.src-amazon:hover,
.src-ebay:hover {
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}

.disclaimer {
  color: #666;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
}

/* ── BUYER NOTES ──────────────────────────────────────── */
.buyer-notes {
  margin-top: 12px;
}

.note-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.note-card {
  flex: 1 1 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--dark-2);
  padding: 7px 9px;
}

.note-card h3 {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 4px;
}

.note-card p {
  font-size: 11px;
  color: #333;
  line-height: 1.55;
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar-section {
  border-bottom: 1px solid #d4d0c8;
  padding: 8px 10px;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h2 {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  margin-bottom: 5px;
}

.sidebar-body {
  color: #333;
  line-height: 1.5;
}

.sidebar-body p {
  margin-bottom: 7px;
}

.sidebar-body strong {
  color: #111;
}

.sidebar-body .green {
  color: var(--green);
  font-weight: bold;
}

.sidebar-body .orange {
  color: var(--accent);
  font-weight: bold;
}

.sidebar-body .red {
  color: var(--red);
  font-weight: bold;
}

.sidebar-body .mono {
  font-family: var(--mono);
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: #ede9e2;
  border-top: 1px solid #d8d4cc;
  padding: 8px 14px;
  font-size: 10px;
  color: #666;
}

/* ── ARTICLE PAGE UTILITIES ─────────────────────────────
   Reuse these on future article/calculator pages. */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 14px;
}

.article-wrap h1 {
  font-size: 18px;
  line-height: 1.2;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.article-meta {
  color: #666;
  font-size: 10.5px;
  margin-bottom: 14px;
}

.article-wrap h2 {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  margin: 18px 0 6px;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}

.article-wrap p,
.article-wrap li {
  font-size: 12.5px;
  color: #222;
  margin-bottom: 10px;
}

.article-wrap ul,
.article-wrap ol {
  margin-left: 18px;
  margin-bottom: 12px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid #e8a060;
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 12px;
}

.callout strong {
  color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .page-wrap {
    grid-template-columns: var(--left-col) minmax(0, 1fr);
  }

  .sidebar {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 2px solid var(--line);
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding: 0;
  }

  .sidebar-section {
    border-right: 1px solid #d4d0c8;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .site-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .market-strip,
  .site-nav {
    margin-left: 0;
    margin-right: 0;
  }

  .page-wrap {
    display: block;
  }

  .filters {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .filter-toggle {
    display: block;
  }

  .filter-body {
    display: none;
  }

  .filters.is-open .filter-body {
    display: block;
  }

  .main-content {
    padding: 10px;
  }

  .tool-body {
    align-items: stretch;
    gap: 8px;
  }

  .tool-field,
  .tool-field select,
  .tool-field input,
  .button-primary {
    width: 100%;
  }

  .tool-check {
    padding: 2px 0;
  }

  .section-head {
    align-items: flex-start;
  }

  .table-note {
    text-align: left;
  }

  .sidebar {
    display: block;
    border-left: none;
    border-top: 2px solid var(--line);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 12px;
  }

  .market-link {
    display: none;
  }

  .site-nav a {
    padding: 3px 8px;
  }

  .page-intro h1 {
    font-size: 14px;
  }

  table {
    min-width: 980px;
  }
}
/* ── GPUMATH CLEAN TOOL LAYOUT OVERRIDES ─────────────────
   Removes right sidebar behavior and makes the tool/table easier to read. */

:root {
  --left-col: 170px;
}

body {
  font-size: 13.5px;
  line-height: 1.45;
}

/* Two-column layout only: filters + main content */
.page-wrap {
  display: grid;
  grid-template-columns: var(--left-col) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* Hide right sidebar everywhere */
.sidebar,
#sidebar {
  display: none !important;
}

/* Give main table more room */
.main-content,
#main {
  min-width: 0;
  padding: 10px 14px 18px;
}

/* Stronger left filters */
.filters,
#filters {
  font-size: 12px;
}

.filter-group label {
  padding: 3px 4px;
  border-radius: 2px;
}

.filter-group label:hover {
  color: var(--accent);
  background: #fff8f0;
}

.filter-group label:has(input:checked) {
  font-weight: bold;
  color: #111;
  background: #fff4e6;
}

.filter-title,
.filter-group-title {
  font-size: 11px;
  color: #222;
}

/* More readable intro */
.page-intro h1 {
  font-size: 17px;
}

.page-intro p {
  font-size: 12.5px;
  max-width: 1100px;
  color: #444;
}

/* Stronger checker tool */
.tool-header h2 {
  font-size: 12px;
}

.tool-header p {
  font-size: 11px;
}

.tool-field select,
.tool-field input,
.button-primary {
  height: 30px;
  font-size: 12px;
}

.button-primary {
  padding-left: 18px;
  padding-right: 18px;
}

/* Bigger, clearer table */
table {
  width: 100%;
  min-width: 1040px;
  font-size: 12.5px;
}

th {
  padding: 7px 9px;
  font-size: 12px;
}

td {
  padding: 6px 9px;
}

.cell-gpu,
.col-gpu {
  font-size: 13px;
}

.source-link {
  font-size: 11px;
  padding: 3px 8px;
}

.disclaimer {
  font-size: 11px;
  color: #555;
}

/* Keep mobile clean */
@media (max-width: 1180px) {
  .page-wrap {
    grid-template-columns: var(--left-col) minmax(0, 1fr);
  }

  .sidebar,
  #sidebar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .page-wrap {
    display: block;
  }

  .sidebar,
  #sidebar {
    display: none !important;
  }
}/* ── MOBILE TABLE → DEAL CARDS ────────────────────────── */
@media (max-width: 760px) {
  .market-strip {
    display: none;
  }

  .site-nav {
    font-size: 16px;
    line-height: 1.6;
    padding: 10px 12px;
  }

  .site-nav a {
    padding: 4px 10px;
  }

  .page-intro h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .page-intro p {
    font-size: 17px;
    line-height: 1.45;
  }

  .tool-card {
    margin-bottom: 24px;
  }

  .tool-header h2 {
    font-size: 18px;
  }

  .tool-header p {
    font-size: 15px;
  }

  .tool-field span,
  .tool-check span {
    font-size: 15px;
  }

  .tool-field select,
  .tool-field input,
  .button-primary {
    height: 44px;
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head p,
  .sort-control,
  .table-note {
    font-size: 17px;
  }

  .sort-control select {
    font-size: 18px;
    height: 40px;
  }

  .table-wrap {
    overflow-x: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
    border: none;
    background: transparent;
  }

  thead {
    display: none;
  }

  tbody tr {
    background: #fff;
    border: 1px solid #ccc;
    border-top: 4px solid #2a2a2a;
    margin-bottom: 14px;
    padding: 10px 12px;
  }

  tbody tr:nth-child(even) {
    background: #fff;
  }

  td {
    border: none;
    border-bottom: 1px solid #e8e4dc;
    padding: 8px 0;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  td:nth-child(1)::before { content: "Rank"; }
  td:nth-child(2)::before { content: "GPU"; }
  td:nth-child(3)::before { content: "Fair Target"; }
  td:nth-child(4)::before { content: "$/GB VRAM"; }
  td:nth-child(5)::before { content: "VRAM"; }
  td:nth-child(6)::before { content: "Benchmark"; }
  td:nth-child(7)::before { content: "$/TFLOP"; }
  td:nth-child(8)::before { content: "Power"; }
  td:nth-child(9)::before { content: "Value"; }
  td:nth-child(10)::before { content: "Use Case"; }
  td:nth-child(11)::before { content: "Listings"; }

  .cell-gpu,
  .col-gpu {
    font-size: 19px;
  }

  .cell-price,
  .cell-money,
  .cell-vram,
  .cell-benchmark,
  .cell-power {
    font-size: 17px;
  }

  .value-wrap {
    justify-content: flex-end;
  }

  .value-label {
    text-align: right;
    font-size: 15px;
  }

  .source-link {
    font-size: 16px;
    padding: 6px 10px;
  }

  .disclaimer {
    font-size: 16px;
    line-height: 1.45;
  }

  .note-card p {
    font-size: 17px;
  }

  .note-card h3 {
    font-size: 15px;
  }
}/* Make table numbers darker and easier to read */
.cell-price,
.cell-money,
.cell-number,
.cell-vram,
.cell-benchmark,
.cell-power,
.cell-small {
  color: #111 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.cell-small {
  color: #444 !important;
  font-weight: 600 !important;
}

td {
  color: #111 !important;
}

/* On mobile, use a cleaner font instead of thin Courier */
@media (max-width: 760px) {
  .cell-price,
  .cell-money,
  .cell-number,
  .cell-vram,
  .cell-benchmark,
  .cell-power,
  .cell-small {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    color: #111 !important;
  }
}/* FORCE GPUMATH TABLE READABILITY */
#gpu-table,
#gpu-table th,
#gpu-table td,
#gpu-table td *,
#gpu-table th * {
  font-family: Arial, Helvetica, sans-serif !important;
  color: #000 !important;
  opacity: 1 !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

#gpu-table th {
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #222 !important;
  color: #fff !important;
}

#gpu-table td {
  font-size: 13.5px !important;
  font-weight: 650 !important;
}

#gpu-table .cell-price,
#gpu-table .cell-money,
#gpu-table .cell-vram,
#gpu-table .cell-benchmark,
#gpu-table .cell-power,
#gpu-table .cell-small {
  font-family: Arial, Helvetica, sans-serif !important;
  color: #000 !important;
  font-weight: 700 !important;
}

#gpu-table .value-label {
  color: #000 !important;
  font-weight: 800 !important;
}

#gpu-table .value-number {
  color: #000 !important;
  font-weight: 800 !important;
}

/* Mobile readability */
@media (max-width: 760px) {
  #gpu-table td {
    font-size: 18px !important;
    font-weight: 700 !important;
  }

  #gpu-table td::before {
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  #gpu-table .cell-price,
  #gpu-table .cell-money,
  #gpu-table .cell-vram,
  #gpu-table .cell-benchmark,
  #gpu-table .cell-power,
  #gpu-table .cell-small {
    font-size: 18px !important;
    color: #000 !important;
    font-weight: 800 !important;
  }
}

/* ── GPUMATH WHITE + BLUE POLISH OVERRIDES ─────────────────
   Cleaner, closer to DiskPrices, less heavy bold text. */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --paper: #ffffff;
  --paper-soft: #ffffff;
  --line: #d9dfe8;
  --line-soft: #edf2f7;
  --accent: #2b6fe0;
  --accent-soft: #f3f8ff;
  --blue: #2b6fe0;
  --green: #2f6b2f;
  --yellow: #8a6a00;
  --red: #9a3434;
}

html,
body {
  background: #ffffff !important;
  color: #111827 !important;
}

.site-header {
  border-bottom-color: var(--accent) !important;
}

.site-logo span,
.market-label,
.site-nav a.current,
.site-nav a[aria-current="page"],
.site-nav a:hover,
.filter-group label:hover,
.article-wrap h2,
.callout strong {
  color: var(--accent) !important;
}

.market-strip {
  background: #f8fbff !important;
  border: 1px solid #cddbf8 !important;
  border-left: 3px solid var(--accent) !important;
}

.site-nav {
  background: #f5f7fb !important;
  border-top: 1px solid #d7deea !important;
  border-bottom: 1px solid #d7deea !important;
}

.filters,
.sidebar,
.main-content,
.tool-card,
.note-card,
.sidebar-section,
.site-footer {
  background: #ffffff !important;
}

.filters {
  border-right: 1px solid #e3e8ef !important;
}

.sidebar {
  border-left: 1px solid #e3e8ef !important;
}

.filter-group {
  border-bottom: 1px solid #eef2f7 !important;
}

.filter-group label:hover {
  background: #f3f8ff !important;
}

.filter-group label:has(input:checked) {
  background: #eef5ff !important;
  font-weight: 600 !important;
}

.tool-card {
  border: 1px solid #d6e3fb !important;
  border-left: 4px solid var(--accent) !important;
}

.tool-header {
  background: #1f2630 !important;
}

.tool-header h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.tool-header p {
  color: #d1d8e0 !important;
}

.tool-field span,
.tool-check span,
.filter-title,
.nav-label,
.section-head h2,
.buyer-notes h2 {
  font-weight: 600 !important;
}

.tool-field select,
.tool-field input,
.sort-control select,
.filter-toggle {
  background: #ffffff !important;
  border: 1px solid #c7d2e1 !important;
}

.button-primary {
  background: var(--accent) !important;
  border: 1px solid #215fc0 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.button-primary:hover,
.button-primary:focus {
  background: #215fc0 !important;
  border-color: #1a4e9f !important;
}

.table-wrap,
table {
  background: #ffffff !important;
  border-color: #d9dfe8 !important;
}

thead tr,
#gpu-table th {
  background: #20242b !important;
  color: #ffffff !important;
}

th,
#gpu-table th {
  font-weight: 600 !important;
  border-right: 1px solid #343a43 !important;
}

th.sorted {
  color: #8fbeff !important;
}

td,
#gpu-table td,
#gpu-table td * {
  color: #111827 !important;
  font-weight: 500 !important;
}

.cell-gpu,
.col-gpu,
#gpu-table .cell-gpu,
#gpu-table .col-gpu {
  font-weight: 600 !important;
}

#gpu-table .cell-price,
#gpu-table .cell-money,
#gpu-table .cell-vram,
#gpu-table .cell-benchmark,
#gpu-table .cell-power,
#gpu-table .cell-small {
  font-weight: 500 !important;
  color: #1f2937 !important;
}

#gpu-table .value-label,
#gpu-table .value-number,
.value-label,
.value-number {
  font-weight: 600 !important;
  color: #111827 !important;
}

#gpu-table .value-bar-fill,
.value-bar-fill {
  background: var(--accent) !important;
}

#gpu-table .source-link,
.source-link {
  border-color: #a9c2f3 !important;
  background: #f5f9ff !important;
  color: #1d4fb8 !important;
  font-weight: 600 !important;
}

#gpu-table .source-link:hover,
.source-link:hover {
  background: #eaf2ff !important;
  text-decoration: none !important;
}

tbody tr:nth-child(even) {
  background: #fafcff !important;
}

tbody tr:hover {
  background: #f2f7ff !important;
}

tbody tr.value-king,
tbody tr.val-king,
tbody tr.top-pick {
  background: #f5f9ff !important;
}

.disclaimer,
.filter-note,
.page-intro p,
.section-head p,
.table-note,
.tool-explain,
.note-card p,
.site-footer,
.cell-small {
  color: #4b5563 !important;
}

.note-card {
  border: 1px solid #d9dfe8 !important;
}

.note-card h3 {
  font-weight: 600 !important;
}

.site-footer {
  border-top: 1px solid #e3e8ef !important;
}

@media (max-width: 760px) {
  tbody tr {
    background: #ffffff !important;
    border: 1px solid #d9dfe8 !important;
    border-top: 4px solid var(--accent) !important;
  }

  td,
  #gpu-table td {
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  td::before,
  #gpu-table td::before {
    color: #374151 !important;
    font-weight: 600 !important;
  }

  .cell-gpu,
  .col-gpu,
  #gpu-table .cell-gpu,
  #gpu-table .col-gpu {
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .source-link,
  #gpu-table .source-link {
    font-size: 15px !important;
  }
}


/* ── GPUMATH FINAL HEADER + CHECKER LAYOUT FIX ─────────────
   Centers the logo and keeps the checker GPU input a practical width. */

/* Header/logo: force centered logo even if old header flex rules are still above */
.site-header,
#site-header {
  min-height: 46px !important;
  padding: 8px 14px !important;
  background: #111827 !important;
  border-bottom: 2px solid #2563eb !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  justify-items: center !important;
}

.site-logo,
#site-header .site-logo,
.site-logo:visited {
  grid-column: 2 !important;
  justify-self: center !important;
  align-self: center !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
  opacity: 1 !important;
  transform: none !important;
}

.site-logo span,
#site-header .site-logo span {
  color: #60a5fa !important;
}

.site-meta,
#site-header .site-meta {
  display: none !important;
}

/* Checker: stop the GPU field from stretching across the entire screen */
.tool-body {
  display: flex !important;
  align-items: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.tool-field:has(#checker-gpu) {
  flex: 0 0 520px !important;
  width: 520px !important;
  max-width: 520px !important;
  min-width: 360px !important;
}

#checker-gpu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 520px !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.tool-field:has(#checker-price) {
  flex: 0 0 120px !important;
  width: 120px !important;
  max-width: 120px !important;
}

#checker-price {
  width: 100% !important;
  min-width: 0 !important;
}

.tool-field:has(#checker-source) {
  flex: 0 0 210px !important;
  width: 210px !important;
  max-width: 210px !important;
}

#checker-source {
  width: 100% !important;
  min-width: 0 !important;
}

.tool-check {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#checker-submit,
.button-primary {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Keep mobile simple and full-width */
@media (max-width: 760px) {
  .site-header,
  #site-header {
    display: grid !important;
    min-height: 48px !important;
  }

  .site-logo,
  #site-header .site-logo {
    font-size: 20px !important;
  }

  .tool-body {
    display: block !important;
  }

  .tool-field:has(#checker-gpu),
  .tool-field:has(#checker-price),
  .tool-field:has(#checker-source),
  #checker-gpu,
  #checker-price,
  #checker-source,
  #checker-submit,
  .button-primary {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}


/* ── GPUMATH CHECKER RESULT READABILITY FIX ───────────────
   Makes the checker answer prominent and easy to read on desktop/mobile. */

.tool-result,
#checker-result {
  padding: 16px 18px !important;
  background: #ffffff !important;
  border-top: 1px solid #cfe0ff !important;
  border-left: 4px solid #2563eb !important;
  color: #111827 !important;
}

.tool-verdict,
#checker-verdict {
  margin: 0 0 8px 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #111827 !important;
}

.tool-verdict.strong-buy,
#checker-verdict.strong-buy {
  color: #0f7a2f !important;
}

.tool-verdict.fair,
#checker-verdict.fair {
  color: #8a5a00 !important;
}

.tool-verdict.overpriced,
#checker-verdict.overpriced {
  color: #b45309 !important;
}

.tool-verdict.bad-deal,
#checker-verdict.bad-deal,
.tool-verdict.avoid,
#checker-verdict.avoid {
  color: #b91c1c !important;
}

.tool-explain,
#checker-explain {
  margin: 0 0 8px 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
}

.tool-reference,
#checker-reference {
  margin: 0 !important;
  padding-top: 8px !important;
  border-top: 1px solid #e5eaf1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

/* Give result area a stronger visual state by verdict type */
#checker-result:has(.strong-buy) {
  border-left-color: #16a34a !important;
  background: #f5fff8 !important;
}

#checker-result:has(.fair) {
  border-left-color: #d97706 !important;
  background: #fffaf0 !important;
}

#checker-result:has(.overpriced),
#checker-result:has(.bad-deal),
#checker-result:has(.avoid) {
  border-left-color: #dc2626 !important;
  background: #fff7f7 !important;
}

@media (max-width: 760px) {
  .tool-result,
  #checker-result {
    padding: 18px 16px !important;
    margin-top: 8px !important;
  }

  .tool-verdict,
  #checker-verdict {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .tool-explain,
  #checker-explain {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .tool-reference,
  #checker-reference {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}


/* ── GPUMATH HOW TO USE BOX ──────────────────────────────
   Simple instruction box under the checker. */
.how-to-use {
  margin: 0 0 18px 0 !important;
  padding: 14px 18px !important;
  background: #f8fbff !important;
  border: 1px solid #cfe0ff !important;
  border-left: 4px solid #2563eb !important;
  color: #111827 !important;
}

.how-to-use h2 {
  margin: 0 0 8px 0 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.how-to-use ol {
  margin: 0 !important;
  padding-left: 22px !important;
}

.how-to-use li {
  margin: 5px 0 !important;
  padding-left: 2px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
}

@media (max-width: 760px) {
  .how-to-use {
    margin-bottom: 22px !important;
    padding: 16px !important;
  }

  .how-to-use h2 {
    font-size: 22px !important;
  }

  .how-to-use li {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin: 7px 0 !important;
  }
}


/* ── GPUMATH STANDALONE CHECKER TOOL POLISH ──────────────
   Makes the checker feel like the main tool on the page. */
#fair-price-tool,
.tool-card {
  margin: 18px 0 18px 0 !important;
  background: #ffffff !important;
  border: 1px solid #b8cef8 !important;
  border-left: 5px solid #2563eb !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

#fair-price-tool .tool-header,
.tool-card .tool-header {
  padding: 11px 16px !important;
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%) !important;
  border-bottom: 1px solid #0f172a !important;
}

#fair-price-tool .tool-header h2,
#fair-price-tool .tool-header strong,
.tool-card .tool-header h2,
.tool-card .tool-header strong {
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  color: #ffffff !important;
}

#fair-price-tool .tool-header p,
#fair-price-tool .tool-header span,
.tool-card .tool-header p,
.tool-card .tool-header span {
  font-size: 13px !important;
  color: #dbeafe !important;
}

#fair-price-tool .tool-body,
.tool-card .tool-body {
  padding: 16px 18px !important;
  background: #f8fbff !important;
  border-bottom: 1px solid #dbeafe !important;
}

#fair-price-tool .tool-field span,
#fair-price-tool .tool-check span,
.tool-card .tool-field span,
.tool-card .tool-check span {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

#fair-price-tool input,
#fair-price-tool select,
.tool-card input,
.tool-card select {
  height: 36px !important;
  border: 1px solid #9db7e8 !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 14px !important;
}

#fair-price-tool input:focus,
#fair-price-tool select:focus,
.tool-card input:focus,
.tool-card select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25) !important;
  border-color: #2563eb !important;
}

#checker-submit,
.button-primary {
  height: 36px !important;
  padding: 0 22px !important;
  background: #2563eb !important;
  border: 1px solid #1d4ed8 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

#checker-submit:hover,
.button-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
}

@media (max-width: 760px) {
  #fair-price-tool,
  .tool-card {
    margin: 18px 0 22px 0 !important;
    border-left-width: 5px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10) !important;
  }

  #fair-price-tool .tool-header,
  .tool-card .tool-header {
    padding: 15px 16px !important;
  }

  #fair-price-tool .tool-header h2,
  #fair-price-tool .tool-header strong,
  .tool-card .tool-header h2,
  .tool-card .tool-header strong {
    font-size: 20px !important;
  }

  #fair-price-tool .tool-header p,
  #fair-price-tool .tool-header span,
  .tool-card .tool-header p,
  .tool-card .tool-header span {
    font-size: 16px !important;
    margin-top: 5px !important;
  }

  #fair-price-tool .tool-body,
  .tool-card .tool-body {
    padding: 16px !important;
  }

  #fair-price-tool input,
  #fair-price-tool select,
  #checker-submit,
  .tool-card input,
  .tool-card select,
  .button-primary {
    height: 48px !important;
    font-size: 18px !important;
  }
}
