/* Soppy nextwave - governance passport, cohort discovery, public-body badge.
   Standalone stylesheet, linked after style.css so it can reuse every :root design
   token (navy, blue, gold, sky, muted, line, chipbg, r-card, shadow) with literal
   fallbacks. Prefixes: g2-pp- passport, g2-coh- cohort pages, g2-pbadge badge.
   Hyphens and minus only, never long dashes. */

/* ============================================================
   Governance passport (g2-pp-)
   ============================================================ */
.g2-pp { max-width: 820px; margin: 0 auto; }
.g2-pp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.g2-pp-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--navy, #102033); font-size: 1.05rem; letter-spacing: -.02em; }
.g2-pp-brand .mark { display: grid; place-items: center; height: 28px; width: 28px; border-radius: 8px; background: var(--navy, #102033); color: var(--gold, #f4b942); }
.g2-pp-brand .mark svg { width: 18px; height: 18px; }
.g2-pp-kicker { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted, #5b6472); }
.g2-pp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.g2-pp-print { font-size: .85rem; font-weight: 600; color: var(--blue, #1d4ed8); border: 1px solid var(--sky-line, #e3e9f2); border-radius: 8px; padding: 7px 13px; background: #fff; }
.g2-pp-print:hover { background: var(--sky, #eaf4ff); text-decoration: none; }
.g2-pp-name { margin: 6px 0 2px; }
.g2-pp-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted, #5b6472); margin: .25em 0 18px; }
.g2-pp-stats { margin-bottom: 18px; }
.g2-pp-prov { margin: 18px 0 0; font-size: .78rem; color: var(--muted, #5b6472); border-top: 1px solid var(--line, rgba(16, 32, 51, .12)); padding-top: 12px; }

/* ============================================================
   Cohort discovery (g2-coh-)
   ============================================================ */
.g2-coh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 820px) { .g2-coh-grid { grid-template-columns: 1fr; } }
.g2-coh-card { display: flex; flex-direction: column; gap: 8px; background: var(--card, #fff); border: 1px solid var(--line, rgba(16, 32, 51, .12)); border-radius: 16px; padding: 18px 18px 15px; box-shadow: var(--shadow, 0 1px 2px rgba(16, 32, 51, .04)); color: var(--ink, #182230); }
.g2-coh-card:hover { border-color: var(--blue, #1d4ed8); text-decoration: none; box-shadow: var(--shadow-hi, 0 18px 40px -16px rgba(16, 32, 51, .28)); }
.g2-coh-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.g2-coh-label { font-weight: 750; color: var(--navy, #102033); font-size: 1.02rem; letter-spacing: -.01em; }
.g2-coh-count { font-weight: 800; color: var(--blue, #1d4ed8); font-variant-numeric: tabular-nums; }
.g2-coh-desc { margin: 0; font-size: .86rem; color: var(--muted, #5b6472); line-height: 1.4; }
.g2-coh-more { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--blue, #1d4ed8); display: inline-flex; align-items: center; gap: 5px; }
.g2-coh-more svg { width: 15px; height: 15px; }
.g2-coh-list { margin: 0; }
.g2-coh-row { display: flex; align-items: center; gap: 12px; }
.g2-coh-rank { flex: 0 0 auto; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--chipbg, #eef3fb); color: var(--blue, #1d4ed8); font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.g2-coh-person { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g2-coh-person a { font-weight: 600; }
.g2-coh-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: .9rem; font-weight: 600; }
.g2-coh-pinfo { color: var(--muted, #5b6472); font-weight: 500; }
.g2-coh-pdim { color: var(--muted, #5b6472); opacity: .45; }

/* ============================================================
   Public-body badge (g2-pbadge)
   ============================================================ */
.g2-pbadge { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 8px 13px; border-radius: 12px; background: linear-gradient(90deg, var(--sky, #eaf4ff), #fff); border: 1px solid var(--sky-line, #e3e9f2); }
.g2-pbadge-mark { display: grid; place-items: center; height: 26px; width: 26px; border-radius: 8px; background: var(--navy, #102033); color: var(--gold, #f4b942); flex: 0 0 auto; }
.g2-pbadge-mark svg { width: 15px; height: 15px; }
.g2-pbadge-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.g2-pbadge-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--navy, #102033); }
.g2-pbadge-meta { font-size: .85rem; color: var(--muted, #5b6472); }
.g2-pbadge-dot { color: var(--muted, #5b6472); }
.g2-pbadge-ocpa { font-size: .72rem; font-weight: 700; color: var(--gold-ink, #8a6100); background: #fdf3d6; border: 1px solid #f0e2c4; border-radius: 999px; padding: 2px 9px; }

/* ============================================================
   Print - the passport as a clean PDF: hide chrome, black on white
   ============================================================ */
@media print {
  .top, footer, .search, .pro-band, .g2-pp-actions { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  main { max-width: 100% !important; padding: 0 !important; margin: 0; }
  .g2-pp { max-width: 100%; }
  .card, .g2-card, .g2-stat, .g2-tl-item, .g2-coh-card { box-shadow: none !important; page-break-inside: avoid; break-inside: avoid; }
  .card, .g2-card { border-color: #ccc !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .g2-pp-prov, .muted, .g2-stat-lab, .g2-bar-num, .g2-bar-label { color: #000 !important; }
  .g2-track { border: 1px solid #999; }
  .g2-track > i { background: #333 !important; }
}

/* Related organisations card (g2-ro) */
.g2-ro { list-style: none; margin: 0 0 4px; padding: 0; }
.g2-ro-item { padding: 8px 0; border-bottom: 1px solid var(--sky-line, #d4e6fb); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.g2-ro-item:last-child { border-bottom: 0; }
.g2-ro-item a { font-weight: 600; color: var(--blue, #1d4ed8); text-decoration: none; }
.g2-ro-item a:hover { text-decoration: underline; }
.g2-ro-shared { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sky, #eaf4ff); color: var(--navy, #102033); }
.g2-ro-reason { font-size: 13px; color: var(--muted, #5b6472); }

/* Galaxy view CTA on graph cards */
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.galaxy-cta { display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font: 600 13px/1 inherit; color: #102033; background: linear-gradient(180deg, #fff, #f4f7f4);
  border: 1px solid #d9c8a8; border-radius: 9px; padding: 7px 13px; transition: all .15s; }
.galaxy-cta:hover { border-color: #c9a86a; box-shadow: 0 2px 10px rgba(120, 90, 20, .14); transform: translateY(-1px); }
.galaxy-dot { width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f4b942 55%, #c98a12);
  box-shadow: 0 0 8px 1px rgba(244, 185, 66, .6); }
