/* PumpTypes.html: duty inputs, ranked results, region chart, comparison table.
   Layout and panels come from css/linkage.css; toggle colours from css/site-chrome.css. */
.pt-main b, .pt-main strong, .pt-guide b, .pt-guide strong, .pt-main th, .pt-guide th,
.pt-guide .ref-section-title, .pt-guide .ref-num, .pt-guide h2, .pt-guide .ref-sub { font-weight: 500; }
.pt-main .lk-panel-h h2 { font: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; }
.pt-main .tooltip-icon { font-weight: 500; }

/* "i" tooltips (js/fatigue-tips.js floats one box at body level, so the panels never clip it); rules from css/vibration.css */
.ft-on .lk-main .tooltip-icon + .tooltip-box { display: none !important; }
.tooltip-box.ft-float { position: fixed; bottom: auto; left: 0; top: 0; width: 260px; max-width: calc(100vw - 12px); z-index: 2000; }
.lk-main .tooltip-icon { text-transform: none; letter-spacing: 0; }

/* US | metric switch in the Inputs header (base look as on the vibration pages) */
.pt-main .sq-seg { display: inline-flex; border: 1.5px solid rgb(67,67,67); border-radius: 6px; overflow: hidden; width: fit-content; }
.pt-main .sq-seg button { appearance: none; border: 0; font: 600 12.5px/1 "Roboto","Roboto Fallback", Arial, sans-serif; padding: 7px 14px; cursor: pointer; text-transform: none; letter-spacing: 0; }

.pt-needs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 14px; }
@media (max-width: 520px) { .pt-needs { grid-template-columns: minmax(0, 1fr); } }
.pt-need { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--lk-ink); line-height: 1.35; }
.pt-need input { width: 15px; height: 15px; accent-color: #1a6475; margin: 1px 0 0; flex: 0 0 auto; cursor: pointer; }
.pt-need label { margin: 0; cursor: pointer; }
.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ranked results */
.pt-sum { font-size: 14px; color: var(--lk-ink); line-height: 1.5; margin: 0 0 10px; }
.pt-res { display: flex; flex-direction: column; gap: 8px; }
.pt-r { background: #fff; border: 1px solid var(--lk-line); border-left: 5px solid var(--c, #888); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.pt-r:hover, .pt-r.pt-on { box-shadow: 0 0 0 2px var(--lk-blue); }
.pt-r-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-r-n { font-size: 15px; font-weight: 500; color: var(--lk-ink); }
.pt-r-n small { display: block; font-size: 11.5px; color: var(--lk-ink-soft); font-weight: 400; }
.pt-r ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 12.5px; line-height: 1.45; color: var(--lk-ink-soft); }
.pt-r li.ok { color: var(--lk-ok); }
.pt-r li.warn { color: var(--lk-warn); }
.pt-r li.err { color: var(--lk-crit); }
.pt-r .pt-best { font-size: 12.5px; color: var(--lk-ink); margin: 5px 0 0; line-height: 1.45; }
.pt-r.poor { opacity: .72; }
.pt-more { margin-top: 10px; }

/* chart */
.pt-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-bottom: 10px; }
.pt-ctl label { display: block; font-size: 12px; color: var(--lk-ink); margin: 0 0 2px; }
.pt-ctl select { font: 13px var(--lk-ui); color: var(--lk-ink); border: 1px solid var(--lk-line); border-radius: 3px; padding: 5px 7px; background: #fff; max-width: 100%; }
.pt-ctl > div { min-width: 0; max-width: 100%; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pt-chip { appearance: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lk-line); background: #fff; color: var(--lk-ink); font: 500 12.5px/1.2 var(--lk-ui); padding: 5px 9px; border-radius: 14px; cursor: pointer; }
.pt-chip i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.pt-chip[aria-pressed="false"] { color: #8a9296; text-decoration: line-through; }
.pt-chip[aria-pressed="false"] i { background: #ccd; }
.pt-chart { background: #fff; border: 2px solid var(--lk-outline); border-radius: 6px; overflow: hidden; }
.pt-chart svg, .pt-chart img { display: block; width: 100%; height: auto; }
.pt-chart .pt-reg, .pt-chart .pt-lab { cursor: pointer; }
.pt-cap { font-size: 12.5px; color: var(--lk-ink-soft); margin: 8px 0 0; line-height: 1.5; }
.pt-lb { border: 0; padding: 14px; width: min(97vw, 1500px); max-height: 96vh; border-radius: 6px; }
.pt-lb::backdrop { background: rgba(10, 30, 35, .72); }
.pt-lb .pt-lb-b svg { display: block; width: 100%; height: auto; max-height: calc(96vh - 80px); }
.pt-lb-x { display: block; margin: 0 0 10px auto; }

/* comparison table: rating dots; turns into one card per pump when too wide */
.pt-tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.pt-tbl th, .pt-tbl td { border: 1px solid var(--lk-line-s); padding: 6px 7px; vertical-align: top; text-align: left; }
.pt-tbl thead th { background: #1d3f4b; color: #fff; font-size: 11.5px; line-height: 1.3; vertical-align: bottom; }
.pt-tbl tbody th { font-size: 13.5px; color: var(--lk-ink); min-width: 9em; }
.pt-tbl small { display: block; font-size: 11px; color: var(--lk-ink-soft); font-weight: 400; }
.pt-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.pt-dots { display: inline-flex; gap: 2px; vertical-align: middle; }
.pt-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #1a6475; background: #fff; }
.pt-dots i.on { background: #1a6475; }
.pt-dots i.half { background: #9fc4cc; border-color: #6f9fa9; }
.pt-rv { display: block; font-size: 11px; color: var(--lk-ink-soft); }
.pt-tblwrap { overflow-x: auto; }
.pt-tblwrap.pt-fit { overflow: visible; }
.pt-cards thead { display: none; }
.pt-cards, .pt-cards tbody { display: block; }
.pt-cards tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--lk-line); border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.pt-cards tbody th { grid-column: 1 / -1; background: #f0f4f5; border: 0; border-bottom: 1px solid var(--lk-line); }
.pt-cards td { border: 0; border-bottom: 1px solid var(--lk-line-s); }
.pt-cards td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--lk-ink-soft); margin-bottom: 2px; }
.pt-cards .pt-rv { display: inline; margin-left: 6px; }
.pt-key { font-size: 12.5px; color: var(--lk-ink-soft); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.pt-guide .ref-table td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .pt-guide .ref-table td:first-child { white-space: normal; } }

@media print {
  .pt-chips, .pt-btns, .pt-lb, .kc-tabs, .sq-seg { display: none !important; }
  .pt-r { break-inside: avoid; }
}
#ptAxes:not([hidden]) { display: contents; }
