/* /v22/home/: caption under the painting + the categories list. No boxes, no card walls, no arrows.
   Geist, flat ink. Motion: opacity + transform only; hover on fine pointers only; reduced motion = short fades.
   Below 820px: 2-col icon+name grid, Philosophers as a full-width last row with a muted Free.
   820+: same card rhythm on every column (icon, name, one-line sub, three Echo names), rows on a shared baseline. */
.cats{background:var(--bg);color:var(--fg);padding:clamp(40px,7vw,96px) var(--pad) clamp(56px,8vw,120px)}
.cats h2{font-size:clamp(30px,4.2vw,56px);line-height:1.04;font-weight:600;letter-spacing:-.045em}
.cats-sub{margin:12px 0 0;font-size:17px;line-height:25px;max-width:none;opacity:.66;text-wrap:balance}
.cat-grid{display:grid;grid-template-columns:minmax(0,1fr);margin-top:32px;gap:32px}
.cat-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}
.cat-ph{min-width:0}
.cat{display:grid;grid-template-columns:auto;justify-items:start;align-content:start;row-gap:0;color:var(--fg);border-radius:14px;margin:-10px;padding:10px;transition:background-color var(--v-d1) var(--v-ease),transform var(--v-d1) var(--v-ease)}
.ci{width:44px;height:44px;color:var(--fg);display:block}
.cp{width:44px;height:44px;border-radius:50%;object-fit:cover;filter:grayscale(1);display:block;-webkit-user-drag:none;user-select:none}
.cn{margin-top:14px;font-size:20px;line-height:24px;font-weight:600;letter-spacing:-.02em}
.cl{margin-top:2px;font-size:14.5px;line-height:21px;height:21px;opacity:.66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ce{margin-top:10px;display:grid;grid-template-rows:repeat(3,20px);gap:2px;font-size:14px;line-height:20px;opacity:.86}
.ce span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:20px}
.cf{display:none}
.cat.is-press{transform:scale(.985);background:rgba(127,120,108,.1)}
.cats-ask{position:relative;margin:32px 0 0;width:100%;max-width:560px}
.cats-ask .sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cats-ask .ask-ic{position:absolute;left:14px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--mute,#6a6256);pointer-events:none}
.cats-ask input{display:block;width:100%;height:48px;border:0;border-radius:12px;background:rgba(22,19,14,.055);padding:0 52px 0 42px;box-shadow:inset 0 0 0 1px transparent;outline:0;font:inherit;font-size:16px;line-height:24px;color:var(--fg);-webkit-appearance:none;appearance:none;
 transition:box-shadow var(--v-d2) var(--v-ease),background-color var(--v-d2) var(--v-ease)}
html[data-theme=dark] .cats-ask input{background:rgba(241,237,230,.075)}
.cats-ask input::placeholder{color:var(--mute,#6a6256);opacity:1}
.cats-ask input:focus{box-shadow:inset 0 0 0 1px var(--fg)}
.cats-ask .askgo{position:absolute;right:6px;top:6px;width:36px;height:36px;border:0;border-radius:8px;background:var(--fg);color:var(--bg);opacity:0;transform:scale(.86);pointer-events:none;display:grid;place-items:center;padding:0;cursor:pointer;
 transition:opacity var(--v-d2) var(--v-ease),transform var(--v-d3) var(--v-ease)}
.cats-ask .askgo svg{width:16px;height:16px}
.cats-ask.txt .askgo{opacity:1;transform:none;pointer-events:auto}
.cats-ask .askgo.is-press,.cats-ask.txt .askgo:active{transform:scale(.93)}
@media (hover:hover) and (pointer:fine){.cat:hover{background:rgba(127,120,108,.09)}.cats-ask input:hover:not(:focus){background:color-mix(in srgb,var(--fg) 8%,transparent)}.cats-ask.txt .askgo:hover{opacity:.88}}

/* mobile extras are hidden on desktop so 820+ stays identical */
.ci-sm,.cm-num,.cm-faces,.cm-ex{display:none}

/* phones: portrait-accent grid (owner pick D). Desktop rules unchanged. */
@media (max-width:819px){
 .cats{padding:48px var(--pad) 64px}
 .cats-ask{margin:28px 0 0}
 .ci{display:none}
 .ce,.cf{display:none}
 .cat{margin:0;padding:0;border-radius:0}

 .cat-grid{margin-top:24px;gap:0}
 .cat-l{gap:0;box-shadow:0 -1px 0 rgba(var(--fgrgb),0.12)}
 .cat-l li,.cat-ph{box-shadow:0 1px 0 rgba(var(--fgrgb),0.12)}
 .cat-l li:nth-child(odd){box-shadow:inset -1px 0 0 rgba(var(--fgrgb),0.12), 0 1px 0 rgba(var(--fgrgb),0.12)}
 .cat{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-content:start;
      padding:14px 12px 14px 0}
 .cat-l li:nth-child(even) .cat{padding-left:14px;padding-right:0}
 .ci-sm{display:none}
 .cn{margin:0;font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.02em}
 .cl{display:block;margin:2px 0 0;font-size:12.5px;line-height:16px;height:auto;
      opacity:.66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .cat-l .cm-ex{display:block;margin-top:8px;font-size:12px;line-height:16px;opacity:.5}
 .cat-l .cm-ex span{display:inline}
 .cat-l .cm-ex span + span::before{content:"\00b7";margin:0 .34em}
 .cat-ph .cat{grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center;padding:14px 0}
 .cat-ph .cm-faces{display:flex;align-items:center;grid-row:1/3}
 .cat-ph .cm-faces img{width:30px;height:30px;border-radius:50%;object-fit:cover;object-position:center 20%;
      filter:grayscale(1);box-shadow:0 0 0 1.5px var(--bg);margin-left:-8px;display:block;
      -webkit-user-drag:none;user-select:none}
 .cat-ph .cm-faces img:first-child{margin-left:0}
 .cat-ph .cn{margin:0}
 .cat-ph .cl{margin:2px 0 0}
 .cat-ph .cm-ex{display:none}
}


/* 820+: every card uses the same four blocks, top-aligned, so columns share a baseline */
@media (min-width:820px){
 .cat-grid{margin-top:clamp(28px,4vw,48px);gap:clamp(28px,4vw,44px) clamp(28px,3.4vw,44px)}
 .cat-l{gap:clamp(28px,4vw,44px) clamp(28px,3.4vw,44px)}
 .cats-ask{margin:clamp(32px,4vw,52px) 0 0}
 .cf{display:none}
 /* Philosophers sits alone on the last row: centre the cell on the row (213e2e9f). */
 .cat-ph{display:flex;justify-content:center}
 .cat-ph .cat{width:max-content;max-width:100%}
}
@media (min-width:1000px){
 .cat-grid{grid-template-columns:minmax(0,3fr) minmax(0,1fr);align-items:start;column-gap:clamp(40px,5vw,72px)}
 .cat-l{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(28px,3.4vw,44px)}
 /* Right column: stretch to the topic-grid height and vertically centre the cell, as in 213e2e9f. */
 .cat-ph{min-width:0;display:flex;justify-content:flex-start;align-items:center;align-self:stretch}
 .cat-ph .cat{width:100%;justify-items:start;align-content:start}
}

@media (prefers-reduced-motion:reduce){
 .cat.is-press{transform:none}
}


/* +N more under the three names (launch roster count minus 3). Same type as the muted sub-line; part of the card link. */
.cmore{display:block;margin-top:2px;font-size:14px;line-height:20px;height:20px;opacity:.66;white-space:nowrap}
@media (max-width:819px){
 .cmore{margin-top:2px;font-size:12px;line-height:16px;height:16px;opacity:.5}
 .cat-ph .cm-faces{grid-row:1/4}
 .cat-ph .cmore{grid-column:2}
}
