/* Alternative palettes, to try them out: the switch at the bottom left (includes/paletas.html) sets
   <html data-paleta="…">, and each palette here only redefines the colour roles from tokens.css.
   Colours sampled by eye from COLOURlovers palettes (title · author); backgrounds and panels lightened (tinted
   towards white) so #222 text stays easy to read on every one. */

/* Here Comes the Sun · Skyblue2u */
[data-paleta="sun"] {
  --color-fondo: #FEFAC0;
  --color-superficie: #F9E46A;
  --color-acento: #2B6777;
  --color-acento-2: #F0BB4E;
  --color-acento-3: #BFA55F;
}

/* Karma's Payment · Miaka */
[data-paleta="karma"] {
  --color-fondo: #EFF9F4;
  --color-superficie: #C5D7D2;
  --color-acento: #210F33;
  --color-acento-2: #4C7577;
  --color-acento-3: #3E1A3A;
}

/* sunset at noon · avilluk (the current palette is a variant of this one) */
[data-paleta="noon"] {
  --color-fondo: #FCF8FC;
  --color-superficie: #D3D2D8;
  --color-acento: #E84253;
  --color-acento-2: #EE8858;
  --color-acento-3: #F1AB8C;
}

/* u.make.me.happy · DrA */
[data-paleta="happy"] {
  --color-fondo: #EEF5D2;
  --color-superficie: #D2EAD5;
  --color-acento: #EF615B;
  --color-acento-2: #6FA8C0;
  --color-acento-3: #F0B866;
}

/* traveler · laleh1979 */
[data-paleta="traveler"] {
  --color-fondo: #FCF6DC;
  --color-superficie: #E6CFBD;
  --color-acento: #2B222C;
  --color-acento-2: #965D62;
  --color-acento-3: #5E4352;
}

/* One Fish Two Fish · afrodusa */
[data-paleta="fish"] {
  --color-fondo: #F3EED8;
  --color-superficie: #E5D46B;
  --color-acento: #418B91;
  --color-acento-2: #F1AD3F;
  --color-acento-3: #7FAB7A;
}

/* All in All · Skyblue2u */
[data-paleta="allinall"] {
  --color-fondo: #FDF9F1;
  --color-superficie: #ACEFF6;
  --color-acento: #57B9D2;
  --color-acento-2: #8BD1DD;
  --color-acento-3: #B6E9F6;
}

/* the current palette, so its sample in the switch shows the right colours */
[data-paleta="actual"] {
  --color-fondo: var(--c-lavanda);
  --color-superficie: var(--c-gris);
  --color-acento: var(--c-rojo);
  --color-acento-2: var(--c-naranja);
  --color-acento-3: var(--c-salmon);
}

/* The switch (includes/paletas.html): two buttons at the bottom left, each opening a list. Palettes show
   their name and colours; type pairs are written in their own fonts. */
.pruebas {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1100;
  display: flex;
  gap: 6px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-size-adjust: none;
  line-height: 1.2;
  color: #222;
}

.pruebas-boton,
.pruebas-opcion {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.pruebas-boton { box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

.pruebas-lista {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.pruebas-grupo { position: relative; }

.pruebas-opcion:hover, .pruebas-opcion[aria-selected="true"] { background: #eee; }

.pruebas-opcion[aria-selected="true"] { font-weight: 700; }

.pruebas-muestra { display: flex; flex: none; }

/* the background switch: ten thumbnails in a grid, wide enough to tell them apart at a glance */
.pruebas-lista-fondos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 232px;
  padding: 6px;
}

.pruebas-fondo { padding: 0; border: 0; background: none; }

.pruebas-miniatura {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pruebas-fondo[aria-selected="true"] .pruebas-miniatura { outline: 2px solid var(--color-acento); outline-offset: -2px; }

.pruebas-muestra span { width: 14px; height: 18px; }

.pruebas-nombre { flex: 1; }

.pruebas-titulo { display: block; font-family: var(--font-titulo); font-size: 17px; font-weight: 700; }

.pruebas-texto { display: block; font-family: var(--font-texto); font-size: 13px; }

/* Futura 100 turns the word "Futura" into its logo (a ligature) */
.pruebas-texto { font-variant-ligatures: none; }
