/* Poder Judicial RD tokens and shared pieces, from the Figma file
   "LexNow · Propuesta Poder Judicial RD" (frames on page Propuesta). */
:root {
  --azul-bandera: #002d62;   /* structure: sidebar, headings, text */
  --azul-pj: #0047ba;        /* actions: buttons, links, active */
  --rojo-bandera: #ce1126;   /* identity: section labels */
  --rojo-emblema: #ec3340;
  --rojo-alerta: #d83731;    /* deadlines and alerts only */
  --gris-fondo: #f2f5f9;
  --gris-chip: #edf1f6;
  --azul-tinte: #e7eefa;
  --texto-2: #5b6676;
  --texto-3: #808c99;
  --borde: rgba(0, 45, 98, 0.08);
  --sombra: 0 4px 16px 0 rgba(2, 36, 82, 0.06);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Roboto", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Section header used by the presentation slides */
.pj-label {
  font: 500 13px/15px var(--sans);
  letter-spacing: 2px;
  color: var(--rojo-bandera);
  white-space: nowrap;
}
.pj-h1 {
  font: 400 38px/46px var(--serif);
  color: var(--azul-bandera);
  white-space: nowrap;
}
.pj-head { display: flex; flex-direction: column; gap: 8px; }

.pj-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 16px;
  box-shadow: var(--sombra);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 1px;
}

.pj-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--gris-chip);
  font: 500 15px/18px var(--sans);
  color: var(--azul-bandera);
  white-space: nowrap;
}
.pj-chip.is-active { background: var(--azul-pj); color: #fff; }

.pj-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--azul-tinte);
}
.pj-icon-tile img { width: 22px; height: 22px; }

/* PJ / Emblema (13:345): book and lance as two alpha masks, each painted
   with its own colour. Variants: sobre-oscuro (red book, white lance),
   sobre-claro (red book, #0050DA lance). Size comes from the instance. */
.pj-emblem { position: relative; flex: none; }
.pj-emblem > i {
  position: absolute;
  inset: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
}
.pj-emblem > .book { background: var(--rojo-emblema); }
.pj-emblem > .lance { background: #fff; }
.pj-emblem.sobre-claro > .lance { background: #0050da; }
