/**
 * Ketin 2.0 — Network · kem2-network.css · v1.0.0 · 2026-07-20
 * Defaults derivados del patrón .mosaic a del design system estático,
 * en sus dos aplicaciones: caja oscura (family of sites) y tarjeta
 * clara (profiles & citations). SIN !important: Design gana siempre.
 * Identidades = carga inicial editable.
 */

/* ---------- Presets por identidad + esquema ---------- */
.kem2-network.kem2-nw-dark{
  --kem2-nw-bc: #262c66;
  --kem2-nw-bg: transparent;
  --kem2-nw-cb: #161c52;
  --kem2-nw-ci: #ffffff;
  --kem2-nw-nm: #e9e9f7;
  --kem2-nw-sb: #8b8fc0;
  --kem2-nw-hbc: #4800fe;
  --kem2-nw-hbg: #12163f;
  --kem2-nw-hcb: #4800fe;
  --kem2-nw-hnm: #ffffff;
}
.kem2-network.kem2-nw-light{
  --kem2-nw-bc: #dbdde6;
  --kem2-nw-bg: #ffffff;
  --kem2-nw-cb: #eceef4;
  --kem2-nw-ci: #40424f;
  --kem2-nw-nm: #12131c;
  --kem2-nw-sb: #7c7e8c;
  --kem2-nw-hbc: #4800fe;
  --kem2-nw-hbg: #f6f7fb;
  --kem2-nw-hcb: #ece5ff;
  --kem2-nw-hnm: #12131c;
}
.kem2-network.kem-ptf.kem2-nw-dark{
  --kem2-nw-bc: #2c4030;
  --kem2-nw-cb: #1c2f20;
  --kem2-nw-sb: #9db89f;
  --kem2-nw-hbc: #a9781f;
  --kem2-nw-hbg: #14261a;
  --kem2-nw-hcb: #a9781f;
}
.kem2-network.kem-ptf.kem2-nw-light{
  --kem2-nw-hbc: #a9781f;
  --kem2-nw-hcb: #f3ecdc;
}

/* ---------- Caja ---------- */
.kem2-nw-box{
  display: flex;
  text-decoration: none;
  border: 1px solid var(--kem2-nw-bc);
  background: var(--kem2-nw-bg);
  border-radius: var(--kem2-nw-bradius, 2px);
  padding: var(--kem2-nw-pv, 20px) var(--kem2-nw-ph, 14px);
  gap: var(--kem2-nw-gap, 8px);
  min-height: var(--kem2-nw-minh, auto);
  position: relative;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
div.kem2-nw-box{ cursor: default; }

/* Orientación vertical (default, banda de sitios) */
.kem2-nw-or-v .kem2-nw-box{ flex-direction: column; align-items: center; text-align: center; }
.kem2-nw-or-v .kem2-nw-text{ display: flex; flex-direction: column; align-items: center; }

/* Orientación horizontal */
.kem2-nw-or-h .kem2-nw-box{ flex-direction: row; align-items: center; }
.kem2-nw-or-h .kem2-nw-text{ display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.kem2-nw-or-h.kem2-nw-tcenter .kem2-nw-box{ justify-content: center; }
.kem2-nw-or-h.kem2-nw-tcenter .kem2-nw-text{ align-items: center; }

/* Densidades (afectan tamaño de círculo y tipografía por defecto) */
.kem2-nw-d-s{ --kem2-nw-csize: 34px; --kem2-nw-fs-init: 12px; --kem2-nw-fs-name: 10.5px; --kem2-nw-fs-sub: 9.5px; }
.kem2-nw-d-m{ --kem2-nw-csize: 48px; --kem2-nw-fs-init: 14px; --kem2-nw-fs-name: 13px;   --kem2-nw-fs-sub: 11px; }
.kem2-nw-d-l{ --kem2-nw-csize: 64px; --kem2-nw-fs-init: 18px; --kem2-nw-fs-name: 15px;   --kem2-nw-fs-sub: 12px; }

/* ---------- Círculo / avatar ---------- */
.kem2-nw-circle{
  flex: 0 0 auto;
  width: var(--kem2-nw-csize, 34px);
  height: var(--kem2-nw-csize, 34px);
  border-radius: var(--kem2-nw-cradius, 50%);
  background: var(--kem2-nw-cb);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kem2-nw-initials{
  color: var(--kem2-nw-ci);
  font-size: var(--kem2-nw-fs-init, 12px);
  font-weight: 700;
  letter-spacing: .02em;
}
.kem2-nw-img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Textos ---------- */
.kem2-nw-name{
  color: var(--kem2-nw-nm);
  font-size: var(--kem2-nw-fs-name, 10.5px);
  font-weight: 600;
  letter-spacing: .02em;
}
.kem2-nw-sub{
  color: var(--kem2-nw-sb);
  font-size: var(--kem2-nw-fs-sub, 9.5px);
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kem2-nw-or-h .kem2-nw-sub{ max-width: 220px; }

/* ---------- Badge externo ---------- */
.kem2-nw-ext{
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--kem2-nw-sb);
  opacity: .8;
}

/* ---------- Próximamente ---------- */
.kem2-nw-soonbox .kem2-nw-box{ opacity: var(--kem2-nw-soonop, .55); }
.kem2-nw-soon{
  display: inline-block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kem2-nw-sb);
  border: 1px solid currentColor;
  border-radius: 10px;
  padding: 2px 7px;
}

/* ---------- Hover ---------- */
.kem2-nw-hover-tint a.kem2-nw-box:hover{
  border-color: var(--kem2-nw-hbc);
  background: var(--kem2-nw-hbg);
}
.kem2-nw-hover-tint a.kem2-nw-box:hover .kem2-nw-circle{ background: var(--kem2-nw-hcb); }
.kem2-nw-hover-tint a.kem2-nw-box:hover .kem2-nw-name{ color: var(--kem2-nw-hnm); }
.kem2-nw-hover-lift a.kem2-nw-box:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
a.kem2-nw-box:focus-visible{
  outline: 2px solid var(--kem2-nw-hbc, #4800fe);
  outline-offset: 2px;
}
