/* ============================================================
   VIDRIO · PROJECTS (2.8.84): idea A of the redesign, “Vidrio” (glass), on top of the glass.css base
   ============================================================
   Inside a project, each section (Goals, Tasks, Ideas) goes in its own glass box with the title inside, as
   on Daily; behind, the usual photo. The base already gives glass to the cards on the home page (.lp-row), to the “+”,
   to the segmented control, and white text over the photo: here goes only what's specific to Projects.
   Everything hangs from “html.glass #view-listas.view.active”, which has the same specificity as the base's heaviest
   rules (those with :is() taking a two-class argument, like .nb-cat:not(.on)) and comes after, so it wins. With one
   “.active” less, the base won on «‹ Proyectos» (it came out white on its capsule) and on the new project's ring.
   In dark and at night (html.gl-night), the base's glass and text already change by themselves; here only what has a
   white of its own. */

/* ---------- the home page ---------- */
/* the tile with the initial: the project's colour (lpMono passes it in --lp-tinte) over a light base. Before, it was the
   colour at 20 % over the card's cream; on glass that 20 % alone couldn't be seen */
html.glass #view-listas.view.active{--lp-base:rgba(255,255,255,.62)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active{--lp-base:rgba(255,255,255,.04)}
html.glass #view-listas.view.active .lp-mono[style*="--lp-tinte"]{background:linear-gradient(var(--lp-tinte),var(--lp-tinte)),var(--lp-base)!important}
/* the cards, the “+” and the boxes, without the 1 px transparent border the base leaves: as in the chosen mockup, the
   margin goes all inside (the cards: 13 px around the square, which with its 13 px corners gives the card's 26;
   72 px tall, as always) */
html.glass #view-listas.view.active :is(.card,.lp-add,.lp-row:not(.lp-arch)){border-width:0}
html.glass #view-listas.view.active .lp-row:not(.lp-arch){padding:13px 18px 13px 13px}
html.glass #view-listas.view.active .lp-chev{color:var(--muted)}
html.glass #view-listas.view.active .lp-add:is(:hover,.on){color:var(--olive)}
/* with the mouse over it, the glass a little denser (without a mouse it would stay on after the tap) */
@media(hover:hover){
  html.glass #view-listas.view.active .lp-row:not(.lp-new):not(.lp-arch):hover{--vd-caja:rgba(255,255,255,.74)}
  :is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active .lp-row:not(.lp-new):not(.lp-arch):hover{--vd-caja:rgba(8,12,10,.66)}
}
/* the new project, with its olive ring; the one just created glows for a moment */
html.glass #view-listas.view.active .lp-new{box-shadow:inset 0 0 0 1.5px var(--olive-soft),inset 0 1px 0 var(--vd-brillo)}
html.glass #view-listas.view.active .lp-recent{animation:lpRecienVd 1.4s ease}
@keyframes lpRecienVd{0%{box-shadow:inset 0 0 0 1.5px var(--olive-soft),inset 0 1px 0 var(--vd-brillo),0 0 0 3px rgba(138,169,120,.45)}}
/* the archived ones: «Archivados 2» (Archived 2) as a section title over the photo; the card with less glass and a
   dotted border, and the tile in grey. The border is 1.5 px on retina screens (with 0.5 px less margin: it measures 72,
   like the others); on the rest, 1.5 px is painted as 1 and the card would measure 71, so there it's 1 px */
html.glass #view-listas.view.active .lp-arch-tog{margin:22px 0 10px;padding:4px 2px;gap:7px;font:700 17px/1.25 var(--font-head);letter-spacing:-.01em;
  text-transform:none;color:#fff;text-shadow:var(--vd-sombra-texto)}
html.glass #view-listas.view.active .lp-arch-n{font:600 13.5px/1 var(--font-body);color:#fff;text-shadow:var(--vd-sombra-texto-p)}
html.glass #view-listas.view.active .lp-arch-tog .glyph{font-size:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
html.glass #view-listas.view.active .lp-row.lp-arch{--vd-caja:rgba(255,255,255,.5);border:1px dashed rgba(255,255,255,.95);box-shadow:none;padding:12px 17px 12px 12px}
@media(min-resolution:2dppx){html.glass #view-listas.view.active .lp-row.lp-arch{border-width:1.5px;padding:11.5px 16.5px 11.5px 11.5px}}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active .lp-row.lp-arch{--vd-caja:rgba(8,12,10,.4);border-color:rgba(255,255,255,.34)}
html.glass #view-listas.view.active .lp-row.lp-arch .lp-mono{opacity:1;filter:grayscale(1)}   /* grey, not transparent */
html.glass #view-listas.view.active .lp-row.lp-arch .lp-mono:not(:has(img)){background:linear-gradient(rgba(128,118,104,.2),rgba(128,118,104,.2)),var(--lp-base)!important;color:var(--muted)!important}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active .lp-row.lp-arch .lp-mono:not(:has(img)){background:linear-gradient(rgba(128,118,104,.26),rgba(128,118,104,.26)),var(--lp-base)!important}
html.glass #view-listas.view.active .lp-nm small{color:var(--muted)}

/* ---------- inside a project: the top ---------- */
/* «‹ Proyectos», in a glass capsule, like Daily's date */
html.glass #view-listas.view.active .lp-back{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);
  padding:7px 15px 7px 10px;margin:0 0 14px;border-radius:999px;color:var(--text);text-shadow:none;font-size:13.5px;font-weight:600}
html.glass #view-listas.view.active .lp-back .glyph{font-size:15px;color:var(--muted);filter:none}
/* the name, white over the photo (from the base): if it's very long it breaks instead of being cut, and without
   overflow:hidden, which clipped its shadow into a rectangle */
html.glass #view-listas.view.active .lp-head{padding:0 2px 16px}
html.glass #view-listas.view.active .lp-head h1{overflow:visible;overflow-wrap:anywhere;line-height:1.15}
html.glass #view-listas.view.active .lp-dot{width:12px;height:12px;box-shadow:0 1px 4px rgba(0,0,0,.35)}
/* the notice on an archived project, in its box (without a box it got lost on the photo) */
html.glass #view-listas.view.active .lp-archived{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-radius:20px;margin:-4px 0 16px}

/* ---------- inside: each section, its glass box with the title inside ----------
   In «Todo» (All) the box is the block (.blk) and its card is left without a background; in the other tabs the box is
   the card (the base's), and «Conseguidos» (Achieved), «Hechas» (Done) and the archived ideas go in their own block,
   another box. The drop slot that appears when dragging (.dd-gap) carries its box inside (below, under “dragging”).
   Cards inside a block, also those in «Hechas» and the archived ideas (which sit inside their pagination), have no
   background. */
html.glass #view-listas.view.active #lpane .blk:not(.dd-gap){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-radius:26px;padding:15px 0 4px;margin:0 0 14px}
html.glass #view-listas.view.active #lpane>.blk{margin-top:14px!important}   /* overrides the margin-top:16px of «Conseguidos» and «Hechas» */
html.glass #view-listas.view.active #lpane>.blk:first-child{margin-top:0!important}
html.glass #view-listas.view.active #lpane .blk:not(.dd-gap):not(:has(>.blk-head)){padding-top:0}   /* «Hechas», «Archivadas» (Archived): the dropdown acts as the title */
html.glass #view-listas.view.active #lpane .blk:not(.dd-gap)>.blk-head{margin:0 18px 2px}
html.glass #view-listas.view.active #lpane .blk:not(.dd-gap) .blk-head .h{color:var(--text);text-shadow:none}
html.glass #view-listas.view.active #lpane .blk:not(.dd-gap) .card{background:none;border:0;box-shadow:none;border-radius:0;-webkit-backdrop-filter:none;backdrop-filter:none}
/* the rows, with the box's margin */
html.glass #view-listas.view.active .lo-top{padding:14px 18px}
html.glass #view-listas.view.active .lo-body{padding:0 18px 14px 45px}   /* the tasks, lined up with the goal's name */
html.glass #view-listas.view.active :is(.lo-chev,.lo-pct){color:var(--muted)}
html.glass #view-listas.view.active .card.pad-s{padding:4px 18px 8px}
html.glass #view-listas.view.active .idea-row{padding:13px 18px}
html.glass #view-listas.view.active .idea-row:active{background:rgba(138,169,120,.16)}
html.glass #view-listas.view.active .arch-toggle{font-size:13.5px;font-weight:600;color:var(--muted);padding:10px 18px}
html.glass #view-listas.view.active .card .empty{color:var(--muted)}
/* a very long goal name (or a web address with no spaces) was cut off abruptly: now it breaks; closed,
   two lines and “…”; open, in full */
html.glass #view-listas.view.active .lo-nm{overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.glass #view-listas.view.active .lo.open .lo-nm{display:block;-webkit-line-clamp:none}
/* «Tareas · 2/6», «Usadas», «Guardadas» (Tasks · 2/6, Used, Kept): no longer uppercase, like the titles */
html.glass #view-listas.view.active :is(.lo-sec,.idea-grp){font-size:13px;letter-spacing:0;text-transform:none;font-weight:600;color:var(--muted)}
html.glass #view-listas.view.active .idea-grp{padding:12px 18px 4px}
/* done items («Conseguidos», «Hechas», the archived ideas) were at 70-75 % opacity: now, in the grey for done items */
html.glass #view-listas.view.active .card[style*="opacity"]{opacity:1!important}
html.glass #view-listas.view.active .card[style*="opacity"] :is(.idea-t,.idea-g,.item-title){color:var(--muted)}
/* the add box: empty, a little deeper than the glass (where the cream used to be) with its “+”; when typing, it
   lightens, with its olive border and the arrow, as always. 14 px corners = the box's 26 minus its 12 of margin */
html.glass #view-listas.view.active .card.flush>.addbar.above{padding:12px}
html.glass #view-listas.view.active .card.pad-s>.addbar.above{margin:8px -6px 4px}
html.glass #view-listas.view.active .add-box input{border-radius:14px}
html.glass #view-listas.view.active .add-box input:not(:placeholder-shown){background:rgba(255,255,255,.78)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active .add-box input:not(:placeholder-shown){background:rgba(255,255,255,.1)}
html.glass #view-listas.view.active .add-box .ca-btn{border-radius:10px}

/* ---------- dragging: where it would land, in olive over the glass (the glass copy being carried is in glass.css) */
/* 2.8.97: the «Tareas» slot (a project with no loose tasks) is a box like the others, with its title inside; the
   sweep reveals it whole (drag.js, ddGapParts). Its 14 px below go inside, and the slot's margin cancels out
   the next box's: closed, it left 28 px between Goals and Ideas instead of 14 */
html.glass #view-listas.view.active #lpane>.blk.dd-gap{margin:0 0 -14px!important}
html.glass #view-listas.view.active #lpane .dd-gap-in{position:relative;margin-bottom:14px;padding:15px 0 4px;border-radius:26px;
  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)}
html.glass #view-listas.view.active #lpane .dd-gap-in>.blk-head{margin:0 18px 2px}
html.glass #view-listas.view.active #lpane .dd-gap-in>.blk-head .h{color:var(--text);text-shadow:none}
html.glass #view-listas.view.active #lpane .dd-gap .card{position:static;background:none;border:0;box-shadow:none;border-radius:0;-webkit-backdrop-filter:none;backdrop-filter:none}
html.glass #view-listas.view.active .blk.dd-over :is(.card,.dd-gap-in>.card){outline:0}
html.glass #view-listas.view.active #lpane .blk.dd-over:not(.dd-gap),
html.glass #view-listas.view.active #lpane .blk.dd-gap.dd-over .dd-gap-in{--vd-caja:rgba(231,238,221,.8);box-shadow:inset 0 0 0 2px var(--olive-soft),inset 0 1px 0 var(--vd-brillo)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-listas.view.active #lpane :is(.blk.dd-over:not(.dd-gap),.blk.dd-gap.dd-over .dd-gap-in){--vd-caja:rgba(41,50,39,.74)}
html.glass #view-listas.view.active #lpane .blk.dd-over:not(.dd-gap)>.card{background:none}
/* over a goal: an olive capsule inside the box, instead of the square-cornered band with the line on the left */
html.glass #view-listas.view.active #lpane .lo.dd-over{position:relative;isolation:isolate;background:none;box-shadow:none}
html.glass #view-listas.view.active #lpane .lo.dd-over::before{content:"";position:absolute;inset:3px 8px;z-index:-1;border-radius:18px;pointer-events:none;
  background:rgba(138,169,120,.2);box-shadow:inset 0 0 0 2px var(--olive-soft)}
