/* PQC Compatibility Matrix — supplemental styles (Tailwind does the rest) */

:root {
  --ok: #34d399;
  --warn: #fbbf24;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-ok   { color: var(--ok);   background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.pill-warn { color: var(--warn); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }

.dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; }
.dot-ok   { background: var(--ok); }
.dot-warn { background: var(--warn); }

/* PQC layer (track) chips */
.track {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid;
}
.track-comms    { color: #67e8f9; border-color: rgba(103, 232, 249, 0.4); background: rgba(103, 232, 249, 0.08); }
.track-products { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.4); background: rgba(196, 181, 253, 0.08); }

/* Level chips */
.lvl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid;
}
.lvl-1 { color: #67e8f9; border-color: rgba(103, 232, 249, 0.4); background: rgba(103, 232, 249, 0.08); }
.lvl-2 { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.08); }
.lvl-3 { color: #f0abfc; border-color: rgba(240, 171, 252, 0.4); background: rgba(240, 171, 252, 0.08); }

/* Mechanism / algorithm tags */
.mtag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  white-space: nowrap;
}

/* Release code style */
.rel {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #e2e8f0;
}

/* Filter option rows */
.filter-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.83rem;
  color: #cbd5e1;
}
.filter-opt:hover { background: rgba(148, 163, 184, 0.08); }
.filter-opt input { accent-color: #06b6d4; width: 0.95rem; height: 0.95rem; }
.filter-opt .cnt { margin-left: auto; font-size: 0.68rem; color: #64748b; font-family: 'JetBrains Mono', monospace; }

.filter-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Result card */
.rowcard {
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.rowcard:hover { border-color: rgba(34, 211, 238, 0.4); }

/* Card left status rail */
.rail { width: 3px; border-radius: 9999px; align-self: stretch; }
.rail-ok   { background: var(--ok); }
.rail-warn { background: var(--warn); }

.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); }

/* ---- Standard-type (kind) chips ---- */
.kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 600;
  padding: 0.1rem 0.45rem; border-radius: 0.35rem; border: 1px solid;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.kind-fips   { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.kind-rfc    { color: #67e8f9; border-color: rgba(103,232,249,.4); background: rgba(103,232,249,.08); }
.kind-draft  { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.kind-scheme { color: #c4b5fd; border-color: rgba(196,181,253,.4); background: rgba(196,181,253,.08); }
.kind-suite  { color: #f0abfc; border-color: rgba(240,171,252,.4); background: rgba(240,171,252,.08); }

/* ---- SKU / part-number chips ---- */
.skuchip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  color: #cbd5e1; background: rgba(51,65,85,.35);
  border: 1px solid #334155; border-radius: 0.375rem;
  padding: 0.15rem 0.45rem; cursor: pointer; transition: all .15s ease;
}
.skuchip:hover { border-color: rgba(34,211,238,.5); color: #67e8f9; background: rgba(34,211,238,.08); }
.skuchip-hit { border-color: #22d3ee; color: #22d3ee; background: rgba(34,211,238,.14); box-shadow: 0 0 0 1px rgba(34,211,238,.3); }

/* ---- Grid / pivot ---- */
.gridwrap { overflow-x: auto; border: 1px solid #1e293b; border-radius: 0.75rem; background: rgba(15,23,42,.5); }
table.pqcgrid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.8rem; }
table.pqcgrid th, table.pqcgrid td { border-bottom: 1px solid #1e293b; border-right: 1px solid #1e293b; }
table.pqcgrid thead th {
  position: sticky; top: 0; z-index: 2;
  background: #0b1220; padding: 0.5rem 0.6rem; text-align: center; vertical-align: middle;
  font-weight: 600; color: #cbd5e1; white-space: nowrap;
}
table.pqcgrid thead th.col-products { background: #140f22; }
.gcolh { display: flex; align-items: center; gap: 0.3rem; justify-content: center; }
.gcoll { display: block; font-size: 0.58rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-top: 1px; }
th.corner { position: sticky; left: 0; z-index: 3; background: #0b1220; text-align: left; min-width: 190px; }
th.rowh {
  position: sticky; left: 0; z-index: 1; background: #0b1220;
  text-align: left; padding: 0.5rem 0.6rem; color: #e2e8f0; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem; min-width: 190px; white-space: nowrap;
}
th.rowh i { color: #22d3ee; flex-shrink: 0; }
table.pqcgrid td.gcell { padding: 0.45rem 0.6rem; text-align: center; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
td.gcell .gdot { display: inline-block; width: .5rem; height: .5rem; border-radius: 9999px; margin-right: .3rem; vertical-align: middle; }
td.gcell .glabel { font-family: 'JetBrains Mono', monospace; font-size: .68rem; vertical-align: middle; }
td.g-available { background: rgba(52,211,153,.10); color: #6ee7b7; }
td.g-available .gdot { background: #34d399; }
td.g-available:hover { background: rgba(52,211,153,.20); }
td.g-planned { background: rgba(251,191,36,.09); color: #fcd34d; }
td.g-planned .gdot { background: #fbbf24; }
td.g-planned:hover { background: rgba(251,191,36,.18); }
td.gnone { color: #334155; text-align: center; cursor: default; }
td.gdim { opacity: .28; }

/* ---- Regulatory timeline ---- */
.tlwrap { position: relative; padding-left: 0.5rem; }
.tlyear {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.1rem;
  color: #22d3ee; margin: 1.1rem 0 0.5rem; padding-left: 1.4rem;
}
.tlitem { position: relative; padding-left: 1.4rem; padding-bottom: 0.9rem; border-left: 2px solid #1e293b; margin-left: 0.35rem; }
.tlitem:last-child { border-left-color: transparent; }
.tldot { position: absolute; left: -0.42rem; top: 0.25rem; width: 0.7rem; height: 0.7rem; border-radius: 9999px; background: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.tlbadge { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; border: 1px solid #334155; border-radius: 0.3rem; padding: 0.05rem 0.4rem; }
