/* /catalog/fluids/ pages: Fluid Finder + application chart.
   Colors derive from currentColor so the same rules work on the default dark
   theme and light_style.css. */

.fluid-intro { max-width: 900px; }

/* ── Fluid Finder ───────────────────────────────────────────────── */
.fluid-finder {
  max-width: 760px;
  margin: 10px auto 30px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 2px solid rgb(0, 204, 78);
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.fluid-finder h2 {
  border: none;
  margin: 0 0 4px;
  padding: 0;
  text-align: center;
}
.fluid-finder > p { text-align: center; margin: 0 0 12px; }
.fluid-finder select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  background: #222;
  color: #fff;
}
.fluid-finder select optgroup { font-style: normal; font-weight: 700; }

.fluid-result { margin-top: 14px; }
.fluid-result-list { display: flex; flex-direction: column; gap: 8px; }
.fluid-result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.fluid-result-name { font-weight: 700; }
.fluid-result-amount { font-weight: 700; color: rgb(0, 204, 78); text-align: right; white-space: nowrap; }
.fluid-result-buy { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; }
.fluid-result-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.fluid-result-total { font-size: 17px; font-weight: 700; }

.fluid-note { display: block; font-size: 11px; opacity: 0.7; font-weight: 400; }
.fluid-result-buy .fluid-note { display: inline; }
.fluid-backordered { color: #ffd700; font-size: 12px; }

.fluid-add-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background: rgb(0, 160, 62);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fluid-add-btn:hover { background: rgb(0, 130, 50); }
.fluid-add-btn:disabled { opacity: 0.7; cursor: default; }

/* ── Application chart ──────────────────────────────────────────── */
.fluid-chart-wrap { overflow-x: auto; margin: 10px 0 30px; }
.fluid-chart {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  font-size: 13px;
}
.fluid-chart th,
.fluid-chart td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.fluid-chart thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
.fluid-chart .fluid-chart-group th {
  padding-top: 16px;
  font-size: 14px;
  color: rgb(0, 204, 78);
  border-bottom: 2px solid color-mix(in srgb, currentColor 30%, transparent);
}
.fluid-chart td:nth-child(3) { white-space: nowrap; font-weight: 700; }
.fluid-chart a { color: inherit; text-decoration: underline; }
.fluid-buy { min-width: 170px; }
.fluid-buy-mix { display: block; font-size: 12px; opacity: 0.85; }
.fluid-buy-total { display: inline-block; font-weight: 700; margin: 3px 10px 0 0; }
.fluid-buy .fluid-add-btn { padding: 5px 12px; font-size: 12px; }

/* "Which fluid?" callout on category pages */
.fluid-callout {
  max-width: 900px;
  padding: 10px 14px;
  margin: 14px 0;
  border-left: 4px solid rgb(0, 204, 78);
  background: color-mix(in srgb, currentColor 6%, transparent);
}

@media (max-width: 640px) {
  .fluid-chart { font-size: 12px; }
  .fluid-chart th, .fluid-chart td { padding: 6px; }
  .fluid-result-foot { flex-direction: column; align-items: stretch; text-align: right; }
}
