/* ═══════════════════════════════════════════════════════════════════════
   SOQUPOOL — hardware and partners page (/hardware.html)
   Loads after foundry.css and uses only its tokens, so both themes work.
   ═══════════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hw-hero h1 { max-width: 16ch; }
.hw-hero .hero-sub { max-width: 62ch; }
.hw-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--seam); margin-top: 44px;
}
.hw-fact { padding: 18px 22px; border-right: 1px solid var(--seam); min-width: 0; }
.hw-fact:last-child { border-right: 0; }
.hw-fact .engraved { display: block; margin-bottom: 6px; }
.hw-fact .readout { font-size: clamp(16px, 1.7vw, 21px); }

/* ── founding partner spotlight ───────────────────────────────────────── */
.spotlight {
  position: relative; margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--seam);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #9fd94a 9%, transparent), transparent 55%),
    linear-gradient(180deg, var(--iron-900), var(--iron-950));
  overflow: hidden;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #9fd94a, var(--copper) 60%, transparent);
}
.spot-mark {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 44px 40px; border-right: 1px solid var(--seam);
  background: #0d1117;   /* fixed dark ground: the lime logo needs it in both themes */
}
.spot-mark img { width: 100%; max-width: 340px; height: auto; display: block; }
.spot-mark .engraved { color: #9fd94a; }
.spot-body { padding: 40px 40px 36px; }
.spot-body h3 {
  font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.08; color: var(--text-hi);
}
.spot-body p { margin-top: 14px; max-width: 58ch; }
.spot-body .hero-actions { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .spot-mark img { transition: transform .5s ease, filter .5s ease; }
  .spotlight:hover .spot-mark img { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(159, 217, 74, .35)); }
}

/* ── status legend ────────────────────────────────────────────────────── */
.hw-legend { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; }
.hw-legend div { display: flex; align-items: baseline; gap: 10px; font-size: 14px; max-width: 46ch; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--seam-hi); color: var(--text-mid); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-seen { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.chip-std  { color: var(--text-lo); }

/* ── miner cards ──────────────────────────────────────────────────────── */
.hw-grid {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--seam); border-left: 1px solid var(--seam);
}
.hw-card {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--seam); border-bottom: 1px solid var(--seam);
  background: var(--iron-950);
  transition: background .2s ease;
}
.hw-card:hover { background: var(--iron-900); }
.hw-img {
  position: relative; height: 210px; padding: 22px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 70% at 50% 60%, var(--iron-850), transparent 75%);
  border-bottom: 1px solid var(--seam);
}
.hw-img img { max-width: 78%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hw-img .chip { position: absolute; top: 14px; left: 14px; background: var(--iron-950); }
@media (prefers-reduced-motion: no-preference) {
  .hw-img img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .hw-card:hover .hw-img img { transform: translateY(-6px) scale(1.04); }
}
.hw-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.hw-maker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-lo); }
.hw-body h3 {
  font-variation-settings: "wdth" 112; font-weight: 700; text-transform: uppercase;
  font-size: 19px; color: var(--text-hi); margin: 4px 0 14px;
}
.hw-specs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--seam); }
.hw-specs div { padding: 9px 10px; border-right: 1px solid var(--seam); min-width: 0; }
.hw-specs div:last-child { border-right: 0; }
.hw-specs dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-lo); }
.hw-specs dd { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-hi); font-variant-numeric: tabular-nums; margin-top: 2px; }
.hw-note { margin-top: 12px; font-size: 13.5px; color: var(--text-lo); }
.hw-buy {
  margin-top: auto; padding-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-hot);
}
.hw-buy:hover { color: var(--text-hi); }
.hw-buy .arrow { transition: transform .2s ease; }
.hw-buy:hover .arrow { transform: translate(2px, -2px); }

/* ── full compatibility table ─────────────────────────────────────────── */
.hw-table-wrap { margin-top: 40px; border: 1px solid var(--seam); overflow-x: auto; }
.hw-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.hw-table th {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--seam-hi);
  font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--text-lo);
  background: var(--iron-900);
}
.hw-table td { padding: 12px 16px; border-bottom: 1px solid var(--seam); vertical-align: middle; }
.hw-table tr:last-child td { border-bottom: 0; }
.hw-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-hi); white-space: nowrap; }
.hw-table td.model { color: var(--text-hi); font-weight: 600; }
.hw-table a { color: var(--copper-hot); }
.hw-table a:hover { color: var(--text-hi); }
.hw-source { margin-top: 12px; font-size: 13px; color: var(--text-lo); max-width: 80ch; }

/* ── connect block ────────────────────────────────────────────────────── */
.cfg-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border: 1px solid var(--seam); }
.cfg {
  padding: 24px 26px; background: var(--iron-900); border-right: 1px solid var(--seam);
  font-family: var(--font-mono); font-size: 13px; line-height: 2; color: var(--text-mid); overflow-x: auto;
}
.cfg .k { display: inline-block; min-width: 9.5ch; color: var(--text-lo); }
.cfg .v { color: var(--text-hi); }
.cfg .v.hi { color: var(--copper-hot); }
.cfg-notes { padding: 24px 26px; }
.cfg-notes li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--seam); font-size: 14.5px; }
.cfg-notes li:first-child { padding-top: 0; }
.cfg-notes li:last-child { border-bottom: 0; }
.cfg-notes code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-hi); }

/* ── supplier ─────────────────────────────────────────────────────────── */
.supplier {
  margin-top: 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border: 1px solid var(--seam); background: linear-gradient(180deg, var(--iron-900), var(--iron-950));
}
.supplier-mark {
  display: flex; align-items: center; justify-content: center; padding: 36px;
  background: #0d1117; border-right: 1px solid var(--seam);
}
.supplier-mark img { width: 100%; max-width: 260px; height: auto; display: block; }
.supplier-body { padding: 34px 38px; }
.supplier-body h3 {
  font-variation-settings: "wdth" 116; font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 26px); color: var(--text-hi);
}
.supplier-body p { margin-top: 12px; max-width: 62ch; }
.supplier-body .hero-actions { margin-top: 22px; }

/* ── partner directory ────────────────────────────────────────────────── */
.pt-grid {
  margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--seam); border-left: 1px solid var(--seam);
}
.pt-card {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0;
  border-right: 1px solid var(--seam); border-bottom: 1px solid var(--seam);
  scroll-margin-top: 84px;
}
.pt-card:target { box-shadow: inset 0 0 0 1px var(--copper); }
.pt-logo {
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: #0d1117; border-right: 1px solid var(--seam); min-height: 132px;
}
.pt-logo img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }
.pt-logo.pair { flex-direction: column; gap: 12px; }
.pt-logo.pair img { max-height: 38px; }
.pt-body { padding: 20px 22px; }
.pt-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-hot); }
.pt-body h3 { font-weight: 700; font-size: 18px; color: var(--text-hi); margin: 4px 0 8px; }
.pt-body p { font-size: 14px; }
.pt-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.pt-links a { color: var(--copper-hot); }
.pt-links a:hover { color: var(--text-hi); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hw-facts { grid-template-columns: 1fr 1fr; }
  .hw-fact:nth-child(2) { border-right: 0; }
  .hw-fact:nth-child(-n+2) { border-bottom: 1px solid var(--seam); }
  .spotlight, .supplier, .cfg-grid { grid-template-columns: 1fr; }
  .spot-mark, .supplier-mark, .cfg { border-right: 0; border-bottom: 1px solid var(--seam); }
  .spot-mark, .spot-body, .supplier-body { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .hw-grid { grid-template-columns: 1fr; }
  .pt-card { grid-template-columns: 1fr; }
  .pt-logo { border-right: 0; border-bottom: 1px solid var(--seam); min-height: 96px; }
}

/* two suppliers stacked in Where to buy */
.supplier + .supplier { margin-top: 18px; }
