/* /security/joomla-bans — Joomla → cpfence ban propagation review.
   Tokens only; no hardcoded colours (design-system rule). */

.jban-page { max-width: 1280px; }

.jban-stats {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px;
}
.jban-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; min-width: 108px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.jban-stat-active { border-color: var(--red); }
.jban-stat-n { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.jban-stat-l { font-size: var(--fs-xs); color: var(--muted, inherit); opacity: .75; }

.jban-note {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 16px;
  font-size: .92rem; line-height: 1.5;
}

.jban-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.jban-filter input[type="search"] { min-width: 220px; }
.jban-link { margin-left: 6px; font-size: var(--fs-xs); }
.jban-filter .jban-link:first-of-type { margin-left: auto; }

.jban-empty {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; text-align: center;
}

.jban-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jban-table th {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .03em;
  opacity: .7; font-weight: 600;
}
.jban-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.jban-row-blocked { background: var(--red-bg, transparent); }
.jban-row-whitelisted, .jban-row-unblocked { opacity: .68; }

.jban-ip { font-family: var(--mono); font-weight: 600; }
.jban-site { font-family: var(--mono); font-size: var(--fs-xs); word-break: break-all; }
.jban-rev { font-family: var(--mono); font-size: var(--fs-xs); opacity: .6; }
.jban-reason { font-size: var(--fs-xs); opacity: .7; margin-top: 3px; }

.jban-gate {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  border: 1px solid var(--border); margin-right: 6px;
}
.jban-gate-sig  { border-color: var(--red);   color: var(--red-deep); }
.jban-gate-corr { border-color: var(--orange); color: var(--orange-deep); }

.jban-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px;
  font-size: var(--fs-xs); border: 1px dashed var(--border); opacity: .7;
}

.jban-state { font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .03em; }
.jban-state-blocked { color: var(--red-deep); }
.jban-state-wl      { color: var(--green-deep); }
.jban-state-ub      { color: var(--orange-deep); }

.jban-act-h { text-align: right; }
.jban-act { text-align: right; white-space: nowrap; }
.jban-form { display: inline-block; margin-left: 6px; }
.jban-btn {
  padding: 4px 10px; font-size: var(--fs-xs); cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-elev); color: inherit;
}
.jban-btn:hover { border-color: var(--brand); }
.jban-btn-wl:hover { border-color: var(--green); }

@media (max-width: 820px) {
  .jban-table thead { display: none; }
  .jban-table tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .jban-table td { display: block; border: 0; padding: 3px 8px; }
  .jban-act, .jban-act-h { text-align: left; }
}

/* Source facet — added when the page went universal (2026-08-11). */
.jban-src { font-weight: 600; font-size: var(--fs-xs); }

/* Click-to-sort headers (Matt 2026-08-11). Arrow is CSS-only — no inline JS. */
.jban-sortable { cursor: pointer; user-select: none; }
.jban-sortable:hover { color: var(--brand); }
.jban-sortable:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.jban-sortable::after { content: " ⇅"; opacity: .3; font-size: .9em; }
.jban-sort-asc::after  { content: " ↑"; opacity: 1; color: var(--brand); }
.jban-sort-desc::after { content: " ↓"; opacity: 1; color: var(--brand); }

/* Lookup hero + verdict card. Search is the primary action on this page:
   any of the ~400k blocked addresses can be answered for, without listing. */
.jban-lookup { margin: 4px 0 14px; }
.jban-lookup label { display:block; font-size:.9rem; margin-bottom:6px; }
.jban-lookup-row { display:flex; gap:8px; max-width:520px; }
.jban-lookup-row input { flex:1; font-family: var(--mono); }
.jban-verdict {
  border:1px solid var(--border); border-left:3px solid var(--border);
  border-radius:0; padding:14px 16px; margin-bottom:18px; background: var(--bg-elev);
}
.jban-verdict-blocked     { border-left-color: var(--red); }
.jban-verdict-whitelisted { border-left-color: var(--green); }
.jban-verdict-clean       { border-left-color: var(--green); }
.jban-verdict-err         { border-left-color: var(--orange); }
.jban-verdict-head { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.jban-verdict-head .jban-ip { font-size:1.05rem; }
.jban-badge { font-size: var(--fs-xs); font-weight:600; padding:2px 9px; border-radius:999px; border:1px solid var(--border); }
.jban-badge-blocked     { border-color: var(--red);   color: var(--red-deep); }
.jban-badge-whitelisted { border-color: var(--green); color: var(--green-deep); }
.jban-badge-clean       { border-color: var(--green); color: var(--green-deep); }
.jban-stack { width:100%; font-size:.88rem; border-collapse:collapse; }
.jban-stack td { padding:4px 8px 4px 0; vertical-align:top; }
.jban-stack td:first-child { width:170px; opacity:.7; }
.jban-hostlist, .jban-unreach { font-family: var(--mono); font-size: var(--fs-xs); }
.jban-unreach { color: var(--orange-deep); }
.jban-verdict-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }

/* Mechanism census — "who is blocking how much". The two vendor/agent tiles
   dwarf ours by four orders of magnitude, so ours is visually marked. */
.jban-mech { margin: 6px 0 18px; }
.jban-mech-head { font-size:.9rem; margin-bottom:8px; }
.jban-mech-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap:8px; }
.jban-mech-tile { display:flex; flex-direction:column; gap:1px; padding:10px 12px;
  background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius-lg); }
.jban-mech-ours { border-color: var(--brand); }
.jban-mech-n { font-size:1.25rem; font-weight:700; line-height:1.15; }
.jban-mech-l { font-size:.82rem; }
.jban-mech-h { font-size: var(--fs-xs); opacity:.6; }
.jban-mech-foot { font-size: var(--fs-xs); opacity:.7; margin-top:8px; }

/* Tiles are navigation. Colour is state, consistently across every view:
   green = allowed, red = blocked/banned, amber = unblocked by a human. */
.jban-mech-link { text-decoration:none; color:inherit; cursor:pointer; }
.jban-mech-link:hover { border-color: var(--brand); }
.jban-mech-on { border-color: var(--brand); border-width:2px; }
.jban-mech-allow { border-color: var(--green); }
.jban-listhead { font-size:.92rem; margin:4px 0 10px; }

.jban-row-blocked     { background: var(--red-bg, transparent);   border-left:3px solid var(--red); }
.jban-row-whitelisted { background: var(--green-bg, transparent); border-left:3px solid var(--green); opacity:1; }
.jban-row-unblocked   { background: var(--orange-bg, transparent); border-left:3px solid var(--orange); opacity:1; }
.jban-state-blocked { color: var(--red-deep); }
.jban-state-wl      { color: var(--green-deep); }
.jban-state-ub      { color: var(--orange-deep); }

/* The lookup is the primary action, so it leads the page and looks like it.
   Matt: "The IP lookup box is obscure." It was — a small field below a wall
   of numbers, competing with six tiles for attention. */
.jban-hero { background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px; margin: 6px 0 18px; }
.jban-hero .jban-lookup { margin: 0; }
.jban-hero label { display:block; font-size:1.05rem; font-weight:600; margin-bottom:8px; }
.jban-hero .jban-lookup-row { max-width: 640px; }
.jban-hero input { font-size:1.02rem; padding:9px 12px; }
.jban-go { white-space:nowrap; font-weight:600; }
.jban-hero-hint { font-size: var(--fs-xs); opacity:.7; margin-top:7px; }

/* Second tile row navigates the list below, same as the census tiles. */
.jban-stat-link { text-decoration:none; color:inherit; cursor:pointer; }
.jban-stat-link:hover { border-color: var(--brand); }
.jban-stat-on { border-width:2px; border-color: var(--brand); }
.jban-stat-red   { border-color: var(--red); }
.jban-stat-amber { border-color: var(--orange); }

/* Scope choice. Origin-only and fleet-wide are genuinely different decisions,
   so they are separate buttons rather than a dropdown you can mis-set. */
.jban-scopehint { font-size: var(--fs-xs); opacity:.75; margin-top:9px; line-height:1.5; }
.jban-domain { font-size:.88rem; word-break:break-all; }

/* Progressive disclosure: guidance lives next to the decision, collapsed. A
   standing paragraph mid-page is text you learn to scroll past. */
.jban-scopehint summary { cursor:pointer; font-weight:600; opacity:.85; }
.jban-scopehint p { margin:6px 0 0; }

/* Say the white box is a search result. Without a label it reads as just
   another panel and you cannot tell it came from your lookup. */
.jban-results-label { font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing:.06em; font-weight:700; opacity:.6; margin-bottom:8px; }
.jban-stat-green { border-color: var(--green); }

/* The working overlay moved to components.css as a shared component. */
.jban-btn-block:hover { border-color: var(--red); color: var(--red-deep); }
