/* Contract: contracts/web/rules.md
 * The sidebar, in the column layout: the Finder's, rather than the grid's.
 * web/finder-side.js draws the two rows it adds; everything else here is the
 * same rows the grid's sidebar has, quieter.
 *
 * Every rule is under body.finder. The grid's sidebar is not touched.
 */

/* The rows and headings that exist only for the columns. */
.finderonly { display: none; }
body.finder #finderside.finderonly { display: flex; }
body.finder .sidehead.finderonly { display: block; }

.sidehead {
  margin: 12px 10px 3px; font-size: 11.5px; font-weight: 650;
  letter-spacing: .01em; color: var(--ink-dim);
}
#finderside .sidehead { margin-top: 2px; }

body.finder .sidebar {
  gap: 2px; padding: 12px 8px;
  background: color-mix(in srgb, var(--panel-2) 45%, var(--panel));
}
body.finder .frow {
  padding: 6px 10px; border-radius: 7px;
  font-size: 13.5px; color: var(--ink);
}
body.finder .frow .fico { color: var(--accent); opacity: .9; }
body.finder .frow.all { margin-bottom: 0; }
/* The Finder's quiet highlight: where you are is grey, not a block of colour,
   so the one accent on screen is what you have chosen in the columns. */
body.finder .frow.on { background: color-mix(in srgb, var(--ink) 12%, transparent); border-color: transparent; color: var(--ink); }
body.finder .frow.on .fico { opacity: 1; }
body.finder .frow.on .fn { background: transparent; color: var(--ink-dim); }
body.finder .frow .fn { background: transparent; }

/* What the columns do in place. New folders and projects are made from the bar
   above the columns and from a right-click, where you are; a bucket from those
   and from the sidebar's own "New bucket…" row, below the buckets; the project
   wall is the Projects folder; and the note about dragging is said in the panel
   on the right. */
body.finder #newfolder, body.finder #addproperty,
body.finder #projectgrid, body.finder .sidenote { display: none; }
/* So Requests, the work board and the Trash sit together at the floor. */
body.finder #reqentry { margin-top: auto; }
/* A project you are in that is not pinned lights Projects instead: the column
   view already shows which one, and a row that comes and goes is noise. */
body.finder #projectlist .frow.borrowed { display: none; }
/* An empty section has nothing to head. Its sentence about the grid goes too.
   Buckets are never empty here: the New bucket row is always under them. */
body.finder #projectlist > .fempty, body.finder #userfolders > .fempty { display: none; }
body.finder .sidehead:has(+ #projectlist > .fempty) { display: none; }
body.finder #newbucketrow.finderonly { display: flex; }
.frow.fnew { color: var(--ink-dim); }
.frow.fnew .fico { opacity: .55; }

@media (max-width: 900px) {
  /* A strip across the top: headings would only be words between buttons. */
  body.finder .sidehead.finderonly, body.finder #finderside .sidehead { display: none; }
  body.finder #reqentry { margin-top: 0; }
}

/* "Not one show? … Make a bucket instead", in the New project dialog the
   sidebar opens: the sentence, then its button on a line of its own. */
.propertyalt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
