/* Folders on the Projects page (web /web/projects and the desktop home): colours, cards, the path, drag and drop. */

.fc-none { --fc: var(--muted); } .fc-slate { --fc: #6b7a90; } .fc-sage { --fc: #7d9178; } .fc-sand { --fc: #b0965f; } .fc-clay { --fc: #ad6f5b; } .fc-plum { --fc: #876f92; } .fc-grey { --fc: #8a8a87; }
:root[data-theme="dark"] .fc-slate { --fc: #8f9db3; } :root[data-theme="dark"] .fc-sage { --fc: #9fb39a; } :root[data-theme="dark"] .fc-sand { --fc: #cbb385; } :root[data-theme="dark"] .fc-clay { --fc: #c99182; } :root[data-theme="dark"] .fc-plum { --fc: #a893b2; } :root[data-theme="dark"] .fc-grey { --fc: #a6a6a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fc-slate { --fc: #8f9db3; } :root:not([data-theme="light"]) .fc-sage { --fc: #9fb39a; } :root:not([data-theme="light"]) .fc-sand { --fc: #cbb385; } :root:not([data-theme="light"]) .fc-clay { --fc: #c99182; } :root:not([data-theme="light"]) .fc-plum { --fc: #a893b2; } :root:not([data-theme="light"]) .fc-grey { --fc: #a6a6a3; } }
.fcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.fcrumb a { color: var(--muted); text-decoration: none; padding: 3px 6px; border-radius: 7px; } .fcrumb a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.fcrumb b { color: var(--fg); font-size: 16px; }
.fshare { margin-left: 6px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fcard { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--card-r, 12px); background: var(--surface); color: var(--fg); cursor: pointer; text-align: left; font: inherit; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.fcard:hover, .fcard:focus-visible { border-color: color-mix(in srgb, var(--fc, var(--accent)) 55%, var(--line)); outline: none; }
.fcard .fic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--fc); background: color-mix(in srgb, var(--fc) 15%, transparent); }
.fcard .fi { flex: 1; min-width: 0; } .fcard .fi b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .fi small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fstar { flex: none; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 4px; border-radius: 6px; opacity: .55; }
.fstar.on { color: var(--fg); opacity: 1; } .fcard:hover .fstar { opacity: 1; } .fstar:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.fcard .fmore { flex: none; width: 28px; padding: 4px 0; border-color: transparent; background: none; opacity: 0; } .fcard:hover .fmore, .fcard:focus-within .fmore { opacity: 1; }
.fnew { border-style: dashed; color: var(--muted); --fc: var(--muted); } .fnew .fic { font-size: 18px; } .fnew b { font-size: 14px; }
.fdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--fc); margin-right: 8px; vertical-align: -1px; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.menu .fsw { display: flex; gap: 6px; padding: 6px 10px 8px; } .menu .fsw .fdot { width: 20px; height: 20px; margin: 0; padding: 0; cursor: pointer; }
.menu .fsw .fdot.on { outline: 2px solid var(--fg); outline-offset: 2px; }
.menu .fsw .fdot.fc-none { background: transparent; border-style: dashed; }
.menu .fsw button.fdot { display: inline-block; width: 20px; height: 20px; min-width: 0; padding: 0; margin: 0; border-radius: 50%; background: var(--fc); border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.menu .fsw button.fdot.fc-none { background: transparent; border-style: dashed; }
.menu .fsw button.fdot.on { outline: 2px solid var(--fg); outline-offset: 2px; }
/* Projects page: ★ Favourites row above the other folders */
.frow { font: 600 12px var(--f, system-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.frow + .fgrid { margin-bottom: 16px; }
