/* Filtered connector listing (High Risk / Safe / All) - port of the
   ClaudeSec/CopilotSec RiskListing page, themed per ecosystem. */
.risk-page {
  min-height: 100vh;
  background: #ffb195;            /* claudesec default */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
/* Copilot: same background as the Copilot home/ecosystem view (theme tint). */
.risk-page.planet-copilotsec { background: #edf2ee; }
/* Combined all-tools view (home "Browse All"): neutral home cream. */
.risk-page.planet-all { background: #fcf2d4; }
.risk-page.planet-marketplace { background: #9fe384; }

/* cross pattern background */
.risk-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='40' y1='28' x2='40' y2='52' stroke='rgba(255,255,255,0.25)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='28' y1='40' x2='52' y2='40' stroke='rgba(255,255,255,0.25)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
/* white crosses vanish on the pale copilot background; use a soft sage instead */
.risk-page.planet-copilotsec::before {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='40' y1='28' x2='40' y2='52' stroke='rgba(122,150,132,0.28)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='28' y1='40' x2='52' y2='40' stroke='rgba(122,150,132,0.28)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* same story on the cream all-tools background; soft warm crosses (home grid) */
.risk-page.planet-all::before {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='40' y1='28' x2='40' y2='52' stroke='rgba(196,152,90,0.28)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='28' y1='40' x2='52' y2='40' stroke='rgba(196,152,90,0.28)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.risk-page-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-sizing: border-box;
}

.risk-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.risk-page-back {
  align-self: flex-start;   /* compact pill - do not stretch to the flex column width */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 100px;
  padding: 9px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #000;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease;
}
.risk-page-back:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }

.risk-page-title {
  margin: 0;
  font-family: 'Unbounded', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  color: #000;
}

.risk-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 340px;
  max-width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 100px;
  box-shadow: 3px 3px 0 #000;
}
.risk-search svg { flex: none; }
.risk-search-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: 'Poppins', sans-serif; font-weight: 400; font-size: 14px; color: #1C1917;
}
.risk-search-input::placeholder { color: #78716C; }

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}

/* ---- combined all-tools page: search + risk dropdown row ------------------ */
.list-filterbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* risk dropdown trigger - same pill language as the catalog search box */
.risk-select-wrap { position: relative; }
.risk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 18px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 100px;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; color: #1c1917;
}
.risk-select-dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; flex: none; }
.risk-select-chev { flex: none; color: #57534e; }
/* the open menu - Figma 982:16273 (Market-Space catalog category dropdown):
   white card, 1px black border, 16px radius, 4px padding; rows of
   label + muted count with a soft sage highlight on the active row. */
.risk-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 190px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid #000; border-radius: 16px; padding: 4px;
}
.risk-menu[hidden] { display: none; }
.risk-menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; box-sizing: border-box;
  padding: 4px 12px; border: none; border-radius: 12px; background: transparent;
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 12px; line-height: 20px;
  color: #1c1917; text-transform: capitalize; cursor: pointer; text-align: left;
}
.risk-menu-item:hover, .risk-menu-item.is-active { background: rgba(220, 230, 222, 0.5); }
.risk-menu-count { color: #a8a29e; }

.risk-page-empty {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #1c1917;
  margin: 0;
  padding: 20px 0;
}

@media (max-width: 1100px) {
  .risk-page-content { padding: 36px 32px 60px; }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .risk-page-content { padding: 22px 16px 48px; gap: 20px; }
  .risk-page-toolbar { flex-direction: column; align-items: stretch; }
  .risk-search { width: 100%; }
  .risk-grid { grid-template-columns: 1fr; }
}

/* ---- rail accents follow the ecosystem ------------------------------------
   catalog.css ships the Market-Space green rail; retint per page so the rail
   belongs to its ecosystem: Claude = the Claude burnt-orange (eco-badge text
   tone, readable on the pink bg), Copilot = the Copilot blue, and the neutral
   All Plutonium Tools page = plain black, matching the site's ink. */
.risk-page.planet-claudesec .cat-rail-nav { border-left-color: #f2b696; }
.risk-page.planet-claudesec .cat-rail-link:hover,
.risk-page.planet-claudesec .cat-rail-link.is-active { color: #cd6a45; border-left-color: #cd6a45; }
.risk-page.planet-claudesec .cat-rail-link.is-active .cat-rail-count { color: #cd6a45; }

.risk-page.planet-copilotsec .cat-rail-nav { border-left-color: #c3d8f0; }
.risk-page.planet-copilotsec .cat-rail-link:hover,
.risk-page.planet-copilotsec .cat-rail-link.is-active { color: #5586c4; border-left-color: #5586c4; }
.risk-page.planet-copilotsec .cat-rail-link.is-active .cat-rail-count { color: #5586c4; }

.risk-page.planet-all .cat-rail-nav { border-left-color: #e3d5a3; }
.risk-page.planet-all .cat-rail-link:hover,
.risk-page.planet-all .cat-rail-link.is-active { color: #a16207; border-left-color: #a16207; }
.risk-page.planet-all .cat-rail-link.is-active .cat-rail-count { color: #a16207; }
