/* Profile (own + public) and Pro Labs, ops look. Loaded after each page's own css. Theme tokens only. */

.ppx, .plx {
  --ox-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ox-edge: color-mix(in srgb, var(--primary) 32%, var(--line));
  --ox-glow: color-mix(in srgb, var(--primary) 18%, transparent);
  --ox-card: color-mix(in srgb, var(--card-bg, var(--surface)) 92%, var(--bg, #000));
}

/* ============================ PROFILE ============================ */
/* the "show all badges" list was always visible: author display:grid beat the hidden attribute */
.ppx-badges[hidden] { display: none !important; }

.ppx-hero { border-radius: 16px; }
.ppx-hero::before { height: 2px; }
.ppx-eyebrow { font-family: var(--ox-mono); font-weight: 600; letter-spacing: 0.12em; }
.ppx-rank strong { font-family: var(--ox-mono); font-weight: 600; letter-spacing: -0.04em; }
.ppx-rank > span { font-family: var(--ox-mono); font-size: 0.64rem; letter-spacing: 0.14em; }
.ppx-chip { border-radius: 6px; font-family: var(--ox-mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.ppx-stats { border-radius: 14px; background: var(--ox-card); }
.ppx-stats dt { font-family: var(--ox-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ppx-stats dd { font-family: var(--ox-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.ppx-progress { font-family: var(--ox-mono); font-size: 0.78rem; }

.ppx-panel { position: relative; border-radius: 14px; background: var(--ox-card); }
.ppx-panel::before, .ppx-panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--ox-edge); transition: border-color 0.2s, width 0.2s, height 0.2s; }
.ppx-panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 14px; }
.ppx-panel::after { right: 0; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 14px; }
.ppx-panel:hover::before, .ppx-panel:hover::after { border-color: var(--primary); width: 22px; height: 22px; }
.ppx-panel > h2 { font-family: var(--ox-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.ppx-panel > h2 > i { color: var(--primary); }
.ppx-panel > h2 small { font-family: var(--ox-mono); letter-spacing: 0; text-transform: none; }
.ppx-heat i, .ppx-legend, .ppx-badges li span { font-family: var(--ox-mono); }
.ppx-badges li { border-radius: 10px; }

/* ============================ PRO LABS ============================ */
.plx-head, .plx-dhead {
  position: relative; overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.6rem); border: 1px solid var(--ox-edge); border-radius: 16px;
  background: radial-gradient(70% 140% at 0% 0%, var(--ox-glow), transparent 60%), var(--ox-card);
}
.plx-head::before, .plx-dhead::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary)), transparent 85%); }
.plx-head > *, .plx-dhead > * { position: relative; }
.plx-eyebrow { font-family: var(--ox-mono); font-weight: 600; letter-spacing: 0.12em; }
.plx-eyebrow::before { content: "// "; }
.plx h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.plx-access { border-radius: 12px; font-family: var(--ox-mono); }
.plx-h2 { font-family: var(--ox-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.plx-h2::before { content: "// "; color: var(--primary); }

.plx-card { position: relative; border-radius: 14px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.plx-card:hover { border-color: var(--ox-edge); transform: translateY(-2px); box-shadow: 0 16px 34px -24px var(--ox-glow); }
.plx-code, .plx-card-meta, .plx-level, .plx-soon, .plx-card-foot { font-family: var(--ox-mono); }
.plx-level { font-size: 0.74rem; letter-spacing: 0.03em; }
.plx-card-meta span { font-size: 0.72rem; }
.plx-steps > * { border-radius: 14px; position: relative; }
.plx-steps > li::before { font-family: var(--ox-mono); letter-spacing: 0.12em; }

.plx-facts { border-radius: 14px; }
.plx-facts dt, .plx-facts > div > span:first-child { font-family: var(--ox-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.plx-facts dd, .plx-facts strong { font-family: var(--ox-mono); font-weight: 600; }
.plx-brief, .plx-flags { border-radius: 14px; }
.plx-action { border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  .plx-card, .ppx-panel::before, .ppx-panel::after { transition: none; }
  .plx-card:hover { transform: none; }
}
