/* Organizations (public page, member pages, manager dashboard, billing, leaderboard), ops look.
   Loaded after orgs.css. Theme tokens only. */

.orx, .orgm, .orgs-shell {
  --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));
}

/* hero cards: the plain headers become the same card used across the site */
.orx > .orx-head, .orgm > header.ph, .orgs-shell > .ph {
  position: relative; overflow: hidden; align-items: center;
  padding: clamp(1rem, 2.4vw, 1.5rem); margin-bottom: 0; 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);
}
.orx > .orx-head::before, .orgm > header.ph::before, .orgs-shell > .ph::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary)), transparent 85%); }
.orx > .orx-head > *, .orgm > header.ph > *, .orgs-shell > .ph > * { position: relative; }
.orx-eyebrow, .orgm .ph-eyebrow, .orgs-shell .ph-eyebrow, .orx-label { font-family: var(--ox-mono); font-weight: 600; letter-spacing: 0.12em; }
.orx-eyebrow::before, .orgm .ph-eyebrow::before, .orgs-shell .ph-eyebrow::before { content: "// "; color: var(--primary); }
.orx-head h1, .orgm > header.ph h1, .orgs-shell > .ph h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; }
.orx-meta, .orgm .ph-meta, .orx-state, .orx-note { font-family: var(--ox-mono); font-size: 0.78rem; }

/* section headings */
.orx-h2 { font-family: var(--ox-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.orx-h2::before { content: "// "; color: var(--primary); }

/* cards with bracketed corners */
.orx-card, .orgm .panel, .orgs-shell .panel { position: relative; border-radius: 14px; background: var(--ox-card); }
.orx-card::before, .orx-card::after, .orgm .panel::before, .orgm .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;
}
.orx-card::before, .orgm .panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 14px; }
.orx-card::after, .orgm .panel::after { right: 0; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 14px; }
.orx-card:hover::before, .orx-card:hover::after, .orgm .panel:hover::before, .orgm .panel:hover::after { border-color: var(--primary); width: 22px; height: 22px; }

/* numbers and stat tiles */
.orx-stats, .orgm .kpi, .orgm .stats { font-family: var(--ox-mono); }
.orx-stats strong, .orx-stats b, .orgm .kpi strong, .orgm .stat-value { font-family: var(--ox-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.orx-stats span, .orgm .kpi span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.orx-plan-price, .orx-plan-example { font-family: var(--ox-mono); }
.orx-plan { border-radius: 14px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.orx-plan:hover { border-color: var(--ox-edge); transform: translateY(-2px); box-shadow: 0 16px 34px -24px var(--ox-glow); }
.orx-steps > * { border-radius: 12px; }

/* tables (members, invoices, leaderboard) */
.orx table thead th, .orgm table thead th, .orgs-shell table thead th { font-family: var(--ox-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.orx table td.num, .orgm table td.num, .orgs-shell table td.num { font-family: var(--ox-mono); font-variant-numeric: tabular-nums; }

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