/* Groddle Field Notes · Item catalog. Builds on ../../restoration/restoration.css
   (tokens, chips, pills, search box) and ../../changelog/changelog.css (dark
   theme, note head, tags, pager). The pages are written by
   tools/catalog/build.mjs; ./catalog.js draws the grid from ./data.json. */

.catalog { --ph: color-mix(in srgb, var(--border) 55%, transparent); }
.st-source { --tone: var(--moss); }
.st-missing { --tone: var(--sun); }
.st-multiplayer { --tone: var(--sky); }
.st-lost { --tone: var(--plum); }
.st-unbuilt_original { --tone: var(--stone); }
.dot.st-source, .dot.st-missing, .dot.st-multiplayer, .dot.st-lost, .dot.st-unbuilt_original { background: var(--tone); }

/* —— The catalog —— */
.cat-head { padding-bottom: 20px; }
.cat-score { margin: 0 0 6px; font-size: 18px; max-width: 46em; }
.cat-score strong { font-family: var(--font-display); font-size: 30px; color: var(--moss); }
.cat-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 46em; }
.cat-main { padding-top: 8px; }
.cat-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.cat-search { max-width: 520px; }
.cat-selects { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.cat-selects label { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
/* Our own chevron, inset from the pill's round end (the browser's arrow sat against it). */
.cat-selects select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 38px 6px 14px; max-width: 62vw; cursor: pointer;
}
.cat-selects label::after {
  content: ''; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg); pointer-events: none;
}
.cat-selects select:focus-visible, .catalog .chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-chips-label { align-self: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.catalog .chip .dot { width: 9px; height: 9px; }
.cat-count { margin: 0 0 12px; font-weight: 700; min-height: 1.55em; }
.cat-empty { color: var(--muted); }

.cat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px;
}
.cat-grid li { content-visibility: auto; contain-intrinsic-size: auto 150px; }
.cat-grid li[hidden] { display: none; }
.cat-card {
  height: 150px; box-sizing: border-box; display: grid; grid-template-rows: 56px 1fr auto; justify-items: center; gap: 4px;
  padding: 10px 8px 8px; text-align: center; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.cat-card:hover { border-color: var(--moss); }
.cat-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-ic { width: 52px; height: 52px; object-fit: contain; align-self: center; }
.cat-ph { display: block; border: 2px dashed var(--ph); border-radius: 12px; box-sizing: border-box; }
.cat-ph.cat-ic { width: 44px; height: 44px; }
.cat-name { font-size: 14px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cat-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.cat-st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
@media (max-width: 440px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-card { height: 144px; padding: 8px 4px 6px; grid-template-rows: 50px 1fr auto; }
  .cat-grid li { contain-intrinsic-size: auto 144px; }
  .cat-ic { width: 46px; height: 46px; }
  .cat-name { font-size: 13px; }
}

/* —— An item —— */
.cat-item-head { padding-bottom: 24px; }
.cat-hero { display: flex; align-items: center; gap: 24px; }
.cat-hero h1 { margin: 0 0 4px; font-size: clamp(34px, 5vw, 60px); overflow-wrap: anywhere; }
/* The picture (tools/catalog/hero.mjs): drawn at its width and height, up to 208 px; smaller frames shrink it whole. */
.cat-hero-frame {
  flex: none; width: 240px; height: 240px; padding: 16px; box-sizing: border-box; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cat-hero-icon { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-hero-icon.cat-ph { width: 128px; height: 128px; }
/* The header's figures: price, what a vendor pays, how many stack. */
.cat-stats .ency-chip b { margin-left: 0; }
.cat-stats .cat-stack { background: color-mix(in srgb, var(--moss) 14%, var(--surface)); }
.cat-plural { margin: 0 0 10px; color: var(--muted); }
.cat-status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cat-register { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cat-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.cat-original { padding-top: 28px; }
.cat-original h2, .cat-remake h2, .cat-verbs-band h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cat-desc { font-size: 18px; max-width: 40em; }
.cat-desc p { margin: 0 0 12px; }
.cat-list { margin: 0 0 18px; padding-left: 20px; max-width: 46em; display: grid; gap: 6px; }
.cat-list a, .cat-desc a, .cat-music a { color: var(--moss); font-weight: 700; }
.cat-extras { color: var(--lead); }
.cat-none { color: var(--lead); }
.cat-with { color: var(--muted); font-size: 0.92em; }
.cat-source { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.cat-muted { color: var(--muted); }
.cat-facts {
  margin: 0; padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 15px;
}
.cat-facts dt { font-weight: 700; color: var(--muted); }
.cat-facts dd { margin: 0; overflow-wrap: anywhere; }
.cat-facts .note-tags { gap: 5px; }
.cat-facts .note-tags li { font-size: 11px; padding: 2px 8px; }
.cat-remake h3 { font-size: 20px; margin: 18px 0 8px; }
.cat-status-text { font-size: 18px; margin: 0 0 6px; max-width: 46em; }
.cat-music { margin: 14px 0 0; }
.cat-music a::before { content: '♪ '; }
.cat-verbs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 18px; }
.cat-verbs div { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
.cat-verbs dt { font-weight: 700; }
.cat-verbs dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cat-verbs dd:empty { display: none; }
li[id^="recipe-"]:target { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 6px; }
@media (max-width: 800px) { .cat-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cat-hero { gap: 16px; }
  .cat-hero-frame { width: 136px; height: 136px; padding: 10px; }
  .cat-hero-icon.cat-ph { width: 72px; height: 72px; }
  .cat-desc { font-size: 17px; }
}
@media (max-width: 520px) {
  .cat-head { padding-top: 36px; }
  .cat-head .lead { font-size: 17px; margin-bottom: 16px; }
  .cat-score { font-size: 16px; }
  .cat-score strong { font-size: 26px; }
  .cat-note { font-size: 13px; }
}

/* —— Encyclopedia parts (tools/encyclopedia/parts.mjs), shared by the item pages and /encyclopedia/ —— */
.st-rebuilt, .st-reimagined, .st-solo { --tone: var(--moss); }
.st-partial { --tone: var(--sun); }
.dot.st-rebuilt, .dot.st-reimagined, .dot.st-solo, .dot.st-partial { background: var(--tone); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* Music and sounds (tools/encyclopedia/build.mjs soundPage, soundsIndex, stillMissingPage). */
.st-snd_original { --tone: var(--moss); }
.st-snd_standin { --tone: var(--sky); }
.st-snd_synth { --tone: var(--dusk); }
.st-snd_silent { --tone: var(--stone); }
.st-snd_missing { --tone: var(--sun); }
.dot.st-snd_original, .dot.st-snd_standin, .dot.st-snd_synth, .dot.st-snd_silent, .dot.st-snd_missing { background: var(--tone); }
.ency-key { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.snd-players { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; max-width: 560px; }
.snd-player { display: grid; gap: 4px; margin: 0; }
.snd-player audio { width: 100%; height: 40px; }
.snd-player-name { font-size: 14px; font-weight: 700; }
.snd-synth { font: inherit; font-weight: 800; font-size: 15px; color: var(--play-fg); background: var(--play-bg); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; justify-self: start; }
.snd-synth:hover { background: var(--play-hover); }
.snd-synth:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.snd-synth[hidden] { display: none; }
.snd-ask { margin: 16px 0 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--sun) 45%, transparent); background: color-mix(in srgb, var(--sun) 12%, transparent); border-radius: var(--radius); max-width: 46em; }
.snd-ask p { margin: 0; }
.snd-ask p + p { margin-top: 6px; }
.snd-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.snd-status .chip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.snd-status .chip[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.snd-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.snd-blurb { margin: -4px 0 12px; color: var(--muted); font-size: 14px; max-width: 46em; }
.snd-sub h3 { margin: 18px 0 4px; font-size: 16px; }
.snd-sub .ency-chips { margin: 0 0 8px; }
.snd-names { margin: 6px 0 18px; padding: 0; list-style: none; columns: 16em; column-gap: 24px; font-size: 14px; }
.snd-names li { break-inside: avoid; padding: 1px 0; }
.snd-miss { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.snd-miss li { display: grid; grid-template-columns: minmax(10em, 1.1fr) minmax(10em, 1.4fr) minmax(8em, 1.2fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.snd-miss-name a { font-weight: 800; }
.snd-miss-file { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.snd-miss-for { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .snd-miss li { grid-template-columns: 1fr; } }

.ency-band h2 { font-size: clamp(26px, 3.4vw, 36px); }
.ency-band h3, .cat-remake h3 { font-size: 20px; margin: 22px 0 10px; }
.ency-band .section-lead { margin-top: -4px; }
.ency-lead-small { margin: 0 0 10px; color: var(--muted); font-size: 15px; }

/* A tile: a picture card for one thing. */
.ency-tiles { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ency-tiles > li { display: flex; }
.ency-tile {
  position: relative; width: 112px; min-height: 118px; box-sizing: border-box;
  display: grid; grid-template-rows: 56px auto 1fr; justify-items: center; align-content: start; gap: 4px;
  padding: 8px 6px 8px; text-align: center; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
a.ency-tile:hover { border-color: var(--moss); }
a.ency-tile:focus-visible, .ency-chip:focus-visible, .ency-vendor:focus-visible, .ency-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ency-tile-out { border-style: dashed; }
.ency-tile-out .ency-ic { opacity: 0.75; }
.ency-tile-pic { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.ency-ic { max-width: 48px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.ency-ic.cat-ph { width: 40px; height: 40px; }
.ency-n {
  position: absolute; right: -10px; bottom: -2px; min-width: 22px; padding: 1px 6px; box-sizing: border-box;
  font-size: 12px; font-weight: 800; line-height: 1.4; color: var(--surface); background: var(--fg); border-radius: 999px;
}
.ency-tile-name { font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ency-tile-sub { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.ency-tile-sub .cat-st { font-size: 11px; }
.ency-shop .ency-tile-sub { color: var(--fg); }
.ency-tile .ency-price { display: inline-flex; align-items: center; gap: 3px; }
.ency-tile .ency-price .ency-chip-ic { width: 14px; height: auto; }
.ency-grid .ency-tile { width: auto; }
.ency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ency-grid > li[hidden], .ency-group[hidden] { display: none; }
.ency-grid > li { content-visibility: auto; contain-intrinsic-size: auto 128px; }
.ency-grid .ency-tile { width: 100%; }

/* Chips: a stat or a link with a little picture. */
.ency-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ency-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; min-height: 30px; box-sizing: border-box;
  font-size: 14px; font-weight: 700; color: var(--fg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
a.ency-chip:hover { border-color: var(--moss); }
.ency-chip b { font-weight: 800; color: var(--moss); margin-left: 2px; }
.ency-chip-ic { width: 20px; height: 20px; object-fit: contain; flex: none; }
.ency-chip-xp { background: color-mix(in srgb, var(--moss) 14%, var(--surface)); }
.ency-place { padding-left: 12px; }

/* A recipe: ingredients + ... -> result. */
.ency-recipe { padding: 12px 14px 4px; margin: 0 0 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 60em; }
.ency-recipe:target { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.ency-recipe-name { margin: 0 0 8px; font-weight: 800; }
.ency-recipe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ency-recipe-row .ency-tiles { margin: 0 0 8px; align-items: center; }
.ency-plus, .ency-arrow { font-size: 22px; font-weight: 800; color: var(--muted); align-self: center; }
.ency-arrow { margin: 0 4px 8px; }

/* Store cards. */
.ency-vendors { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ency-vendor {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; min-width: 220px; box-sizing: border-box;
  color: var(--fg); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
a.ency-vendor:hover { border-color: var(--moss); }
.ency-vendor-ic { width: auto; height: 52px; max-width: 52px; object-fit: contain; }
.ency-vendor-text { display: grid; gap: 2px; }
.ency-vendor-name { font-weight: 800; }
.ency-price { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.ency-sell { font-size: 14px; color: var(--muted); }

/* Quest steps and talk. */
.ency-steps { margin: 0 0 18px; padding-left: 26px; display: grid; gap: 14px; max-width: 60em; }
.ency-steps > li::marker { font-weight: 800; color: var(--moss); }
.ency-step-title { margin: 0 0 8px; font-weight: 700; }
.ency-talk { max-width: 44em; padding: 10px 16px; margin: 0 0 12px; border-left: 4px solid var(--border); color: var(--lead); }
.ency-talk p { margin: 0 0 8px; }
.ency-talk a { color: var(--moss); font-weight: 700; }

/* Places. */
.ency-streets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ency-street { padding: 10px 0 2px; border-bottom: 1px solid var(--row-line); scroll-margin-top: 80px; }
.ency-street:target { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ency-street-name { margin: 0 0 8px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ency-street .ency-chips { margin-bottom: 8px; gap: 6px; }
.ency-street .ency-chip { font-size: 13px; min-height: 26px; padding: 2px 10px 2px 6px; }

/* Lists and the home. */
.ency-group h2 { font-size: 24px; margin: 22px 0 12px; }
.ency-group h2 .count, .ency-card-name .count { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 700; }
.ency-search { margin-top: 18px; max-width: 640px; }
/* #379: an entry page's search box, beside its kicker (tools/encyclopedia/parts.mjs entrySearch). */
.ency-entry-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; }
.ency-entry-top .kicker { margin: 0; flex: 1 1 auto; min-width: 0; }
.ency-jump { flex: 0 1 280px; margin: 0; }
.ency-jump .history-search { display: block; max-width: none; }
.ency-jump input { padding: 6px 14px; font-size: 14px; }
@media (max-width: 560px) { .ency-jump { flex-basis: 100%; } }
.ency-filter { margin-top: 12px; }
.ency-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ency-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; height: 100%; box-sizing: border-box;
  color: var(--fg); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
a.ency-card:hover { border-color: var(--moss); }
.ency-card-ic { width: 64px; height: 64px; object-fit: contain; flex: none; }
.ency-card-text { display: grid; gap: 4px; }
.ency-card-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ency-card-blurb { color: var(--muted); font-size: 14.5px; }
.cat-stats { margin: 10px 0 0; }
.cat-stats .ency-chip { font-size: 13px; }

@media (max-width: 520px) {
  .ency-tiles:not(.ency-ins):not(.ency-outs) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ency-tiles:not(.ency-ins):not(.ency-outs) .ency-tile { width: 100%; }
  .ency-tile { width: 96px; min-height: 110px; padding: 6px 4px; }
  .ency-tile-name { font-size: 12.5px; }
  .ency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ency-vendor { min-width: 0; width: 100%; }
  .ency-vendors > li { flex: 1 1 100%; }
  .ency-recipe { padding: 10px 10px 2px; }
  .ency-recipe-row .ency-tile { width: 84px; min-height: 100px; }
  .ency-plus, .ency-arrow { font-size: 18px; }
  .ency-card-ic { width: 48px; height: 48px; }
}
.ency-more { font-size: 16px; } .ency-more a { color: var(--moss); font-weight: 700; }

/* —— Themed combobox (./combobox.js) over the Category and Sold by selects —— */
.cbx-field { display: inline-flex; align-items: center; gap: 8px; }
.cat-selects .cbx-label::after { content: none; }
.cbx { position: relative; width: min(64vw, 260px); }
.cbx-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; font-weight: 600; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 58px 6px 14px; min-height: 34px;
}
.cbx-input::placeholder { color: var(--fg); opacity: 1; }
.cbx-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cbx-open .cbx-input { border-color: var(--moss); }
.cbx-chev { position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; cursor: pointer; }
.cbx-chev::after {
  content: ''; position: absolute; left: 10px; top: 9px; width: 7px; height: 7px;
  border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg);
}
.cbx-open .cbx-chev::after { top: 12px; transform: rotate(-135deg); }
.cbx-clear {
  position: absolute; right: 32px; top: 50%; width: 24px; height: 24px; margin-top: -12px; padding: 0;
  font: inherit; font-size: 16px; line-height: 1; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.cbx-clear:hover { color: var(--fg); background: color-mix(in srgb, var(--border) 50%, transparent); }
.cbx-list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: max(100%, 240px); max-height: min(320px, 60vh); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--fg) 18%, transparent), 0 2px 6px color-mix(in srgb, var(--fg) 10%, transparent);
}
.cbx-list[hidden] { display: none; }
.cbx-list li[role="option"] {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--fg); cursor: pointer;
}
.cbx-list li img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cbx-noic { width: 22px; flex: none; }
.cbx-text { flex: 1; min-width: 0; }
.cbx-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.cbx-list li.cbx-all { color: var(--muted); }
.cbx-list li[aria-selected="true"] { font-weight: 800; }
.cbx-list li[aria-selected="true"] .cbx-text::after { content: ' ✓'; color: var(--moss); }
.cbx-list li.cbx-active { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.cbx-none { padding: 8px 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .cat-selects { display: grid; gap: 10px; }
  .cbx-field { display: grid; grid-template-columns: 82px minmax(0, 1fr); }
  .cbx { width: 100%; }
  .cbx-list { width: 100%; }
}
.ency-filter[hidden] { display: none; }

/* A comma or full stop that is read but not seen (parts.mjs sep(), ticket 65): copied text, Reader mode
   and screen readers get "Beelzebooze, involves it" where the page shows two lines. Inline, so Chrome keeps
   it on its word (the absolute .visually-hidden would put it on a line of its own), with no width. */
.ency-sep { display: inline-block; width: 1px; height: 1px; margin-right: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Never released in Glitch (tools/encyclopedia/never-released.mjs): a tag beside the status, a note on the page, the tag on the card. */
.ency-unreleased {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.3;
  padding: 2px 10px; border-radius: 999px; color: var(--fg);
  background: color-mix(in srgb, var(--plum) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--plum) 55%, transparent);
}
.ency-unreleased-note {
  margin: 14px 0 0; padding: 10px 14px; max-width: 40em; font-size: 16px;
  background: color-mix(in srgb, var(--plum) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--plum) 40%, transparent); border-radius: var(--radius);
}
.cat-card.cat-card-nr { grid-template-rows: auto 46px 1fr auto; padding-top: 6px; }
.cat-card-nr .cat-ic { width: 46px; height: 46px; }
.cat-card-nr .cat-name { -webkit-line-clamp: 2; }
.cat-card-tag, .ency-tile-sub .ency-unreleased { font-size: 10px; padding: 1px 7px; white-space: nowrap; }
.ency-tile-sub .ency-unreleased { margin-top: 3px; }
@media (max-width: 440px) {
  .cat-card.cat-card-nr { grid-template-rows: auto 40px 1fr auto; }
  .cat-card-nr .cat-ic { width: 40px; height: 40px; }
}
