/* ============================================================
   SkinSignal / css / forum-plate.css
   The trade board in steel (the design pass, js/forum.js):
     the plates   every listing, full post and signed out row, is a
                  brushed steel plate with four bolts and an engraved
                  edge; its top edge carries the author's rank finish
                  (--ba to --bb, js/hall-bands.js by the rank already on
                  the byline)
     the flair    the byline's rank is a small plaque: the real emblem
                  and the rank's name, its rim in the same finish. A fact
                  about an inventory, never a trust mark: nothing here
                  says verified, vetted or safe
     off platform the notice is the board's rules plate (its words
                  unchanged), and every Contact on Steam carries its own
                  reminder that the trade happens on Steam
   No gold here: gold is prestige, and a rank flair is the finish's own.
   Nothing moves but a hover's border.
   ============================================================ */

/* ---------- The plates ---------- */
.post,
.tbp-row {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.013) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(180deg, #131923, #0a0e14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 14px 30px -18px rgba(0, 0, 0, 0.95);
}
/* The rank's finish along the top edge. */
.post::before,
.tbp-row::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(var(--ba, 120, 132, 150), 0), rgb(var(--ba, 120, 132, 150)) 20%, rgb(var(--bb, 120, 132, 150)) 80%, rgba(var(--bb, 120, 132, 150), 0));
  box-shadow: 0 0 10px rgba(var(--ba, 120, 132, 150), 0.6);
  pointer-events: none;
}
/* Four bolts, one radial each, in the corners. */
.post::after,
.tbp-row::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle at 3px 3px, #4a5361 0 1.6px, rgba(0, 0, 0, 0.7) 2.2px, transparent 3px) left top / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, #4a5361 0 1.6px, rgba(0, 0, 0, 0.7) 2.2px, transparent 3px) right top / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, #4a5361 0 1.6px, rgba(0, 0, 0, 0.7) 2.2px, transparent 3px) left bottom / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, #4a5361 0 1.6px, rgba(0, 0, 0, 0.7) 2.2px, transparent 3px) right bottom / 6px 6px no-repeat;
}
.post > *,
.tbp-row > * { position: relative; z-index: 1; }
.post__head { padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.55); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); }
.post__side { background: rgba(5, 8, 13, 0.55); }

/* ---------- The flair ---------- */
.post__rank,
.tbp-row__rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 3px;
  border: 1px solid rgba(var(--ba, 120, 132, 150), 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--ba, 120, 132, 150), 0.14), rgba(var(--ba, 120, 132, 150), 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.post__emblem { width: 22px; height: 22px; }
.post__ranklabel,
.tbp-row__rank { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #e6eaf0; }
.tbp-row__rank { padding: 2px 9px; }

/* ---------- Off platform ---------- */
.notice,
.tb--public .notice {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.013) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(180deg, #121822, #0a0e14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 30px -18px rgba(0, 0, 0, 0.95);
}
.notice::before,
.tb--public .notice::before { background: rgba(61, 127, 255, 0.16); color: #a8c4ff; }
.notice__kicker,
.tb--public .notice__kicker { margin: 0 0 2px; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f9cff; }
.post__offnote { margin: 0; font-family: var(--font-body); font-size: 11.5px; color: #7d8696; }

/* ---------- Nothing moves when the board arrives ----------
   The wrap keeps its space but is not shown until js/forum.js has drawn
   the first render (body.tb-known): the signed out layout replacing the
   signed in one used to move the notice and the board (CLS 0.51), the
   compose plate landing over the board moved it (0.066). If the script
   never says, the wrap shows anyway after 2.5s (a visibility step, not
   motion), so the notice can never stay hidden. */
body:not(.tb-known) .tb-wrap { visibility: hidden; animation: tbKnown 0s linear 2.5s forwards; }
@keyframes tbKnown { to { visibility: visible; } }
