/* Latent Finds public site. Dark only, Smoked Brass palette. A tool hub: a homepage with a magnifier hero, category
   pages of tool tiles with big filters, the /tools directory, and tool posts and articles. */
:root {
  color-scheme: dark;
  --bg: #0d0f12; --surface: #15181d; --surface-2: #1d2128; --fg: #ece6da; --muted: #9a978f; --line: #2a2e36;
  --gold: #c9a35b; --gold-hi: #e2c27f; --gold-lo: #7d6233; --tint: #232228;
  --c-ai: #93acd9; --c-3d: #8cc4a2; --c-game: #c9707a; --c-games: #e3c46a; --c-creators: #c49ad6; --c-dev: #7fc1c4; --c-pi: #e08aa6; --c-hack: #f0a35e; --c-home: #b3c46e; --c-ux: #a3b4c9;
  --script: "Corinthia", "Brush Script MT", cursive;
  --serif: "Fraunces", Georgia, serif; --body: "Public Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --cc: var(--gold);
}
* { box-sizing: border-box }
html { background: var(--bg) }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100% }
a { color: inherit }
img { max-width: 100% }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.c-ai { --cc: var(--c-ai) } .c-3d-printing { --cc: var(--c-3d) } .c-gaming { --cc: var(--c-game) } .c-games { --cc: var(--c-games) }
.c-creators { --cc: var(--c-creators) } .c-dev-homelab { --cc: var(--c-dev) }
.c-raspberry-pi { --cc: var(--c-pi) } .c-hacking-devices { --cc: var(--c-hack) }
.c-home-assistant { --cc: var(--c-home) } .c-ux-ui { --cc: var(--c-ux) }

.site { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 32px; min-width: 0 }
main { display: grid; gap: 32px; min-width: 0 }

/* ---------- mastheads ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-hi) }
.brand .icon { width: 42px; height: 42px; image-rendering: pixelated }
.wm { font-family: var(--script); font-weight: 700; color: var(--gold-hi); line-height: 1; white-space: nowrap }
.mini-mast { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line) }
.mini-mast .icon { width: 32px; height: 32px }
.mini-mast .wm { font-size: 2.4rem }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-family: var(--serif); font-variant: small-caps; letter-spacing: .06em; font-size: 1.02rem }
.nav-links a { color: var(--muted); text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent }
.nav-links a:hover { color: var(--fg) }
.nav-links a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--cc) }
@media (max-width: 560px) {
  .mini-mast { justify-content: center } .mini-mast .wm { font-size: 2.1rem }
  .nav-links { gap: 2px 16px; font-size: .95rem }
}

/* ---------- labels ---------- */
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline }
.cat { color: var(--cc); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase }
.fmt { font-family: var(--mono); font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums }
.ttl { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--fg) }
.card-link { text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; min-width: 0 }
.card-link:hover .ttl { color: var(--gold-hi) }

/* ---------- branded covers and title cards ---------- */
/* A cover is the branded background, with the article's cover image under it when there is one. A title card is the
   same with the article's heading on it; the share image drawn by /admin/js/titlecard.js copies it, so change the two
   together. */
.cover { position: relative; background: var(--surface-2); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; width: 100% }
.cover, .title-card { --corners:
  linear-gradient(var(--gold-lo), var(--gold-lo)) left 10px top 10px / 20px 1px no-repeat,
  linear-gradient(var(--gold-lo), var(--gold-lo)) left 10px top 10px / 1px 20px no-repeat,
  linear-gradient(var(--gold-lo), var(--gold-lo)) right 10px bottom 10px / 20px 1px no-repeat,
  linear-gradient(var(--gold-lo), var(--gold-lo)) right 10px bottom 10px / 1px 20px no-repeat }
.cover::before, .title-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--corners),
  radial-gradient(90% 120% at var(--gx, 100%) var(--gy, 0%), color-mix(in srgb, var(--cc) var(--glow, 22%), transparent) 0%, transparent 62%),
  radial-gradient(60% 80% at var(--hx, 0%) var(--hy, 100%), color-mix(in srgb, var(--gold) 12%, transparent) 0%, transparent 70%) }
/* The picture sits under the brackets, with shade where text goes: the title and labels on a title card. */
.cover-img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit }
.cover.has-image::before { background: var(--corners), linear-gradient(transparent 60%, color-mix(in srgb, var(--bg) 30%, transparent)) }
.title-card.has-image::before { background: var(--corners),
  linear-gradient(0deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 42%, transparent 80%),
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 62%, transparent) 0%, transparent 68%),
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%) }
.title-card.has-image .ttl { text-shadow: 0 1px 14px color-mix(in srgb, var(--bg) 80%, transparent) }
.cover-credit { margin: -14px 2px 0; text-align: right; font-family: var(--mono); font-size: .68rem; color: var(--muted) }
.cover-credit a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 2px }
.cover-credit a:hover { color: var(--fg) }
.cover { isolation: isolate }
.v1 { --gx: 0%; --gy: 0%; --hx: 100%; --hy: 100% }
.v2 { --gx: 50%; --gy: 110%; --hx: 100%; --hy: 0% }
.v3 { --gx: 100%; --gy: 100%; --hx: 0%; --hy: 0% }
.cover.shot .cover-img { object-position: top }
.cover .stamp { position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; opacity: .85; image-rendering: pixelated }
.title-card { position: relative; isolation: isolate; --glow: 24%; background: var(--surface); border-radius: 6px; aspect-ratio: 40 / 21;
  display: grid; align-content: space-between; gap: 28px; padding: clamp(22px, 6%, 44px) clamp(22px, 7.3%, 54px) }
.title-card .stamp { position: absolute; top: 16px; right: 18px; width: 26px; height: 26px; opacity: .85; image-rendering: pixelated }
.title-card .ttl { font-size: 2.5rem; line-height: 1.1; max-width: 22ch }
/* A tool post's card carries only its long "address: what it does" title; the landing page picture follows it. */
.title-card.is-tool { aspect-ratio: auto; gap: 18px }
.title-card.is-tool .ttl { font-size: 1.95rem; line-height: 1.15; max-width: 30ch }
.shot { margin: 0; display: grid; gap: 8px }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2) }
.shot figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted) }
.shot figcaption a { color: var(--gold-hi); text-decoration-color: var(--gold-lo); text-underline-offset: 2px }
@media (max-width: 560px) {
  .title-card { aspect-ratio: auto; min-height: 210px; margin-inline: -4px }
  .title-card.is-tool { min-height: 0 }
  .title-card.is-tool .ttl { font-size: 1.45rem }
  .title-card .ttl { font-size: 1.75rem }
  /* On a phone the title runs across the picture's subject too, so the whole picture is dimmed a little more. */
  .title-card.has-image::before { background: var(--corners),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 42%, transparent 80%),
    linear-gradient(color-mix(in srgb, var(--bg) 42%, transparent), color-mix(in srgb, var(--bg) 42%, transparent)) }
}

/* ---------- feed ---------- */
.feedwrap { width: 100%; max-width: 760px; justify-self: center; display: grid; gap: 16px; align-content: start }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center }
.tg { font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 3px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer }
.tg[aria-pressed="true"] { border-color: var(--cc); color: var(--fg) }
.feed { display: grid; gap: 22px }
.post .card-link { grid-template-columns: 220px minmax(0, 1fr); gap: 6px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); align-items: start }
.post .cover { grid-row: span 3 }
.post .card-link > :not(.cover) { grid-column: 2 }
.post .ttl { font-size: 1.25rem }
.post p { margin: 0; color: var(--muted); font-size: .92rem }
@media (max-width: 560px) {
  .post .card-link { grid-template-columns: minmax(0, 1fr) }
  .post .cover { grid-row: auto }
  .post .card-link > :not(.cover) { grid-column: 1 }
  .post .ttl { font-size: 1.1rem }
}
.feed-end { height: 1px }
.feed.is-loading { opacity: .6 }

/* ---------- page heads and panels ---------- */
.topic-head { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line) }
.topic-head .toggles { justify-content: flex-start }
.crumbs { margin: 0; font-family: var(--mono); font-size: .7rem; color: var(--muted) }
.crumbs a { text-decoration: none } .crumbs a:hover { color: var(--fg) }
.topic-title { margin: 0; font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--cc); line-height: 1.1 }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; display: grid; gap: 10px }
.panel h2 { margin: 0; font-family: var(--serif); font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--gold-hi); font-size: 1.02rem }
.panel ol, .panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem }
.panel li::marker { color: var(--gold-lo) }
.panel a { text-decoration: none; border-bottom: 1px solid var(--line) }
.panel a:hover { border-color: var(--gold) }
.panel p { margin: 0 }
.panel small { color: var(--muted); font-size: .78rem }
.calc label { display: grid; gap: 3px; font-size: .8rem; color: var(--muted) }
.calc input { font: inherit; font-size: .92rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; width: 100% }
.calc .out { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hi); font-variant-numeric: tabular-nums }

/* ---------- article ---------- */
.article { width: 100%; max-width: 720px; justify-self: center; display: grid; gap: 22px; min-width: 0 }
.article > .crumbs { margin-bottom: -10px }
.dek { margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.5 }
@media (max-width: 560px) { .dek { font-size: 1rem } }
.prose { font-size: 1.06rem; line-height: 1.72; min-width: 0; overflow-wrap: break-word }
.prose > * { margin: 0 0 1.1em }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 1.6em 0 .5em; text-wrap: balance }
.prose h2 { font-size: 1.5rem } .prose h3 { font-size: 1.22rem } .prose h4 { font-size: 1.05rem }
.prose a { color: var(--gold-hi); text-decoration-color: var(--gold-lo); text-underline-offset: 3px }
.prose a:hover { text-decoration-color: var(--gold-hi) }
.prose ul, .prose ol { padding-left: 1.3em }
.prose li { margin: .3em 0 }
.prose li::marker { color: var(--gold) }
.prose blockquote { margin-inline: 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--gold-lo); color: var(--muted) }
.prose blockquote > * { margin: 0 0 .6em }
.prose blockquote > :last-child { margin-bottom: 0 }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; line-height: 1.5 }
.prose pre code { background: none; padding: 0 }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0 }
.pic { margin: 6px 0 1.4em; display: grid; gap: 8px; justify-items: center }
.pic img { display: block; max-width: 100%; width: auto; height: auto; max-height: min(80vh, 900px); border-radius: 6px; background: var(--surface-2) }
.pic figcaption { justify-self: stretch; font-size: .88rem; color: var(--muted); line-height: 1.45 }
.pic .credit { font-family: var(--mono); font-size: .7rem }
.pic .credit a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 2px }
.pic .credit a:hover { color: var(--fg) }
.prose strong { color: var(--fg); font-weight: 600 }
.links, .sources { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line) }
.links h2, .sources h2, .more-in h2, .gear h2 { margin: 0; font-family: var(--serif); font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--gold-hi); font-size: 1.15rem }
.links ul, .sources ul { margin: 0; padding-left: 18px; display: grid; gap: 10px }
.links li::marker, .sources li::marker { color: var(--gold-lo) }
.links a, .sources a { color: var(--fg); text-decoration-color: var(--gold-lo); text-underline-offset: 3px }
.links li span { display: block; color: var(--muted); font-size: .92rem }
.sources { font-size: .9rem }
.sources li span { color: var(--muted); font-family: var(--mono); font-size: .74rem }
/* "What you need" on how-to guides: the things the steps call for, with the shopping links Lou added. */
.gear { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px }
.gear ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; line-height: 1.45 }
.gear li { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 14px; padding-bottom: 8px; border-bottom: 1px dotted var(--line) }
.gear li:last-child { border-bottom: 0; padding-bottom: 0 }
.gear-thing { display: grid; min-width: 0 }
.gear-note { color: var(--muted); font-size: .9rem }
.gear a { color: var(--gold-hi); white-space: nowrap; font-size: .92rem; text-decoration-color: var(--gold-lo); text-underline-offset: 3px }
.gear a:hover { text-decoration-color: var(--gold-hi) }
.gear .own { display: inline-block; margin-left: 8px; color: var(--c-3d); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap }
.gear .disc { margin: 0; color: var(--muted); font-size: .76rem }
.more-in { width: 100%; max-width: 720px; justify-self: center; display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line) }
.preview-bar { position: sticky; top: 0; z-index: 5; background: var(--tint); border-bottom: 1px solid var(--gold-lo); color: var(--gold-hi); font-family: var(--mono); font-size: .76rem; padding: 8px 16px; text-align: center }

/* ---------- footer and misc ---------- */
.foot { display: grid; justify-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem }
.foot p { margin: 0; display: flex; gap: 16px; font-family: var(--mono); font-size: .72rem }
.foot p a { text-decoration: none } .foot p a:hover { color: var(--fg) }
.empty-page { display: grid; gap: 12px; justify-items: center; padding: 60px 0; text-align: center }
.empty-page a { color: var(--gold-hi) }
.prose .ig-bars, .prose .ig-steps { padding-left: 0 }
.prose .ig-timeline { padding-left: 18px }
.prose .ig li { margin: 0 }

/* ---------- tool directory (/tools) and a tool post's facts ---------- */
.dir { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start }
.dir-count { margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: .8rem }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto }
.filters > summary { cursor: pointer; font-family: var(--serif); font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--gold-hi); list-style: none }
.filters > summary::-webkit-details-marker { display: none }
.f-form { display: grid; gap: 14px; margin-top: 10px }
.f-group { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0 }
.f-group legend { padding: 0; margin-bottom: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.f-values { display: grid; gap: 2px }
.f-opt { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 2px 0 }
.f-opt input { accent-color: var(--gold); margin: 0 }
.f-opt span { flex: 1; min-width: 0; overflow-wrap: anywhere }
.f-opt small { color: var(--muted); font-family: var(--mono); font-size: .72rem }
.f-opt.is-empty { opacity: .5 }
.f-opt[hidden] { display: none }
.f-search, .f-sort select { font: inherit; font-size: .88rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; width: 100% }
.f-sort { display: grid; gap: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.f-actions { margin: 0; display: flex; gap: 12px; align-items: center; font-size: .88rem }
.f-actions a { color: var(--gold-hi) }
.f-apply { font: inherit; font-size: .88rem; background: var(--gold); color: var(--bg); border: 0; border-radius: 4px; padding: 6px 12px; cursor: pointer; font-weight: 600 }
.f-apply.is-auto { display: none }
.dir-results { display: grid; gap: 14px; min-width: 0 }
.tool-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line) }
.tool-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line) }
.shot-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top }
.no-shot { display: block; width: 100%; height: 100% }
.tool-main { display: grid; gap: 6px; min-width: 0 }
.tool-main .labels { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.tool-main .lab { text-decoration: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase }
.tool-main .lab.cat { color: var(--cc); font-weight: 600 }
.tool-main .lab.price { color: var(--gold-hi); border: 1px solid var(--gold-lo); border-radius: 3px; padding: 0 5px }
.tool-main .lab.price.p-free { color: var(--c-3d); border-color: color-mix(in srgb, var(--c-3d) 50%, transparent) }
.tool-main .ttl { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere }
.tool-main .ttl a { text-decoration: none }
.tool-main .ttl a:hover { color: var(--gold-hi) }
.tool-main .sum { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5 }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.tags a { display: inline-block; font-size: .76rem; color: var(--fg); text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px }
.tags a:hover { border-color: var(--gold-lo); color: var(--gold-hi) }
.no-results { color: var(--muted) }
.no-results a, .panel-more a { color: var(--gold-hi) }
.panel-more { margin: 0; font-size: .85rem }
@media (max-width: 900px) {
  .dir { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .filters { position: static; max-height: none }
}
@media (max-width: 560px) {
  .tool-row { grid-template-columns: 1fr; gap: 10px }
}
.facts { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 14px 16px; display: grid; gap: 10px }
.facts h2 { margin: 0; font-family: var(--serif); font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--gold-hi); font-size: 1.02rem }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.facts dd { margin: 0; font-size: .94rem; overflow-wrap: anywhere }
.facts a { color: var(--gold-hi); text-decoration-color: var(--gold-lo); text-underline-offset: 2px }
.facts-foot { margin: 0; font-size: .8rem; color: var(--muted) }
/* A tool post's how-to, with the note that it's AI-written under it */
.howto h2 { margin: 0 0 8px; font-family: var(--serif); font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--gold-hi); font-size: 1.02rem }
.howto .prose > :last-child { margin-bottom: 0 }
.howto-note { margin: 10px 0 0; font-style: italic; font-size: .85rem; color: var(--muted) }
.play { margin: 16px 0 0 }
.play-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--c-games); border-radius: 999px; color: var(--c-games); font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease }
.play-btn:hover, .play-btn:focus-visible { background: var(--c-games); color: #14171c }
/* Price votes (Unknown prices) and readers' thumbs under the how-to and the facts */
.price-vote, .feedback { display: grid; gap: 8px; font-size: .9rem }
.price-vote-ask, .feedback-ai, .feedback-ask { margin: 0; color: var(--muted) }
.feedback { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px }
.facts .feedback { margin-top: 4px }
.feedback-ai { font-size: .82rem }
.price-vote-buttons { display: flex; flex-wrap: wrap; gap: 6px }
.price-vote button, .feedback button { font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer }
.price-vote button:hover, .feedback button:hover, .price-vote button:focus-visible, .feedback button:focus-visible { border-color: var(--gold-lo); color: var(--gold-hi) }
.price-vote button.is-picked, .feedback button.is-picked { border-color: var(--gold-hi); color: var(--gold-hi) }
.feedback-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.feedback .thumb { padding: 2px 10px; font-size: 1rem; line-height: 1.4 }
.feedback-wrong summary { cursor: pointer; color: var(--muted); font-size: .85rem; width: max-content }
.feedback-wrong[open] { display: grid; gap: 6px }
.feedback-label { font-size: .8rem; color: var(--muted) }
.feedback textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; resize: vertical; width: 100%; box-sizing: border-box }
.feedback-send { justify-self: start }
.price-vote-note, .feedback-note { margin: 0; color: var(--gold-hi); font-size: .85rem; min-height: 0 }
.price-vote-note:empty, .feedback-note:empty { display: none }

/* ---------- tool hub: shared pieces ---------- */
/* A site's favicon (or its first letter when it has none) beside its address. */
.favicon { display: inline-block; flex: none; width: 20px; height: 20px; border-radius: 4px; object-fit: contain; vertical-align: -3px; margin-right: 8px }
.favicon.letter { display: inline-grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-hi); font-family: var(--serif); font-size: .72rem; font-weight: 600; line-height: 1 }
.favicon.small { width: 14px; height: 14px; margin: 0 0 0 6px; border-radius: 3px; font-size: .55rem; vertical-align: middle }
.favicon.big { width: 34px; height: 34px; margin: 0; border-radius: 7px; font-size: 1.05rem }
img.favicon { background: #f4f1ea; padding: 2px }
@media (max-width: 900px) { .favicon.big { width: 28px; height: 28px } }
.kicker { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold) }
.sec-title { margin: 0; font-family: var(--serif); font-variant: small-caps; letter-spacing: .04em; font-weight: 600; font-size: 1.75rem; color: var(--gold-hi); line-height: 1.2 }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px }
.more { color: var(--gold-hi); font-weight: 600; text-decoration-color: var(--gold-lo); text-underline-offset: 3px }
.more:hover { text-decoration-color: var(--gold-hi) }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 6px; background: var(--gold); color: var(--bg); font-weight: 600; text-decoration: none; border: 1px solid var(--gold) }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi) }
.btn.ghost { background: transparent; color: var(--gold-hi); border-color: var(--gold-lo) }
.btn.ghost:hover { border-color: var(--gold-hi) }
.chips { margin: 0; display: flex; flex-wrap: wrap; gap: 8px }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--fg); font-size: .8rem; line-height: 1.4; text-decoration: none }
.chip.price { color: var(--gold-hi); font-weight: 600 }
.chip.price.p-free { color: var(--c-3d) }
.chip.cat { background: transparent; border: 1px solid var(--cc); color: var(--cc); font-weight: 600 }
/* A screenshot in a browser frame. */
.chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line) }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3b3f47 }
.chrome .favicon + span { margin-left: 4px } .chrome span { margin-left: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .74rem; color: var(--muted) }
.frame-shot { display: block; aspect-ratio: 16 / 10; background: #1a1d23; overflow: hidden }

/* ---------- homepage ---------- */
/* The hero: two copies of a field of names, the lit one cut to a circle at --lx/--ly (set by site.js), under a lens. */
.hero { --lx: 64%; --ly: 40%; --r: 120px; position: relative; height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #101318; isolation: isolate }
.hero-field { position: absolute; inset: -20px; display: flex; flex-direction: column; gap: 22px; padding-top: 18px; font-family: var(--mono); font-size: 1.35rem; color: #3b3f47; white-space: nowrap; filter: blur(2.5px); user-select: none; pointer-events: none }
.hero-field.is-lit { filter: none; color: var(--gold-hi); background: var(--surface); clip-path: circle(var(--r) at var(--lx) var(--ly)) }
.hero-row { display: flex; gap: 42px }
.hero-row:nth-child(2) { transform: translateX(-97px) } .hero-row:nth-child(3) { transform: translateX(-194px) }
.hero-row:nth-child(4) { transform: translateX(-31px) } .hero-row:nth-child(5) { transform: translateX(-128px) }
.hero-row:nth-child(6) { transform: translateX(-225px) } .hero-row:nth-child(7) { transform: translateX(-62px) }
.hero-row:nth-child(8) { transform: translateX(-159px) } .hero-row:nth-child(9) { transform: translateX(-256px) }
.hero-row:nth-child(10) { transform: translateX(-93px) } .hero-row:nth-child(11) { transform: translateX(-190px) }
.hero-row:nth-child(12) { transform: translateX(-27px) }
.lens { position: absolute; left: var(--lx); top: var(--ly); width: 0; height: 0; pointer-events: none }
.lens-ring { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); box-sizing: border-box; border: 6px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-lo), 0 0 40px color-mix(in srgb, var(--gold) 25%, transparent) }
.lens-handle { position: absolute; left: calc(var(--r) * .7 - 11px); top: calc(var(--r) * .7); width: 22px; height: 90px; background: var(--gold-lo); border-radius: 4px; transform: rotate(-45deg); transform-origin: top center }
.hero-copy { position: absolute; z-index: 2; left: 40px; bottom: 40px; max-width: 560px; padding: 30px 32px; background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 14px }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 2.75rem; line-height: 1.08; text-wrap: balance }
.hero-text { margin: 0; font-size: 1.06rem; line-height: 1.6; color: #c9c4b9 }
.hero-actions { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 12px }
.how-steps { list-style: none; margin: -14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 40px; font-family: var(--mono); font-size: .86rem; color: var(--muted) }
.how-steps b { color: var(--gold-hi); font-weight: 500 }
@media (max-width: 720px) {
  /* On a phone the field shows above the words, which sit under it rather than over it. */
  .hero { --r: 84px; height: auto; padding: 230px 12px 12px; margin-inline: -4px }
  .hero-field { font-size: 1.05rem; gap: 18px }
  .lens-ring { border-width: 4px }
  .lens-handle { width: 16px; height: 62px; left: calc(var(--r) * .7 - 8px) }
  .hero-copy { position: relative; left: auto; bottom: auto; max-width: none; padding: 20px }
  .hero-title { font-size: 1.85rem }
  .hero-text { font-size: .98rem }
  .how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: .8rem }
}

.week { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 24px; scroll-margin-top: 24px }
.week-shot { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); transition: transform .25s ease, border-color .25s ease }
.week-shot:hover { transform: translateY(-4px); border-color: var(--gold-lo) }
.week-copy { display: grid; gap: 14px; min-width: 0 }
.week-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.15; overflow-wrap: anywhere; text-wrap: balance }
.site-link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: var(--gold-hi); font-family: var(--body); font-weight: 600; font-size: 1.85rem; letter-spacing: -.01em }
.site-name { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--gold-lo); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s ease }
a.site-link { text-decoration: none } a.site-link:hover .site-name { text-decoration-color: var(--gold-hi) }
.site-link .out { font-size: .7em; color: var(--gold); transition: transform .2s ease } a.site-link:hover .out { transform: translate(2px, -2px) }
.week-what { display: block; margin-top: 12px; font-size: 1.3rem; line-height: 1.3; color: var(--fg) }
.week-how { margin: 0; color: #c9c4b9; line-height: 1.65 }
.week-copy > p:last-child { margin: 0 }
@media (max-width: 900px) { .week { grid-template-columns: minmax(0, 1fr); gap: 20px } .site-link { font-size: 1.4rem; gap: 10px } .week-what { font-size: 1.1rem } }

.recent, .cats { display: grid; gap: 22px; padding-top: 24px }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.tcard-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); text-decoration: none; transition: transform .25s ease, border-color .25s ease }
.tcard-link:hover { transform: translateY(-4px); border-color: var(--gold-lo) }
.tcard-shot { display: block; aspect-ratio: 16 / 10; background: #1a1d23; border-bottom: 1px solid var(--line); overflow: hidden }
.tcard-body { display: grid; gap: 8px; padding: 14px 16px 18px; align-content: start }
.tcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline }
.tcard-ttl { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere }
.tcard-link:hover .tcard-ttl { color: var(--gold-hi) }
.tcard-sum { color: #b9b4a9; font-size: .92rem; line-height: 1.55 }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.cat-tile { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; transition: transform .25s ease, border-color .25s ease }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--cc) }
.cat-tile.all { --cc: var(--gold) }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--cc) }
.cat-name { flex: 1; font-family: var(--serif); font-size: 1.18rem; line-height: 1.2 }
.cat-tile small { color: var(--muted); font-family: var(--mono); font-size: .72rem; white-space: nowrap }
@media (max-width: 900px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)) } .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) {
  /* The recent tools become a carousel, so the categories aren't a long scroll away. */
  .tcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin-inline: -16px; padding: 4px 16px; scrollbar-width: none }
  .tcards::-webkit-scrollbar { display: none }
  .tcards > * { flex: 0 0 80%; scroll-snap-align: start }
  .cat-tiles { gap: 10px } .cat-tile { min-height: 60px; padding: 0 14px; gap: 10px } .cat-name { font-size: 1.02rem }
  .cat-tile small { display: none }
}
@media (prefers-reduced-motion: reduce) { .week-shot, .tcard-link, .cat-tile, .tile { transition: none } .week-shot:hover, .tcard-link:hover, .cat-tile:hover, .tile:hover { transform: none } }

/* ---------- category pages ---------- */
.cat-head { display: grid; gap: 10px }
.cat-intro { display: grid; gap: 10px; min-width: 0 }
.cat-title { margin: 0; display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-weight: 700; font-size: 3.2rem; line-height: 1.05 }
.cat-title .swatch { width: 20px; height: 20px; border-radius: 4px }
.cat-head .dir-count { margin: 0; font-size: .9rem; color: #c9c4b9 }
.pills-box { display: grid; gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px }
.pill-group { display: grid; gap: 10px }
.pill-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.pills { display: flex; flex-wrap: wrap; gap: 24px 22px }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid #3b3f47; color: var(--fg); font-weight: 600; font-size: 1.05rem; text-decoration: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .2s ease, color .2s ease }
.pill:hover { border-color: var(--gold-lo) }
.pill .t { position: relative; z-index: 2; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1) }
/* A picked pill sits under a brass loupe: a cast rim with a dark lip and a reflection on the glass, and a handle with
   a ridged collar, an ebony grip and an end cap. The glint sweeps across each time a pill gets picked. */
.pill .loupe > span { position: absolute; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1) }
.pill[aria-current="true"] .loupe > span { opacity: 1 }
.pill .ring { inset: -8px; z-index: 1; border-radius: 999px; border: 5px solid transparent;
  background:
    radial-gradient(ellipse 120% 160% at 32% 18%, rgba(255, 238, 205, .13), rgba(226, 194, 127, .045) 45%, rgba(0, 0, 0, .18) 100%) padding-box,
    linear-gradient(#171a1f, #12151a) padding-box,
    conic-gradient(from 215deg, #fff1c8, #e2c27f 7%, #b38b45 18%, #5e4620 31%, #8f6f36 40%, #d9b874 50%, #fbe6b2 56%, #c19a55 64%, #6a4f24 77%, #4a3517 85%, #a9833f 93%, #fff1c8) border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 236, 190, .15), inset 0 0 0 1px rgba(20, 12, 4, .85), inset 0 3px 8px rgba(0, 0, 0, .55);
  transform: scale(.86) }
.pill .ring::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; border: 1px solid rgba(246, 222, 160, .35); border-top-color: rgba(255, 240, 200, .55); border-bottom-color: rgba(120, 90, 40, .3) }
.pill .ring::after { content: ""; position: absolute; top: 3px; left: 14%; right: 30%; height: 38%; border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%; background: linear-gradient(180deg, rgba(255, 250, 235, .11), rgba(255, 250, 235, 0)) }
.pill .handle { z-index: 0; width: 38px; height: 12px; left: calc(100% - 19px); top: calc(100% - 9px); transform-origin: 0 50%; transform: rotate(38deg) scaleX(0); filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .7)) }
.pill .handle i { position: absolute; inset: 0;
  clip-path: polygon(0 22%, 10px 22%, 11px 8%, 13px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 13px 100%, 11px 92%, 10px 78%, 0 78%);
  background:
    linear-gradient(180deg, rgba(255, 248, 225, .45), rgba(255, 248, 225, .05) 38%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(176deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .18) 2px 3px),
    linear-gradient(90deg, #b8914c 0 2px, #f3dca3 2px 3px, #8a6d38 3px 5px, #f3dca3 5px 6px, #a8823f 6px 10px, #e2c27f 10px 12px, #3a2414 12px 13px, #2a1a10 13px calc(100% - 6px), #6a4f24 calc(100% - 6px), #e2c27f calc(100% - 4px), #9c7a3e 100%) }
.pill .glint { inset: -3px; z-index: 1; border-radius: 999px; overflow: hidden }
.pill .glint::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 26%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255, 242, 215, .2), transparent); transform: skewX(-18deg) }
.pill[aria-current="true"] { border-color: transparent; color: var(--gold-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, .6) }
.pill[aria-current="true"] .ring { transform: scale(1) }
.pill[aria-current="true"] .handle { transform: rotate(38deg) scaleX(1); transition-delay: .06s }
.pill[aria-current="true"] .t { transform: scale(1.08) }
.pill[aria-current="true"] .glint::before { animation: pill-glint .9s .12s ease-out both }
@keyframes pill-glint { to { left: 120% } }
.pills-hint { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem }
.pills-hint[hidden] { display: none }
.pills-hint svg { flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round }
.pills-hint kbd { font-family: var(--mono); font-size: .76rem; padding: 2px 7px; border-radius: 4px; border: 1px solid #3b3f47; border-bottom-width: 2px; color: var(--gold-hi); background: var(--surface-2) }
@media (prefers-reduced-motion: reduce) { .pill .t, .pill .loupe > span { transition: none } .pill[aria-current="true"] .glint::before { animation: none } }
.pill.is-empty:not([aria-current]) { opacity: .45 }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); transition: transform .25s ease, border-color .25s ease }
.tile:hover { transform: translateY(-4px); border-color: var(--gold-lo) }
.tile[hidden] { display: none }
.tile-shot { display: block; text-decoration: none; color: inherit }
.tile-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1 }
.tile-ttl { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere }
.tile-ttl a { text-decoration: none } .tile-ttl a:hover { color: var(--gold-hi) }
.tile-sum { margin: 0; font-size: .95rem; line-height: 1.55; color: #b9b4a9 }
.quick { margin-top: auto }
.quick > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--gold-lo); color: var(--gold-hi); font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none }
.quick > summary::-webkit-details-marker { display: none }
.quick > summary:hover { border-color: var(--gold-hi) }
.quick[open] > summary { margin-bottom: 12px }
.quick p { margin: 0 0 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.6; color: #c9c4b9 }
.quick a { color: var(--gold-hi); font-weight: 600; font-size: .9rem }
.tiles-empty { padding: 44px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted) }
.tiles-empty p { margin: 0 } .tiles-empty p + p { margin-top: 8px }
.tiles-empty a { color: var(--gold-hi); font-weight: 600 }
.tiles-empty[hidden] { display: none }
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start }
.cat-articles { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line) }
.cat-articles .feedwrap { justify-self: start }
.cat-articles .toggles { justify-content: flex-start }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr) }
  .cat-title { font-size: 2.3rem; gap: 12px }
  .pills-box { padding: 16px; margin-inline: -4px }
  .pills { gap: 22px 18px }
  .pill { min-height: 46px; padding: 0 16px; font-size: .96rem }
}

/* ---------- isometric category figures (src/site/iso.js) ---------- */
/* Fine warm-grey lines; whatever is live glows in the category colour (--cc). */
.iso { --iso-body: #14171c; --iso-deck: #191c22; --iso-line: #6b655a; --iso-detail: #3f3c37; --iso-glass: #0e1013; display: block; overflow: visible }
.iso text { font-family: var(--mono) }
.iso-face { fill: var(--iso-body); stroke: var(--iso-line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round }
.iso-face.iso-top { fill: var(--iso-deck) }
.iso-face.iso-glass { fill: var(--iso-glass) }
.iso-detail { fill: none; stroke: var(--iso-detail); stroke-width: 1; vector-effect: non-scaling-stroke }
.iso-grid { fill: none; stroke: color-mix(in srgb, var(--cc) 14%, var(--iso-glass)); stroke-width: 1; vector-effect: non-scaling-stroke }
.iso-ink { fill: var(--iso-line) }
.iso-leaf { fill: color-mix(in srgb, var(--cc) 30%, var(--iso-glass)); stroke: var(--iso-line); stroke-width: 1; vector-effect: non-scaling-stroke }
.iso-lit { fill: var(--cc); filter: drop-shadow(0 0 3px var(--cc)) drop-shadow(0 0 8px color-mix(in srgb, var(--cc) 55%, transparent)) }
.iso-dim { fill: color-mix(in srgb, var(--cc) 22%, var(--iso-glass)) }
.iso-glow-text { fill: var(--cc); filter: drop-shadow(0 0 3px var(--cc)) }
.iso-layer { display: none; fill: color-mix(in srgb, var(--cc) 30%, var(--iso-glass)) }
.iso-layer.on { display: inline }
.iso-layer.top { fill: var(--cc); filter: drop-shadow(0 0 3px var(--cc)) drop-shadow(0 0 8px color-mix(in srgb, var(--cc) 55%, transparent)) }
.iso-floor { fill: var(--iso-deck); transition: fill .25s ease }
.iso-floor.on { fill: color-mix(in srgb, var(--cc) 18%, var(--iso-deck)) }
.iso-pane-edge { fill: none; stroke: transparent; stroke-width: 1.4; vector-effect: non-scaling-stroke }
.iso-pane.on .iso-pane-edge { stroke: var(--cc); filter: drop-shadow(0 0 3px var(--cc)) }
.iso-pane.on .iso-detail, .iso-pane.on .iso-grid { stroke: var(--cc) }
.iso-press { cursor: pointer; transition: transform 60ms ease-out }
.iso-press:hover .iso-face { stroke: color-mix(in srgb, var(--cc) 60%, var(--iso-line)) }
.iso-press.down { transform: translateY(4px) }
.iso-press.down .iso-face { stroke: var(--cc) }
[data-iso-nozzle] { transition: transform .35s ease-in-out }
[data-iso-head] { transition: transform .3s ease-out }
.iso-flash { fill: #fff6e6; filter: drop-shadow(0 0 6px #fff6e6) drop-shadow(0 0 18px var(--cc)) }

/* the plate beside a category's title */
.cat-head.has-fig { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; column-gap: 32px }
.iso-plate { margin: 0; display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px }
.iso-plate .iso { width: 100%; height: auto; max-height: 290px; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none }
.iso-plate .iso:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px }
.iso-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted) }
.iso-cap .up { text-transform: uppercase }
.iso-readout { color: var(--cc) }

/* homepage tiles: the still drawing above the name, brightening on hover */
.cat-tile.has-art { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 16px 14px }
.cat-tile .art { height: 92px; display: grid; place-items: center }
.cat-tile .art .iso { width: 100%; height: 92px }
.cat-tile .tile-row { display: flex; align-items: center; gap: 12px }
.cat-tile .tile-row small { margin-left: auto }
.cat-tile .art .iso-lit, .cat-tile .art .iso-glow-text, .cat-tile .art .iso-layer.top, .cat-tile .art .iso-pane.on { transition: opacity .3s ease }
.cat-tile:not(:hover):not(:focus-visible) .art :is(.iso-lit, .iso-glow-text, .iso-layer.top, .iso-pane.on) { opacity: .55 }

@media (max-width: 820px) {
  .cat-head.has-fig { grid-template-columns: minmax(0, 1fr) }
  .cat-head.has-fig > .iso-plate { margin-top: 12px }
  .iso-plate .iso { max-height: 240px }
}
@media (max-width: 560px) { .cat-tile .art { height: 74px } .cat-tile .art .iso { height: 74px } }
@media (prefers-reduced-motion: reduce) { .iso-press, [data-iso-nozzle], [data-iso-head], .iso-floor { transition: none } .iso-press.down { transform: none } }

/* homepage: the way into the bot garden (/bots) */
.garden-link { margin-top: 24px }
.garden-card { --cc: var(--c-3d); display: flex; align-items: center; gap: 22px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); text-decoration: none; transition: transform .25s ease, border-color .25s ease }
.garden-card:hover { transform: translateY(-3px); border-color: var(--cc) }
.garden-card .art { flex: none; width: 160px; height: 116px; display: grid; place-items: center }
.garden-card .art .iso { width: 100%; height: 116px }
.garden-card:not(:hover):not(:focus-visible) .art .iso-lit { opacity: .55 }
.garden-text { display: grid; gap: 4px; min-width: 0 }
.garden-ttl { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--gold-hi) }
.garden-sum { color: #c9c4b9; font-size: .95rem }
.garden-text small { font-family: var(--mono); font-size: .74rem; color: var(--cc) }
@media (max-width: 560px) { .garden-card { gap: 14px; padding: 12px 14px } .garden-card .art { width: 100px; height: 84px } .garden-card .art .iso { height: 84px } }
@media (prefers-reduced-motion: reduce) { .garden-card { transition: none } .garden-card:hover { transform: none } }
