/* Paneler, kort, rutenett */
.panel{
  background: var(--panel);
  border:1px solid var(--panel-border);
  border-radius: var(--radius);
  padding:16px 18px;
  margin:16px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}
.panel h2{
  display:flex; align-items:center; justify-content:space-between;
  margin:6px 2px 12px;
  font-size:1.2rem;
}

.cards{ display:grid; gap:10px }
.card{
  background: rgba(255,255,255,.02);
  border:1px solid var(--panel-border);
  border-radius: var(--radius);
  padding:14px 16px;
}
.card .name{ font-weight:700 }
.card .meta{ color:var(--muted); font-size:.9rem; margin:2px 0 4px }
.card .row{ display:flex; gap:8px; align-items:center }
.card .row.between{ justify-content:space-between }


/* ===================================================== */
/* Person-galleri (rundt ikon + navn + klikk)            */
/* ===================================================== */
#gallery{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:flex-start;
}

.person-card{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  cursor:pointer;
  margin:6px 4px;
  transition:transform .25s ease, opacity .25s ease;
}

.person-card:hover{ transform:scale(1.08); opacity:.92; }

.person-thumb{
  width:72px; height:72px;
  border-radius:50%;
  object-fit:cover;
  background:#111;
  border:2px solid rgba(255,255,255,.2);
  box-shadow:0 0 6px rgba(0,0,0,.4);
  margin-bottom:6px;
}

.person-label{
  font-size:.8rem;
  text-align:center;
  line-height:1.2;
  color:#fff;
  max-width:92px;
  white-space:normal;
}

/* ===================================================== */
/* 5) Knapper & chips/badges                             */
/* ===================================================== */
button{ cursor:pointer; border:none }
.primary{
  background: var(--primary); color:#fff;
  padding:4px 8px; border-radius:10px; font-weight:600;
}
.secondary{
  background: rgba(255,255,255,.08); color:#fff;
  padding:4px 8px; border-radius:10px;
  border:1px solid var(--panel-border);
}
.ghost{
  background: transparent; color:#fff;
  padding:4px 8px; border-radius:999px;
  border:1px solid var(--panel-border);
}
.icon{
  width:44px; height:44px; border-radius:999px;
  background: rgba(255,255,255,.08); color:#fff;
  border:1px solid var(--panel-border);
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
}

/* Topplinje-ikonknapp (mindre enn .icon) */
.iconbtn{
  width: 36px;
  height: 32px;
  border-radius: 999px;

  background: rgba(255,255,255,.08);
  color:#fff;
  border:1px solid var(--panel-border);

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 0;
  line-height: 1;
  font-size: 16px;
}

.chips{ display:flex; flex-wrap:wrap; gap:8px }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--panel-border);
  background: rgba(255,255,255,.02);
  font-size:.92rem;
}
.badge .i{
  width:22px; height:22px; border-radius:999px;
  display:inline-block; border:2px solid rgba(0,0,0,.55);
}
.badge.kunst .i{ background: var(--kult); }        /* Kunst & kultur */
.badge.by .i{ background: var(--urban); }          /* By & arkitektur */
.badge.sport .i{ background: var(--sport); }       /* Sport & lek */
.badge.natur .i{ background: var(--natur); }       /* Natur & miljø */
.badge.vitenskap .i{ background: var(--viten); }   /* Vitenskap & filosofi */
.badge.politikk .i{ background: #c77dff; }         /* Politikk & samfunn */
.badge.litteratur .i{ background: #f6c800; }       /* Litteratur & poesi */
.badge.populaerkultur .i{ background: #ffb703; }   /* Populærkultur */
.badge.subkultur .i{ background: #ff66cc; }        /* Subkultur */
.badge.musikk .i{ background: #ff66cc; }           /* Musikk & scenekunst */
.badge.naeringsliv .i{ background: #ff8800; }      /* Næringsliv & industri */


.civication-nav-link {
  position: relative;
}

.nav-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e84a5f;
  color: #fff;
  border: 2px solid rgba(13, 27, 42, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.nav-unread-badge[hidden] {
  display: none;
}
