/* Shared by timeline.html, festivals.html and festival-search.html: a header bar over sections of artwork tiles. */
:root {
  --ink: #1b2230;
  --muted: #5f6b7c;
  --line: #d5dae1;
  --panel: #f2f4f7;
  --unseen: #e0115f;
  --focus: #1457d9;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 "Archivo", system-ui, sans-serif; color: var(--ink); background: var(--panel); }
a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

#bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--unseen); margin-right: 7px; }
#stat { color: var(--muted); }
#stat.err { color: #b3261e; }
.tools { display: flex; gap: 6px; margin-left: auto; }
a.icon { display: inline-block; padding: 6px; line-height: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
a.icon:hover { border-color: var(--ink); }
a.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

main { padding: 4px 12px 24px; }
h2 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.01em; }
h2 small { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.grid a {
  display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 3px;
  background: #dfe3e8; color: var(--muted); font-size: 12px; text-align: center; text-decoration: none; padding: 0;
}
.grid a:not(:has(img)) { padding: 6px; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid a.gone img { filter: grayscale(1); opacity: .7; }

.search { display: flex; gap: 6px; margin: 12px 0 0; max-width: 480px; }
.search input[type=search] { flex: 1; min-width: 0; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.search button { font: inherit; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; }

/* Picking artworks on festival-search.html */
h2 button.all { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--focus); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer; }
h2 button.all:hover { text-decoration: underline; }
.pick { position: relative; }
.pick input { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; margin: 0; accent-color: var(--unseen); cursor: pointer; }
.pick:has(input:checked) > a { outline: 4px solid var(--unseen); outline-offset: -4px; }
.grid a.badge {
  position: absolute; left: 5px; bottom: 5px; display: inline-block; aspect-ratio: auto; padding: 2px 6px;
  border-radius: 3px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
}
.suggest {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 12px -12px -24px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line);
}
.suggest[hidden] { display: none; }
.suggest input { flex: 1; min-width: 180px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.suggest button { font: inherit; padding: 6px 12px; border: 1px solid var(--unseen); border-radius: 4px; background: var(--unseen); color: #fff; cursor: pointer; }
.suggest button:disabled { opacity: .6; cursor: wait; }
