/* Stiftung Archiv Mende — database v1
   Black and white, one family (Space Grotesk, from Annahelen Mende's identity).
   The one bold element is the archive number; everything around it stays quiet. */

/* Space Grotesk 1.1, SIL Open Font License (fonts/OFL.txt), self-hosted: no third-party requests */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #555555;      /* secondary text */
  --ink-3: #8a8a8a;      /* tertiary, disabled */
  --field: #ededed;      /* inputs, placeholders */
  --rule: #000000;
  --error: #c8102e;      /* errors and destructive actions only */
  --gut: 24px;
  --side: 280px;
  --f: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--f); font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--ink); color: var(--paper); height: 56px; position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; text-decoration: none; align-items: center; gap: 12px; padding: 0 var(--gut); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 18px; height: 18px; background: var(--paper); }
.nav { display: flex; align-items: stretch; }
.nav a { display: flex; align-items: center; padding: 0 18px; font-weight: 500; }
.nav a:hover { text-decoration: none; background: #222; }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav .user { padding: 0 18px; display: flex; align-items: center; gap: 14px; color: #bbb; font-size: 13px; }
.nav .user a { padding: 0; color: var(--paper); }
.nav .user a:hover { background: none; text-decoration: underline; }
.menu-btn { display: none; align-items: center; margin-left: auto; cursor: pointer; }

.flash { background: var(--ink); color: var(--paper); padding: 10px var(--gut); font-weight: 500; border-top: 1px solid #333; }

/* ---------------------------------------------------------------- page frame */
.page { padding: var(--gut); }
.with-side { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - 56px); }
.side { border-right: 1px solid var(--rule); padding: var(--gut); position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; }
.main { padding: var(--gut); min-width: 0; }

.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
input[type=text], input[type=search], input[type=password], input[type=url], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 9px 10px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.field { margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--f);
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 10px 16px; cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { border-color: var(--error); background: var(--paper); color: var(--error); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- filters (side) */
.search { display: flex; margin-bottom: 24px; }
.search input { border-right: 0; }
.search .btn { padding: 0 12px; }
.facet { margin-bottom: 24px; }
.facet h3 { margin-bottom: 8px; }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet li a { display: flex; justify-content: space-between; padding: 4px 8px; margin: 0 -8px; }
.facet li a[aria-current="true"] { background: var(--ink); color: var(--paper); text-decoration: none; }
.chips { display: flex; gap: 0; }
.chips a { flex: 1; text-align: center; padding: 6px 0; border: 1px solid var(--ink); margin-left: -1px; }
.chips a:first-child { margin-left: 0; }
.chips a[aria-current="true"] { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------------------------------------------------------------- the grid (contact sheet) */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 28px 20px; }
.frame { position: relative; }
.frame .pic { aspect-ratio: 1 / 1; background: var(--field); overflow: hidden; outline: 1px solid var(--ink); }
.frame .pic img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.frame a:hover { text-decoration: none; }
.frame a:hover .pic { outline-width: 3px; }
.frame .num { display: block; margin-top: 8px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.frame .ttl { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.frame .add {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font: 500 22px/1 var(--f); opacity: 0;
}
.frame:hover .add, .frame .add:focus-visible, .frame .add.on { opacity: 1; }
.frame .add.on { background: var(--ink); color: var(--paper); }
.empty { border: 1px solid var(--ink); padding: 32px; max-width: 560px; }

/* ---------------------------------------------------------------- image record */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; min-height: calc(100vh - 56px); }
.stage { padding: var(--gut); border-right: 1px solid var(--rule); min-width: 0; }
.stage .view { background: var(--field); display: flex; align-items: center; justify-content: center; min-height: 52vh; }
.stage .view img { max-height: 72vh; width: auto; }
.stage nav.pn { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 500; }
.meta { padding: var(--gut); }
.archnum { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; margin: 4px 0 16px; word-break: break-word; }
.archnum .film { color: var(--ink-3); }
dl.facts { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; margin: 0 0 24px; }
dl.facts dt { color: var(--ink-2); font-size: 13px; padding-top: 2px; }
dl.facts dd { margin: 0; }
.block { border-top: 1px solid var(--rule); padding: 16px 0 20px; }
.block > h3 { margin-bottom: 10px; }
.pill { display: inline-block; border: 1px solid var(--ink); padding: 1px 8px; font-size: 13px; }
.pill.solid { background: var(--ink); color: var(--paper); }

/* the frames of one Fototasche: 6x6 cm on 120 roll film — square frames, no perforations
   (Armin Linke, 13.10.2026). Non-square scans are shown whole, never cropped. */
.strip { margin-top: 28px; }
.strip h3 { margin-bottom: 10px; }
.strip .band { background: var(--ink); padding: 12px; display: flex; gap: 8px; overflow-x: auto; }
.strip a { flex: 0 0 auto; width: 112px; color: var(--paper); font-size: 12px; text-align: left; }
.strip a .pic { aspect-ratio: 1 / 1; background: #2a2a2a; outline: 1px solid #444; overflow: hidden; }
.strip a .pic img { width: 100%; height: 100%; object-fit: contain; }
.strip a[aria-current="true"] .pic { outline: 3px solid var(--paper); }
.strip a span { display: block; margin-top: 4px; }

.files { width: 100%; border-collapse: collapse; font-size: 13px; }
.files th, .files td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.files th { font-weight: 500; color: var(--ink-2); }
.files td.n { white-space: nowrap; text-align: right; }
.files .fn { word-break: break-all; }

/* captions: one tab per language */
.tabs { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.tabs button { font: 500 15px/1 var(--f); background: var(--paper); border: 0; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button .dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: middle; background: currentColor; }
.tabs button .dot.no { background: none; outline: 1px solid currentColor; }
.capform[hidden] { display: none; }
.capform .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.saved { font-size: 13px; color: var(--ink-2); }

/* add-to-collection menu */
.collmenu { position: relative; }
.collmenu ul { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--ink); }
.collmenu li + li { border-top: 1px solid #ddd; }
.collmenu button.item { width: 100%; text-align: left; background: var(--paper); border: 0; padding: 9px 12px; font: inherit; cursor: pointer; display: flex; justify-content: space-between; }
.collmenu button.item:hover { background: var(--ink); color: var(--paper); }
.collmenu button.item.on { font-weight: 700; }

/* ---------------------------------------------------------------- collections */
.clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.citem { border: 1px solid var(--ink); display: grid; grid-template-rows: auto 1fr; }
.citem .pic { aspect-ratio: 16 / 9; background: var(--field); overflow: hidden; border-bottom: 1px solid var(--ink); }
.citem .pic img { width: 100%; height: 100%; object-fit: cover; }
.citem .body { padding: 14px 16px 16px; }
.citem h2 { font-size: 20px; margin-bottom: 4px; }
.newcoll { border: 1px solid var(--ink); padding: 20px; background: var(--paper); }

.seq { list-style: none; margin: 0; padding: 0; counter-reset: seq; }
.seq > li { display: grid; grid-template-columns: 48px 240px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.seq > li::before { counter-increment: seq; content: counter(seq); font-size: 28px; font-weight: 500; line-height: 1; }
.seq .pic { aspect-ratio: 1 / 1; background: var(--field); outline: 1px solid var(--ink); overflow: hidden; }
.seq .pic img { width: 100%; height: 100%; object-fit: contain; }
.seq .handle { cursor: grab; }
.seq li.dragging { opacity: .4; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.capgrid .lang { font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; }
.fallback { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---------------------------------------------------------------- lists */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
table.list th { font-weight: 500; color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--ink); }
.projhead { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-bottom: 32px; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .mark { background: var(--ink); color: var(--paper); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .mark .big { font-size: clamp(48px, 7vw, 104px); line-height: .92; font-weight: 700; letter-spacing: -0.045em; }
.login form { padding: 48px; align-self: center; max-width: 420px; width: 100%; }
.error { color: var(--error); font-weight: 500; margin-bottom: 16px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .record { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--rule); }
  .projhead { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gut: 16px; }
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side .facets { display: none; }
  .side.open .facets { display: block; }
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--ink); display: none; }
  .nav.open { display: flex; }
  .nav a, .nav .user { padding: 14px var(--gut); }
  .top .menu-btn { background: none; border: 0; color: var(--paper); font: 500 15px var(--f); padding: 0 var(--gut); }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .frame .add { opacity: 1; }
  .archnum { font-size: 40px; }
  .seq > li { grid-template-columns: 32px 1fr; }
  .seq > li > .capcol { grid-column: 2; }
  .login { grid-template-columns: 1fr; }
  .login .mark { padding: 24px; min-height: 40vh; }
  .login form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 40px 0 8px; }
details.facet > summary { cursor: pointer; list-style: none; }
details.facet > summary::-webkit-details-marker { display: none; }
details.facet > summary::after { content: " +"; font-weight: 500; }
details.facet[open] > summary::after { content: " –"; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tagline a { display: inline-block; border: 1px solid var(--ink); padding: 2px 8px; font-size: 13px; }
.tagline a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.dbe { background: var(--field); padding: 12px 14px; font-size: 13px; }
.dbe dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 0; }
.dbe dt { color: var(--ink-2); word-break: break-word; }
.dbe dd { margin: 0; white-space: pre-line; }
.lockbar { border: 2px solid var(--ink); padding: 10px 14px; font-weight: 500; margin-bottom: 24px; max-width: 68ch; }

/* glossary abbreviations on the image record */
dd.abbr span { display: block; color: var(--ink-2); }
dd.abbr span + span { margin-top: 2px; }
dd.abbr abbr { text-decoration: none; color: var(--ink); font-weight: 600; margin-right: 4px; }

/* installer / system pages */
.page.narrow { max-width: 860px; }
.progress { height: 10px; background: var(--field); margin: 18px 0 6px; }
.progress span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.pill.err { border-color: var(--error); color: var(--error); }
.stack .field { margin-bottom: 14px; }
.stack .field input[type=text], .stack .field input[type=password], .stack .field input[type=url] { width: 100%; max-width: 480px; }
dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0 0 8px; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; }
form.inline { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
pre.log { background: var(--field); padding: 12px; font-size: 12px; white-space: pre-wrap; overflow-x: auto; }
.flash-inline { border-left: 4px solid var(--ink); padding: 8px 12px; background: var(--field); }
.note { border: 1px solid var(--ink); padding: 12px; margin: 12px 0; }
@media (max-width: 640px) { dl.facts { grid-template-columns: 1fr; } }

/* medium facet: counts, empty options stay visible but quiet */
.facet a .n { color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.facet a[aria-current="true"] .n { color: inherit; }
.facet a.is-zero { color: var(--ink-2); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li + li { margin-top: 6px; }

/* archive toolbar: grid / list, tile size */
:root { --tile: 196px; }
.sheet { grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr)); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: -8px 0 20px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg > a, .seg > button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: inherit; font-size: 13px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; text-decoration: none; }
.seg > * + * { border-left: 1px solid var(--ink); }
.seg > [aria-current="true"], .seg > [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sizer { display: flex; align-items: center; gap: 10px; }
.sizer input[type=range] { width: 140px; accent-color: #000; }
#results.loading { opacity: .5; transition: opacity .15s; }

/* selected by someone: a black square with the number of selections */
.frame .pic { position: relative; }
.selmark { position: absolute; top: 0; left: 0; min-width: 22px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.frame.is-selected .pic { outline-width: 2px; }
.selmark-inline { display: inline-block; width: 9px; height: 9px; background: var(--ink); margin-right: 6px; vertical-align: 0; }
details.sub { margin-top: 6px; }
details.sub summary { cursor: pointer; color: var(--ink-2); }
details.sub ul { margin-top: 6px; }

/* list view */
.archive-list td { vertical-align: middle; }
.archive-list .th-pic, .archive-list .td-pic { width: 56px; }
.archive-list .td-pic img { width: 48px; height: 48px; object-fit: contain; background: var(--field); outline: 1px solid var(--ink); display: block; }
.archive-list .num a { font-weight: 600; white-space: nowrap; }
[aria-current="true"] .selmark-inline { background: var(--paper); }
.pill.tiny { font-size: 10px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }
.nowrap { white-space: nowrap; }
.add.inline { position: static; opacity: 1; }
@media (max-width: 760px) { .archive-list th:nth-child(5), .archive-list td:nth-child(5), .archive-list th:nth-child(6), .archive-list td:nth-child(6) { display: none; } .sizer input[type=range] { width: 90px; } }

/* keywords on the image page */
.tagline li { display: inline-flex; align-items: stretch; }
.tagline li.locked a { border-style: solid; }
.tagline li.locked a::after { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--ink); margin-left: 6px; vertical-align: 2px; }
.tagline form.x { margin: 0; display: inline-flex; }
.tagline form.x button { border: 1px solid var(--ink); border-left: 0; background: var(--paper); font: inherit; font-size: 12px; padding: 0 6px; cursor: pointer; }
.tagline form.x button:hover { background: var(--ink); color: var(--paper); }
.tagadd { display: flex; gap: 8px; margin-top: 12px; }
.tagadd input { flex: 1; min-width: 0; }

/* keyword management */
.tagcreate { display: flex; gap: 10px; align-items: center; margin: 16px 0 24px; flex-wrap: wrap; }
.tagtable { overflow-x: auto; }
.tagrow { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(var(--langs), minmax(140px, 1.5fr)) 64px minmax(230px, auto); gap: 8px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; min-width: 900px; }
.tagrow.head { font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.tagrow input[type=text] { width: 100%; padding: 6px 8px; font-size: 14px; }
.tagrow.locked input[readonly] { background: var(--paper); border-bottom-color: var(--rule); }
.tagrow .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagrow details.more summary { cursor: pointer; color: var(--ink-2); }
.tagrow .morebox { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--ink); margin-top: 6px; background: var(--paper); }
.tagrow .morebox textarea, .tagrow .morebox select { width: 100%; display: block; margin-top: 2px; }

.sheet-group { grid-column: 1 / -1; margin: 12px 0 -8px; font-weight: 500; font-size: 15px; }
.sheet-group:first-child { margin-top: 0; }

/* collections overview */
.pagehead .pagehead-act { margin-left: auto; align-self: center; }
.toolbar-l { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg .n { opacity: .6; font-variant-numeric: tabular-nums; }
.seg [aria-current="true"] .n { opacity: .8; }
.quickfilter { width: 240px; padding: 5px 10px; font-size: 13px; }
.coll-list .coll-name { font-weight: 600; font-size: 16px; }
.coll-list .num-col { text-align: right; padding-right: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coll-list td:last-child { white-space: nowrap; }
.coll-list .td-pic .nopic, .citem .pic .nopic { display: block; width: 48px; height: 48px; background: var(--field); outline: 1px solid var(--ink); }
.citem .pic .nopic { width: 100%; height: 100%; outline: 0; }
.dlg { border: 2px solid var(--ink); max-width: 460px; width: calc(100% - 32px); }
.dlg::backdrop { background: rgba(0,0,0,.35); }
.dlg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dlg-acts { display: flex; gap: 8px; margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .coll-list .col-proj, .coll-list .col-changed { display: none; }
  .quickfilter { width: 100%; }
}
.pagehead:has(.pagehead-act) { justify-content: flex-start; }
#colls [hidden] { display: none !important; }
.toolbar-l { flex-wrap: nowrap; }
.toolbar input.quickfilter { width: 240px; min-height: 0; height: 30px; padding: 4px 10px; font-size: 13px; border: 1px solid var(--ink); background: var(--paper); }
.coll-list td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.coll-list td.num-col, .coll-list td.small, .coll-list td:last-child { padding-top: 15px; }
.coll-desc { display: block; margin-top: 2px; }
.citem .pic { aspect-ratio: 1 / 1; }
@media (max-width: 760px) {
  .toolbar-l { flex-wrap: wrap; width: 100%; }
  .toolbar input.quickfilter { width: 100%; }
  .coll-desc { display: none; }
  .coll-list .col-owner { display: none; }
}
.block-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.block-head h3 { margin: 0; }
/* people */
.people-list mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 760px) { .people-list .col-dates, .people-list .col-access { display: none; } }
/* found set, FileMaker style: "12 von 19.225 Bildern" */
.found.is-filtered { color: var(--ink); }
.found.is-filtered strong { font-weight: 700; }
/* projects */
.proj-list .proj-name { font-weight: 600; font-size: 17px; }
.proj-list .proj-sub { display: block; margin-top: 2px; }
.proj-list .num-col { text-align: right; padding-right: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proj-list tr.child td:nth-child(2) { padding-left: 24px; }
.proj-list tr.context .proj-name { color: var(--ink-2); font-weight: 500; }
.proj-list .col-year { width: 64px; }
@media (max-width: 760px) { .proj-list .col-type, .proj-list .col-status { display: none; } }
.pagehead:has(.pagehead-act) > .muted { margin-left: auto; }
.pagehead .pagehead-act { margin-left: 16px; }
.facet li a { gap: 10px; align-items: baseline; }
.facet li a .n { flex: none; }
.facet li a .lab { flex: 1; min-width: 0; }
.facet li a .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* sort control — same in every area */
.sortctl { display: inline-flex; align-items: center; gap: 8px; }
.sortctl select { width: auto; min-height: 0; height: 30px; padding: 2px 28px 2px 10px; font-size: 13px; border: 1px solid var(--ink); background-color: var(--paper); }
.toolbar-l { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.frame figcaption .numrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.frame figcaption .date { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* sortable column headers */
th.sortable a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
th.sortable a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
th.sortable.is-sorted a { color: var(--ink); }
th.sortable .arr { font-size: 11px; line-height: 1; }
th.num-col.sortable a { justify-content: flex-end; }
