/* Grouped Recent and File rows (index.js; DESK.md Grouped rows). A heading that
   expands to each child line, each with its own link. Collapsed by default. */
details.grp > summary { cursor: pointer; list-style: none; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary:focus-visible { outline: 2px solid #ececec; outline-offset: 2px; }
/* Opened or closed with the mouse or touch: no ring (keyboard keeps it). */
details.grp > summary.grp-no-ring:focus, details.grp > summary.grp-no-ring:focus-visible { outline: none; }

/* Recent */
/* Caret sits after the headline so the headline lines up with the plain rows. */
[data-recent] details.grp > summary { display: block; padding: 4px 0; }
[data-recent] details.grp > summary .text::after { content: "\00a0\25b8"; color: var(--muted); font-family: var(--mono); }
[data-recent] details.grp[open] > summary .text::after { content: "\00a0\25be"; }
[data-recent] details.grp .grp-list { list-style: none; margin: 0; padding: 0 0 0 14px; }
@media (hover: hover) {
  [data-recent] details.grp > summary:hover .text { color: #fff; }
  [data-recent] details.grp > summary:hover .meta { color: var(--accent); }
}

/* File */
.tape details.grp-file > summary .text::after { content: "\00a0\25b8"; color: var(--muted); font-family: var(--mono); }
.tape details.grp-file[open] > summary .text::after { content: "\00a0\25be"; }
.tape details.grp-file .grp-child .text { padding-left: 14px; }
@media (hover: hover) {
  .tape details.grp-file > summary:hover .text { color: #fff; }
  .tape details.grp-file > summary:hover .src { color: var(--accent); }
}
