/* Community A (148, JP 16 nov 2026): pastillas que filtran en la misma pagina + listas de cada pastilla + iconos de arriba al margen.
   Mismas medidas en curadores, DJs y personas. Reglas: claude/reglas-de-diseno.md (filas 15/600 + 12/500, etiqueta 12 violeta). */
.cma-pills{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 0 4px;margin:4px 0 2px;scroll-padding:0 16px}
.cma-pills::-webkit-scrollbar{display:none}
.cma-pills a{flex:none;display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:99px;background:#f1f1f5;color:#3a3a40 !important;font:600 15px Montserrat,-apple-system,sans-serif;text-decoration:none !important;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}
.cma-pills a:hover{background:#e6e6ec}
.cma-pills a.on,.cma-pills a[aria-selected="true"]{background:#111;color:#fff !important}
@media (max-width:550px){.cma-pills{margin:4px -16px 2px;padding:2px 16px 4px}.cma-pills a{height:42px;padding:0 18px;font-size:14.5px}}
/* iconos de arriba: dibujo de 24 px, zona de 44, la orilla del dibujo al ras del margen */
.cma-acts{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:-14px}
.cma-act{width:44px;height:44px;display:grid;place-items:center;color:#111 !important;border-radius:8px;-webkit-tap-highlight-color:transparent}
.cma-act:hover{background:#f4f4f7}
.cma-act svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* 149: los iconos no agrandan el encabezado (el titulo tiene alto 0): asi el titulo queda a 32 / 50 px y las pastillas donde estaban */
#posts .page_header_options{min-width:0 !important;width:auto !important;margin-left:auto !important;padding:0 !important;height:0 !important;overflow:visible}
#posts .page_header_options .cma-acts{height:0}
/* listas */
.cma-view[hidden],.cma-all[hidden]{display:none !important}
.cma-list{display:flex;flex-direction:column;padding:4px 0 120px;max-width:760px}
.cma-row,.cma-pl{display:flex;align-items:center;gap:14px;padding:10px 0;color:#111 !important;text-decoration:none !important;min-width:0;-webkit-tap-highlight-color:transparent}
.cma-th{flex:none;width:64px;height:64px;border-radius:5px;overflow:hidden;background:#ededf2;display:grid;place-items:center}
.cma-th.r{border-radius:50%}
.cma-th img{width:100%;height:100%;object-fit:cover;display:block}
.cma-th.t svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cma-tx{display:flex;flex-direction:column;min-width:0;flex:1}
.cma-tx b{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:#111;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cma-tx small{font-size:12px;font-weight:500;color:#6b6b73;line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cma-tx small.cma-k{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#6a6cc6;margin:0 0 2px}
.cma-pr{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f1f1f4}
.cma-pl{flex:1}
.cma-av{flex:none;width:52px !important;height:52px !important;border-radius:50% !important;background-color:#ededf2;background-size:cover;background-position:center;display:grid;place-items:center;font:600 16px Montserrat,sans-serif;color:#fff}
.cma-fol{flex:none;height:36px;padding:0 16px;border:0;border-radius:99px;background:#111;color:#fff;font:600 13px Montserrat,-apple-system,sans-serif;cursor:pointer}
.cma-fol[aria-pressed="true"]{background:#f1f1f5;color:#111}
.cma-go svg{width:20px;height:20px;fill:none;stroke:#b4b4bd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
.cma-sub{font-size:22px;font-weight:600;letter-spacing:-.02em;margin:24px 0 6px;color:#111}
.cma-empty{padding:48px 0;text-align:center;color:#6b6b73}
.cma-empty b{display:block;color:#111;font-size:16px;font-weight:600;margin-bottom:4px}
.cma-empty small{font-size:13.5px}
.cma-wait{height:3px;margin:8px 0;border-radius:3px;background:linear-gradient(90deg,#eceefc 0%,#a9abeb 50%,#eceefc 100%);background-size:200% 100%;animation:cma-w 1s linear infinite}
@keyframes cma-w{to{background-position:-200% 0}}
@media (min-width:768px){.cma-list{padding-top:8px}.cma-sub{font-size:21.6px}}
/* computadora: 2 columnas */
@media (min-width:992px){.cma-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;max-width:none;align-content:start}.cma-list>.cma-sub,.cma-list>.cma-empty{grid-column:1/-1}}
@media (prefers-reduced-motion:reduce){.cma-wait{animation:none}}
/* personas: el calendario sin circulo, igual que los iconos de curadores y DJs */
.pp-cm .pp-top .cma-acts{margin-right:-14px}
/* curadores y DJs: la lista con los mismos margenes que el titulo (75 / 50 / 40 / 16) */
#posts .cma-view{padding:0 75px}
@media (max-width:992px){#posts .cma-view{padding:0 50px}}
@media (max-width:767px){#posts .cma-view{padding:0 40px}}
@media (max-width:550px){#posts .cma-view{padding:0 16px}}
/* 149 (JP): mismo aire entre las pastillas y lo primero de abajo en All y en cada pastilla: 16 px en telefono, 20 px desde 551 */
.cma-list{padding-top:0 !important}
.cma-list>.cma-row:first-child,.cma-list>.cma-pr:first-child>.cma-pl{padding-top:0}
.cma-list>.cma-sub:first-child{margin-top:2px}
#posts .page_header{padding-bottom:14px !important}
@media (max-width:550px){#posts .page_header{padding-bottom:10px !important}}
.pp-cm .cma-view{padding-top:14px}
/* 150 (JP eligio A y sus medidas): portada 60 px esquinas 4 · 12 px a la derecha · nombre 15/500 en 1 renglon ·
   descripcion 12/500 gris en 1 renglon · 10 px arriba y abajo de cada fila · sin rayas entre filas · personas: foto redonda 52 */
.cma-row,.cma-pl{gap:12px;padding:10px 0 !important;align-items:center}
.cma-list>.cma-row:first-child,.cma-list>.cma-pr:first-child>.cma-pl{padding-top:0 !important}
.cma-th{width:60px;height:60px;border-radius:4px}
.cma-th.r{border-radius:50%}
.cma-tx b{font-size:15px;font-weight:500;line-height:1.3;-webkit-line-clamp:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cma-tx small{font-size:12px;font-weight:500;color:#6b6b73;margin-top:3px}
.cma-pr{border-bottom:0}
.cma-av{width:52px !important;height:52px !important}
@media (min-width:992px){.cma-list{column-gap:48px}.cma-list>.cma-row:nth-child(2),.cma-list>.cma-pr:nth-child(2)>.cma-pl{padding-top:0 !important}}
/* 151 (JP): nombre 16 px / 550; el renglon gris es el autor */
.cma-tx b{font-size:16px;font-weight:550;line-height:1.3}
/* 152 (JP): autor 13 px / 500 y 8 px arriba y abajo de cada fila (nombre 16 / 550 y 3 px entre nombre y autor sin cambio) */
.cma-row .cma-tx small{font-size:13px;font-weight:500}      /* personas siguen en 12 (asi cabe "Curator · Mexico · 24 followers" junto a Follow) */
.cma-row,.cma-pl{padding:8px 0 !important}
.cma-list>.cma-row:first-child,.cma-list>.cma-pr:first-child>.cma-pl{padding-top:0 !important}
@media (min-width:992px){.cma-list>.cma-row:nth-child(2),.cma-list>.cma-pr:nth-child(2)>.cma-pl{padding-top:0 !important}}
/* 153 (JP): portada 64 px (esquinas 4) y nombre con letras a -0.02em */
.cma-th{width:64px;height:64px}
.cma-tx b{letter-spacing:-.02em}


/* 317 · Big / Small in every pill list (JP: Big 1 "like the old curator cards", switch A without the pill, violet when on, a bit heavier).
   #cma-view = Big (default) · #cma-view.vs = Small (the list as before). Rule 1 text in both: 15/600 + 13/400 grey, 3px. */
.cma-tb{display:flex;align-items:center;justify-content:space-between;margin:10px 0 6px}
.cma-tb>span:first-child{font-size:13px;font-weight:400;color:#6b6b73}
.cma-vw{display:inline-flex;gap:6px;margin-right:-5px}
.cma-vw button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;background:none;color:#8e8e96;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cma-vw svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#cma-view:not(.vs) .cma-vw [data-v='big'],#cma-view.vs .cma-vw [data-v='small']{color:#6a6cc6}
#cma-view:not(.vs) .cma-vw [data-v='big'] svg,#cma-view.vs .cma-vw [data-v='small'] svg{stroke-width:1.7}
.cma-vw button:focus-visible{outline:2px solid #6a6cc6;outline-offset:2px;border-radius:5px}
.cma-tx small{font-size:13px !important;font-weight:400 !important;line-height:1.3 !important;margin-top:3px !important}
.cma-g,.cma-ra,.cma-ph{display:none}
/* Big */
#cma-view:not(.vs) .cma-list{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;max-width:none}
@media (min-width:768px){#cma-view:not(.vs) .cma-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}}
@media (min-width:1200px){#cma-view:not(.vs) .cma-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
#cma-view:not(.vs) .cma-list>.cma-sub,#cma-view:not(.vs) .cma-list>.cma-empty{grid-column:1/-1;margin-bottom:0}
#cma-view:not(.vs) .cma-row{display:grid !important;grid-template-columns:34px minmax(0,1fr);column-gap:12px;row-gap:12px;align-items:start;padding:0 !important}
#cma-view:not(.vs) .cma-row .cma-th{grid-column:1/-1;width:100%;height:auto;aspect-ratio:16/10;border-radius:8px}
#cma-view:not(.vs) .cma-row .cma-th.t svg{width:40px;height:40px}
#cma-view:not(.vs) .cma-ra{display:grid;width:34px;height:34px;font-size:13px}
#cma-view:not(.vs) .cma-row .cma-w{display:none}
#cma-view:not(.vs) .cma-row .cma-g{display:block}
#cma-view:not(.vs) .cma-pr{display:block;position:relative}
#cma-view:not(.vs) .cma-pl{display:block;padding:0 !important}
#cma-view:not(.vs) .cma-pl .cma-av,#cma-view:not(.vs) .cma-go{display:none}
#cma-view:not(.vs) .cma-ph{display:grid;place-items:center;width:100%;aspect-ratio:16/10;border-radius:8px;background:#ededf2 center 30%/cover no-repeat;color:#fff;font:600 30px Montserrat,sans-serif;margin-bottom:12px}
#cma-view:not(.vs) .cma-pr:has(.cma-fol) .cma-tx{padding-right:110px}      /* room for Follow (people only) */
#cma-view:not(.vs) .cma-fol{position:absolute;right:0;bottom:2px}
.cma-tx b{font-size:15px !important;font-weight:600 !important}      /* 317: names 15/600 like the All page (was 16/550) */

/* 319 · big screens (1100+): JP chose layout 2 "Library + preview" (like Spotify): menu left · list middle · preview right.
   Phones and tablets keep the pills and the page as before. Menu = no counts (the line above each list says how many). */
.cmd-nav,.cmd-pv{display:none}
@media (min-width:1100px){
    .cmm-page .cma-pills{display:none}
    .cmd{display:grid;grid-template-columns:184px minmax(0,1fr) 320px;gap:40px;align-items:start;margin-top:8px}
    .cmm-page .cmd-nav{display:flex !important;flex-direction:column;gap:2px;position:sticky;top:24px}      /* !important: the curator and DJ headers hide every <nav> */
    .cmm-page .cmd-nav{margin:0 !important;padding:0 !important;list-style:none}
    .cmd-nav a{display:block;padding:10px 14px;border-radius:8px;font:500 15px Montserrat,-apple-system,sans-serif;color:#55555d !important;text-decoration:none !important;-webkit-tap-highlight-color:transparent}
    .cmd-nav a:hover{background:#f6f6f8;color:#111 !important}
    .cmd-nav a.on{background:#f1f1f5;color:#111 !important;font-weight:600}
    .cmd-nav a:focus-visible{outline:2px solid #6a6cc6;outline-offset:2px}
    .cmd-c{min-width:0}
    .cmd-c .cma-tb{margin-top:0}
    /* 319b (JP: "the preview should go down as the user goes down"): sticky needs no scroll box above it; #pp and, on curator / DJ pages,
       <body> had overflow-x:hidden (= a scroll box) → clip (cuts the same, but is not a scroll box) */
    html body:has(.cmm-page),.cmm-page{overflow-x:clip !important}
    .cmd-pv{display:block;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:none;border:1px solid #ececef;border-radius:8px;padding:16px;min-height:120px}
    .cmd-pv::-webkit-scrollbar{display:none}
    .cmd-pv.pvin>*{animation:cmd-in .2s ease-out}
    .cmd-pv:empty{display:none}
    .cmd-cv{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:5px;background:#ededf2;color:#fff;font:600 40px Montserrat,sans-serif;text-decoration:none !important}
    .cmd-cv.r{border-radius:50%;width:78%;margin:0 auto}
    .cmd-k{display:block;margin-top:14px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6a6cc6}
    .cmd-pv h2{margin:6px 0 0 !important;font:600 20px/1.25 Montserrat,sans-serif !important;letter-spacing:-.02em;color:#111;overflow-wrap:anywhere}
    .cmd-pv small{display:block;margin-top:3px;font-size:13px;font-weight:400;line-height:1.3;color:#6b6b73}
    .cmd-pv h2+small{margin-top:6px}
    .cmd-pv p{margin:12px 0 0;font-size:14px;line-height:1.55;color:#4a4a52}
    .cmd-bt{display:flex;gap:8px;margin-top:16px}
    .cmd-bt>*{flex:1;display:grid;place-items:center;height:42px;padding:0 12px;border:0;border-radius:99px;font:600 14px Montserrat,-apple-system,sans-serif;cursor:pointer;text-decoration:none !important;-webkit-tap-highlight-color:transparent}
    .cmd-bt .dark{background:#111;color:#fff !important}
    .cmd-bt .light{background:#f1f1f5;color:#111 !important}
    /* 321 (JP chose A "soft grey tile", like Spotify's picked row): a light grey area behind the picked card, no frame */
    .cmd .cma-row,.cmd .cma-pr,.cmd .pp-sq,.cmd .pp-nr,.cmd .pp-hero{transition:background-color .2s,box-shadow .2s}
    .cmd .cmd-on{background:#f4f4f7;box-shadow:0 0 0 12px #f4f4f7;border-radius:8px}
    .cmd #cma-view.vs .cmd-on,.cmd .pp-nr.cmd-on{box-shadow:0 0 0 6px #f4f4f7}
    /* the middle column: Big = 3 per row; All = the magazine with grids instead of sideways rows (NN/g, Roselli) */
    .cmd #cma-view:not(.vs) .cma-list{grid-template-columns:repeat(3,minmax(0,1fr))}
    .cmd .cmm .pp-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
    .cmd .cmm .pp-sq,.cmd .cmm .pp-sq-cv{width:auto}
    .cmd .cmm .pp-sq-cv{height:auto;aspect-ratio:1}
    .cmd .cmm .pp-rail>.pp-sq:nth-child(n+9){display:none}
    .cmd .cmm .pp-hero{height:auto;aspect-ratio:2/1;margin-top:0}
    .cmd .cmm .pp-h2row:first-of-type{margin-top:28px}
}

@keyframes cmd-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cmd-pv.pvin>*{animation:none}}
/* 430: with the wider Community edge (50 px from 551) the pills scroll from screen edge to screen edge, like the rails, instead of being cut 50 px early */
@media (min-width:551px) and (max-width:1099px){.pp-cm .cma-pills{margin-left:calc(-1 * var(--side));margin-right:calc(-1 * var(--side));padding-left:var(--side);padding-right:var(--side)}}
