/* ============================================================
   ProcureOS product page: what only this page uses (the hero stage, the pain
   loops, the puzzle, the 03 scenes, the supplier board and comparison, the
   donut). The base, the reusable objects and the section frames are in
   product-page.css, which is loaded first. Scoped under #pqos (the page root
   in src/content/products/procureos.njk).
   ============================================================ */

/* ---------- hero stage ---------- */

#pqos .hs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.25fr);
  gap: 14px;
  align-items: center;
}

#pqos .hs-pr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--nlm-shadow-lg);
}

#pqos .hs-pr .tag {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#pqos .hs-pr b {
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: var(--nlm-signal);
}

#pqos .hs-pr-t {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--nlm-fg-1);
}

#pqos .hs-pr-m {
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#pqos .hs-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#pqos .hs-ai-l {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--nlm-navy-300);
}

#pqos .hs-sup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pqos .sup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color 0.3s;
}

#pqos .sup[data-st="none"] {
  border-color: var(--pq-amber);
}

#pqos .sup-n {
  font-size: 11.5px;
  color: var(--nlm-navy-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pqos .sup-p {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

#pqos .sup-drop {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #5ee08a;
  background: rgb(34 197 94 / 14%);
  border-radius: 999px;
  padding: 2px 7px;
}

#pqos .hs-cmp {
  grid-column: 1 / -1;
  position: relative;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 12px;
  padding: 12px 14px;
}

#pqos .hs-cmp-l {
  display: block;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
  margin-bottom: 8px;
}

#pqos .hs-nego {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--pq-ai);
}

#pqos .hs-nego:not(.is-off) {
  animation: pq-shimmer 0.9s ease-in-out infinite;
}

#pqos .hs-nego :is(svg, i[data-lucide]) {
  width: 11px;
  height: 11px;
}

#pqos .hs-cmp > .stamp {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 10px;
}

#pqos .hs-cmp > .cur {
  top: 44%;
  inset-inline-start: 46%;
}

/* pain loop 1: rows keep flipping to FOLLOW-UP REQUIRED */
#pqos .qa-1 {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  max-width: 300px;
}

#pqos .qa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--nlm-fg-2);
}

#pqos .qa-flip {
  display: inline-grid;
  justify-items: end;
}

#pqos .qa-flip > .st {
  grid-area: 1 / 1;
  animation: pq-flip-a 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s);
}

#pqos .qa-flip > .st + .st {
  animation-name: pq-flip-b;
}

/* pain loop 2: follow-up pings stacking on one supplier */
#pqos .qa-2 {
  flex-wrap: wrap;
}

#pqos .qa-sup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 9px;
  padding: 7px 10px;
}

#pqos .qa-sup :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#pqos .qa-pings {
  display: inline-flex;
  gap: 14px;
  padding-inline-start: 4px;
}

#pqos .qa-pings .ping {
  background: var(--nlm-danger);
  animation: pq-seq 4.2s var(--nlm-ease) infinite;
}

#pqos .qa-pings .ping:nth-child(2) {
  animation-delay: 0.7s;
}

#pqos .qa-pings .ping:nth-child(3) {
  animation-delay: 1.4s;
}

#pqos .qa-pings .ping b {
  background: var(--nlm-navy-900);
}

/* pain loop 3: the clock spins while the calendar flips days */
#pqos .qa-cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nlm-fg-3);
}

#pqos .qa-cal :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#pqos .qa-days {
  display: inline-grid;
  font-family: var(--nlm-font-mono);
  font-size: 20px;
  color: var(--nlm-danger);
}

#pqos .qa-days b {
  grid-area: 1 / 1;
  opacity: 0;
  animation: pq-day 5s steps(1) infinite;
}

#pqos .qa-days b:nth-child(2) {
  animation-delay: 1s;
}

#pqos .qa-days b:nth-child(3) {
  animation-delay: 2s;
}

#pqos .qa-days b:nth-child(4) {
  animation-delay: 3s;
}

#pqos .qa-days b:nth-child(5) {
  opacity: 1;
  animation-delay: 4s;
}

/* pain loop 4: the same emails, back and forth */
#pqos .qa-4 {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

#pqos .qa-4 .bub {
  font-size: 11px;
  padding: 5px 10px;
  animation: pq-seq 5.4s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.9s);
}

#pqos .qa-4 .bub-in {
  align-self: flex-end;
}

/* pain loop 5: a spreadsheet filled cell by cell */
#pqos .qa-5 {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

#pqos .qa-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-fg-2);
}

#pqos .qa-file :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
  color: var(--nlm-success);
}

#pqos .qa-names {
  display: inline-grid;
}

#pqos .qa-names span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: pq-name 6s steps(1) infinite;
}

#pqos .qa-names span:nth-child(2) {
  animation-delay: 2s;
}

#pqos .qa-names span:nth-child(3) {
  opacity: 1;
  animation-delay: 4s;
}

#pqos .qa-cells {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 3px;
}

#pqos .qa-cells i {
  height: 11px;
  border-radius: 2px;
  background: var(--nlm-danger-soft);
  border: 1px solid var(--nlm-line);
  animation: pq-seq 6s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

/* ---------- 02 the procurement puzzle ---------- */

#pqos .pz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

#pqos .pz-split {
  display: grid;
  margin: 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.01em;
}

#pqos .pz-split > span {
  grid-area: 1 / 1;
  transition: opacity 0.4s var(--nlm-ease);
}

#pqos .pz-split-b {
  color: var(--nlm-danger);
}

#pqos .pz-split-b small {
  font-family: var(--nlm-font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--nlm-fg-3);
}

#pqos .pz-split-a {
  color: var(--nlm-warn);
}

#pqos .pz.is-done .pz-split-b,
#pqos .pz:not(.is-done) .pz-split-a {
  opacity: 0;
  visibility: hidden;
}

#pqos .pz-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#pqos .pz-hint {
  font-size: 13px;
  color: var(--nlm-fg-3);
}

#pqos .pz-board {
  --k: 1;

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

#pqos .pz-slot {
  display: grid;
  border: 2px dashed var(--nlm-line-strong);
  border-radius: 16px;
}

#pqos .pz-slot-gold {
  grid-column: 1 / -1;
  border-color: var(--nlm-warn);
}

#pqos .pz-piece {
  display: grid;
  margin: -2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
  perspective: 900px;
  transition: transform 0.6s var(--nlm-ease-soft);
}

#pqos .pz-piece:not(.is-solved) {
  z-index: 2;
  transform: translate(calc(var(--sx) * var(--k) * var(--dir)), calc(var(--sy) * var(--k))) rotate(var(--sr));
}

#pqos .pz-piece:not(.is-solved):is(:hover, :focus-visible) {
  transform: translate(calc(var(--sx) * var(--k) * var(--dir)), calc(var(--sy) * var(--k) - 6px)) rotate(0deg);
}

#pqos .pz-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 190px;
  border-radius: 16px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  backface-visibility: hidden;
  transition: transform 0.6s var(--nlm-ease-soft);
}

#pqos .pz-face b {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

#pqos .pz-n {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  opacity: 0.85;
}

#pqos .pz-front {
  background: var(--nlm-danger-soft);
  border: 1px solid var(--nlm-danger);
  color: var(--nlm-fg-2);
  box-shadow: var(--nlm-shadow-md);
}

#pqos .pz-front b,
#pqos .pz-front > :is(svg, i[data-lucide]) {
  color: var(--nlm-danger);
}

#pqos .pz-front > :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#pqos .pz-back {
  background: #fff;
  border: 1px solid var(--nlm-line);
  color: var(--nlm-fg-2);
  transform: rotateY(180deg);
}

#pqos .pz-back b {
  color: var(--nlm-fg-1);
}

#pqos .pz-piece.is-solved .pz-front {
  transform: rotateY(-180deg);
}

#pqos .pz-piece.is-solved .pz-back {
  transform: none;
}

#pqos :is(.pz-ai, .pz-ok) {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

#pqos :is(.pz-ai, .pz-ok) :is(svg, i[data-lucide]) {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

#pqos .pz-ai {
  color: var(--nlm-signal-ink);
}

#pqos .pz-ok {
  margin-top: auto;
  font-weight: 600;
  color: var(--nlm-success);
}

#pqos .pz-gold {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 10px 28px rgb(227 178 60 / 35%);
  transition: opacity 0.4s var(--nlm-ease), transform 0.5s var(--nlm-ease-soft), box-shadow 0.3s;
}

#pqos .pz-gold > :is(svg, i[data-lucide]) {
  width: 24px;
  height: 24px;
}

#pqos .pz-gold b {
  font-family: var(--nlm-font-display);
  font-size: 18px;
}

#pqos .pz-gold-s {
  margin-inline-start: auto;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#pqos .pz-gold:not(.is-placed) {
  transform: translateY(18px) rotate(-1.2deg);
}

#pqos .pz-gold:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

#pqos .pz-gold:not(.is-placed, :disabled) {
  animation: pq-float 2.2s ease-in-out infinite;
}

#pqos .sc-count {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: #5ee08a;
}

#pqos .sc-dots {
  display: grid;
  grid-template-columns: repeat(4, 14px);
  gap: 9px;
}

#pqos .sc-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--nlm-navy-600);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#pqos .sc-dots i.is-on {
  background: var(--nlm-signal);
  border-color: var(--nlm-signal);
  box-shadow: 0 0 10px var(--pq-glow);
}

#pqos .sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#pqos .sc-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(100%, 300px);
}

#pqos .sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--nlm-navy-300);
}

#pqos .sc-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

#pqos .sc-saved {
  font-weight: 600;
}

#pqos .sc-tray {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 190px;
  min-height: 62px;
  border: 2px solid var(--nlm-signal);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 8px;
  color: var(--pq-ai);
}

#pqos .sc-tray > :is(svg, i[data-lucide]) {
  display: none;
}

#pqos .doc {
  width: 28px;
  height: 34px;
  border-radius: 5px;
  background: #fff;
  color: var(--nlm-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--nlm-ease-soft), opacity 0.3s;
  transition-delay: calc(var(--i) * 0.16s);
}

#pqos .doc :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#pqos .scene.is-armed .doc {
  transform: translate(calc(var(--x) * var(--dir)), calc(var(--y) - 30px)) rotate(var(--r));
  transition-delay: 0s;
}

#pqos .scene-decide > .cur {
  top: 34%;
  inset-inline-start: 40%;
}

#pqos .scene-decide > .stamp {
  position: absolute;
  inset-inline-end: 44px;
  bottom: 12px;
}

#pqos .sm-work {
  position: relative;
}

#pqos .sm-counters {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#pqos .sm-counters li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--nlm-gray-50);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--nlm-fg-3);
}

#pqos .sm-counters b {
  font-family: var(--nlm-font-mono);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--nlm-fg-1);
  white-space: nowrap;
}

[dir="rtl"] #pqos .sm-counters b {
  text-align: end;
}

#pqos .sm-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pqos .sm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--nlm-line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--nlm-fg-1);
  transition: border-color 0.3s, opacity 0.3s, background 0.3s;
}

#pqos .sm-row[data-st="none"] {
  border-color: var(--nlm-warn);
}

#pqos .sm-row:is([data-st="expired"], [data-st="incomplete"]) {
  background: var(--nlm-gray-50);
  color: var(--nlm-fg-3);
}

#pqos .sm-row:is([data-st="expired"], [data-st="incomplete"]) .tick {
  color: var(--nlm-fg-3);
  text-decoration: line-through;
}

#pqos .sm-row.is-idle > :is(.st-stack, .sm-p) {
  visibility: hidden;
}

#pqos .sm-row .st {
  white-space: normal;
  text-align: end;
}

#pqos .sm-n {
  white-space: nowrap;
}

#pqos .sm-p {
  text-align: end;
}

#pqos .sm-bub {
  position: absolute;
  z-index: 3;
  inset-block-end: 54px;
  inset-inline-start: 24px;
  max-width: 240px;
  background: var(--nlm-signal);
  color: #fff;
  box-shadow: var(--nlm-shadow-lg);
}

#pqos .sm-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--nlm-fg-2);
}

#pqos .sm-tray :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--nlm-signal-ink);
}

#pqos .prio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#pqos .prio legend {
  padding: 0;
  margin-block-end: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#pqos .prio label {
  position: relative;
  cursor: pointer;
}

#pqos .prio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

#pqos .prio label span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--nlm-fg-2);
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#pqos .prio input:checked + span {
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
  color: #fff;
}

#pqos .prio input:focus-visible + span {
  outline: 2px solid var(--nlm-signal);
  outline-offset: 3px;
}

#pqos .sm-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#pqos .offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--nlm-line);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}

#pqos .offer h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--nlm-fg-1);
  margin: 0;
}

#pqos .offer-best {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nlm-signal);
  border-radius: 999px;
  padding: 3px 9px;
  visibility: hidden;
}

#pqos .offer.is-best {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal-soft);
}

#pqos .offer.is-best .offer-best {
  visibility: visible;
}

#pqos .offer.is-awarded {
  border-color: var(--pq-gold);
  background: var(--nlm-warn-soft);
}

#pqos .sm-offers.is-closed .offer:not(.is-awarded) {
  opacity: 0.45;
}

#pqos .offer-viz {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pqos .offer-viz .cc-bar {
  background: var(--nlm-gray-100);
}

#pqos .cc-dot {
  position: relative;
  display: block;
  height: 2px;
  margin-block: 5px;
  background: var(--nlm-gray-200);
}

#pqos .cc-dot i {
  position: absolute;
  top: -4px;
  inset-inline-start: calc(var(--w) - 10px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nlm-navy-900);
  transition: inset-inline-start 0.6s var(--nlm-ease-soft);
}

#pqos .offer dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}

#pqos .offer dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--nlm-line);
  padding: 7px 0;
  font-size: 13px;
}

#pqos .offer dt {
  color: var(--nlm-fg-3);
}

#pqos .offer dd {
  margin: 0;
  font-weight: 600;
  color: var(--nlm-fg-1);
  text-align: end;
}

#pqos .offer-stamp {
  position: absolute;
  top: -14px;
  inset-inline-end: 10px;
}

#pqos .dn {
  --a: 15;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#pqos .dn[data-state="before"] {
  --a: 90;
}

#pqos .dn .panel-t {
  align-self: flex-start;
  margin: 0;
}

#pqos .dn-svg {
  width: min(220px, 70%);
  rotate: -90deg;
}

#pqos .dn-svg circle {
  fill: none;
  stroke-width: 5.5;
  transition: stroke-dasharray 0.9s var(--nlm-ease-soft), stroke-dashoffset 0.9s var(--nlm-ease-soft), stroke 0.6s;
}

#pqos .dn-bg {
  stroke: var(--nlm-gray-100);
}

#pqos .dn-work {
  stroke: var(--nlm-signal);
  stroke-dasharray: var(--a) 100;
}

#pqos .dn[data-state="before"] .dn-work {
  stroke: var(--nlm-danger);
}

#pqos .dn-gold {
  stroke: var(--pq-gold);
  stroke-dasharray: calc(100 - var(--a)) 100;
  stroke-dashoffset: calc(var(--a) * -1);
}

#pqos .dn-leg {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--nlm-fg-1);
}

#pqos .dn-leg li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#pqos .dn-leg b {
  flex: none;
  min-width: 52px;
  font-family: var(--nlm-font-mono);
  font-size: 18px;
}

#pqos .dn-leg .bad b {
  color: var(--nlm-danger);
}

#pqos .dn-leg .ai b {
  color: var(--nlm-signal-ink);
}

#pqos .dn-leg .gold b {
  color: var(--nlm-warn);
}

/* ---------- responsive ---------- */

@media (width <= 1100px) {
  #pqos .pz-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 980px) {
  #pqos .sm-offers {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 640px) {
  #pqos .hs {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  #pqos .hs-sup {
    grid-column: 1 / -1;
  }

  #pqos .pz-board {
    --k: 0.4;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #pqos .pz-face {
    min-height: 210px;
    padding: 12px;
  }

  #pqos .sm-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pqos .sm-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #pqos .sm-row .sm-p {
    grid-column: 1 / -1;
    text-align: start;
  }

  #pqos .sc-quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  #pqos .hs-cmp > .stamp {
    position: static;
    margin-top: 10px;
  }
}

@media (width <= 420px) {
  #pqos .pz-board {
    grid-template-columns: minmax(0, 1fr);
  }

  #pqos .pz-face {
    min-height: 150px;
  }

  #pqos .qa-cells {
    grid-template-columns: repeat(5, minmax(0, 34px));
  }
}
