/* ============================================================
   SkinSignal / css / item-page.css
   AN ITEM'S PRICE PAGE, /item/<slug> (2026-10-14). The market terminal's
   language: a dark plate, the item's art big, the price as the hero
   number in mono. Green and red are data only (the changes); the rarity
   colour is the item's own and only lights its art and its chip.
   ============================================================ */

.ip {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 clamp(40px, 6vw, 72px);
  color: #e9edf3;
}
.ip .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ip i { font-style: normal; opacity: 0.55; }

.ip-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; letter-spacing: 0.08em; color: #8a92a0; text-transform: uppercase; }
.ip-crumbs a { color: #a8b6cc; text-decoration: none; }
.ip-crumbs a:hover, .ip-crumbs a:focus-visible { color: #e6eeff; text-decoration: underline; }
.ip-crumbs span { color: #c9d0db; text-transform: none; letter-spacing: 0.02em; }

/* ---------- The hero ---------- */
.ip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(180deg, #0b0f16, #070a10);
}
.ip-hero--choose { grid-template-columns: 1fr; }
.ip-art {
  --rc: #6d84b5;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(60% 55% at 50% 52%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 72%),
    radial-gradient(120% 90% at 50% 100%, rgba(61, 127, 255, 0.06), transparent 60%),
    #080b11;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ip-art::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 80%, transparent), transparent);
  opacity: 0.8;
}
.ip-art img { width: 92%; height: auto; max-height: 92%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55)); }
.ip-art__none { font-size: 12px; color: #6f7786; }

.ip-k { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a92a0; }
.ip-name {
  margin: 10px 0 0;
  font-family: 'Saira', sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: #f4f6f9;
  overflow-wrap: anywhere;
}
.ip-price {
  margin: 16px 0 0;
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.ip-price--none { font-family: 'Saira', sans-serif; font-size: clamp(24px, 3vw, 32px); color: #c9d0db; }
.ip-sub { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: #9aa3b2; }
.ip-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(61, 127, 255, 0.45);
  border-radius: 999px;
  background: rgba(61, 127, 255, 0.1);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #c9dbff;
  white-space: nowrap;
}

.ip-chg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ip-chg__w {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #090c12;
}
.ip-chg__w em { font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: #8a92a0; }
.ip-chg__w b { font-size: 17px; font-weight: 500; color: #e9edf3; font-variant-numeric: tabular-nums; }
.ip-chg__w span { font-family: 'Inter', sans-serif; font-size: 11.5px; line-height: 1.35; color: #8a92a0; }
.ip-chg__w.is-up b { color: #4bd68a; }
.ip-chg__w.is-down b { color: #ef5a61; }
.ip-chg--building { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; background: #090c12; }
.ip-chg--building em { font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: #8a92a0; }
.ip-chg--building span { font-family: 'Inter', sans-serif; font-size: 13px; color: #b3bbc8; }

/* ---------- The panels ---------- */
.ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ip-panel {
  min-width: 0;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #080b11;
}
.ip-history, .ip-member { grid-column: 1 / -1; }
.ip-h { margin: 0 0 10px; font-family: 'Saira', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #dfe5ee; }
.ip-panel > .ip-k { margin: -4px 0 12px; }
.ip-fine, .ip-foot { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: #7f8796; }
.ip-foot { margin-top: 18px; text-align: center; }
.ip-empty { margin: 0; font-size: 13px; color: #8a92a0; }

.ip-chartbox { position: relative; height: 240px; border-radius: 8px; background: linear-gradient(180deg, rgba(61, 127, 255, 0.05), transparent 70%), #070a0f; }
.ip-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.ip-chart__line { fill: none; stroke: #76a6ff; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ip-chart__dot { stroke: #76a6ff; stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ip-chart__grid { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ip-axis { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 11px; color: #8a92a0; }

.ip-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ip-table th { padding: 0 0 8px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #8a92a0; text-align: left; }
.ip-table td { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #dfe5ee; }
.ip-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.ip-dl { display: grid; gap: 0; margin: 0; }
.ip-dl > div { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr); gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ip-dl > div:first-child { border-top: 0; }
.ip-dl dt { font-size: 12px; color: #8a92a0; }
.ip-dl dd { margin: 0; font-size: 13.5px; color: #dfe5ee; overflow-wrap: anywhere; }
.ip-rar { --rc: #8a92a0; display: inline-flex; align-items: center; gap: 7px; }
.ip-rar::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 60%, transparent); }

.ip-fam { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-fam a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #0b0f16;
  font-size: 13px;
  color: #dfe5ee;
  text-decoration: none;
}
.ip-fam a:hover, .ip-fam a:focus-visible { border-color: rgba(61, 127, 255, 0.5); color: #ffffff; }
.ip-fam__none { font-size: 11px; color: #7f8796; }

/* ---------- The member panel: the lock, or the terminal's engine ---------- */
.ip-lock {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px), #070a0f;
  text-align: center;
}
.ip-lock[hidden], .ip-member__mount[hidden] { display: none; }
.ip-lock__icon { width: 30px; height: 30px; fill: none; stroke: rgba(225, 232, 244, 0.72); stroke-width: 1.6; stroke-linecap: round; }
.ip-lock__ask { margin: 0; font-size: 14px; color: #c9d0db; }
.ip-lock__cta { font-size: 13px; color: #8fb3ff; text-decoration: none; border-bottom: 1px solid rgba(143, 179, 255, 0.35); }
.ip-lock__cta:hover, .ip-lock__cta:focus-visible { color: #ffffff; border-bottom-color: #ffffff; }
.ip-peak { margin: 0 0 12px; font-size: 13.5px; color: #c9d0db; }
.ip-peak b { color: #ffffff; font-weight: 500; }
.ip-member__mount .mt-dr__head { padding-right: 0; }

@media (max-width: 760px) {
  .ip { width: calc(100% - 32px); }
  .ip-hero { grid-template-columns: 1fr; }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-chg__w b { font-size: 15px; }
  .ip-chartbox { height: 200px; }
}

/* ---------- What the consensus rule decided (lib/consensus.js) ---------- */
.ip-what { color: #dfe5ee; font-weight: 600; }
.ip-price--disagree { color: #e9edf3; letter-spacing: 0.01em; }
.ip-lock--slim { padding: 22px 16px; }
.ip-markets__mount[hidden], .ip-lock--slim[hidden] { display: none; }
.ip-table th:nth-child(4), .ip-table .ip-mrole { text-align: left; padding-left: 14px; }
.ip-mrole { font-size: 12px; color: #9aa3b2; }
.ip-mrow--thin td, .ip-mrow--steam td { color: #8a92a0; }
.ip-mrow--thin .ip-mrole, .ip-mrow--steam .ip-mrole { color: #7f8796; }
@media (max-width: 760px) {
  .ip-markets .ip-table { font-size: 13px; }
  .ip-table th:nth-child(3), .ip-table td:nth-child(3) { display: none; }
}
.ip-phase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 0; font-size: 11.5px; color: #9aa3b2; }
.ip-phase b { padding: 2px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; font-weight: 500; letter-spacing: 0.06em; color: #dfe5ee; white-space: nowrap; }
.ip-phase span { font-family: 'Inter', sans-serif; }
