/* ============================================================
   VIDRIO (GLASS) · LIBRARY (INFORMACIÓN, 2.8.80): the column of blocks and the groups, in glass
   ============================================================
   On top of the base in styles/glass.css (html.glass). The same screen as always: on the left the column of
   blocks, each on its glass tile (the chosen one, olive); on the right the block's name over the photo
   with its pencil in a round glass button, and each group in its box (closed, a capsule). Inside, the note goes
   below the name instead of to its right: on the iPhone a two-sentence note took up five lines.
   «Nuevo bloque» and «Añadir…» have the dotted border, and the add «＋» sits in an olive circle.
   Dark = dark theme or night photo (html.glass.gl-night), like the base. The selectors carry .view#view-info
   to weigh the same as the base's (html.glass .view:not(#view-hoy) …) and, coming later, beat them. */

html.glass .view#view-info{--info-raya:rgba(26,22,17,.11);--info-pulsa:rgba(26,22,17,.05);--info-trazo:rgba(86,110,64,.62)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view#view-info{--info-raya:rgba(255,255,255,.13);--info-pulsa:rgba(255,255,255,.07);--info-trazo:rgba(157,190,134,.6)}

/* the glass: the groups and the empty-state notice (the tiles, «Añadir…» and the pencil already come from the base) */
html.glass .view#view-info :is(.nb-grp,.nb-empty){
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo);border:0}

/* ---------- the column of blocks ---------- */
html.glass .view#view-info .nb-cat{border:0;border-radius:20px;padding:13px 6px 12px;gap:6px}
html.glass .view#view-info .nb-cat.on{background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view#view-info .nb-cat.on{color:#17191A}
/* «Nuevo bloque» (New block): one more tile, with the dotted border painted over the light edge (outline, which takes
   no space). .nb-cats in front to outweigh the base's glass, whose :is() carries .nb-cat:not(.on) */
html.glass .view#view-info .nb-cats .nb-cat-add{border:0;border-radius:20px;padding:13px 6px 12px;gap:6px;font-size:12.5px;line-height:1.2;
  outline:1.5px dashed var(--info-trazo);outline-offset:-1.5px}
html.glass .view#view-info .nb-cats .nb-cat-add:focus-visible{outline:2px solid var(--olive);outline-offset:2px}   /* the Tab-key focus, as everywhere else */
html.glass .view#view-info .nb-cat-add .plus{display:grid;font-size:20px}

/* ---------- the block's name and its pencil, over the photo ---------- */
html.glass .view#view-info .ib-head{gap:10px;min-height:38px;margin:0 0 10px 2px}
html.glass .view#view-info .ib-head .t{font-size:19px;line-height:1.2;letter-spacing:-.01em}
html.glass .view#view-info .ib-edit{width:38px;height:38px;border:0}
html.glass .view#view-info .ib-edit .glyph{font-size:16px}

/* ---------- the groups: each in its box; closed, a capsule ---------- */
html.glass .view#view-info .nb-grp{border-radius:26px;margin-bottom:10px}
html.glass .view#view-info .nb-grph{gap:10px;padding:15px 18px}
html.glass .view#view-info .nb-grph .gname{font-size:17px;line-height:1.25;letter-spacing:-.01em;color:var(--text)}
html.glass .view#view-info .nb-grph .gn{font:600 13.5px/1 var(--font-body);color:var(--muted)}
html.glass .view#view-info .nb-grph .chev{color:var(--muted)}
html.glass .view#view-info .nb-grpb{padding:0 18px 4px}

/* ---------- each card: the name and, below it, the note ---------- */
html.glass .view#view-info .nb-row{flex-direction:column;align-items:stretch;gap:3px;padding:12px 0;border-top-color:var(--info-raya)}
html.glass .view#view-info .nb-row .nb-nm{flex:none;font-size:15px;line-height:1.28}
html.glass .view#view-info .nb-row .nb-desc{font:500 13.5px/1.38 var(--font-body);text-align:left;overflow-wrap:anywhere}
html.glass .view#view-info .nb-row .nb-desc:empty{display:none}
@media(hover:hover){html.glass .view#view-info .nb-row:hover .nb-nm{color:var(--olive)}html.glass .view#view-info .nb-grph:hover .chev{color:var(--text)}}
html.glass .view#view-info .nb-row:active{background:var(--info-pulsa)}

/* ---------- «Añadir…» (Add…): a dotted capsule with the «＋» in an olive circle, on one line ---------- */
html.glass .view#view-info .nb-panel .nb-add{gap:10px;min-height:50px;padding:0 16px;margin-top:2px;border:0;border-radius:999px;
  font:700 14px/1.2 var(--font-head);outline:1.5px dashed var(--info-trazo);outline-offset:-1.5px}
html.glass .view#view-info .nb-add .plus{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);font-size:14px}
html.glass .view#view-info .nb-add .plus .glyph{font-size:15px;stroke-width:2.4}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view#view-info .nb-add .plus{color:#17191A}
html.glass .view#view-info .nb-add-t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* «Añadir a <a block with a very long name>» */

/* ---------- empty: in its box, with the text colour used inside (the base put it in white over the photo) ---------- */
html.glass .view#view-info .nb-empty{border-radius:26px;margin-bottom:10px;padding:24px 16px;font-size:13.5px;line-height:1.45;color:var(--muted);text-shadow:none}
