/* Template detail pages (/template/<slug>/, src/components/TemplatePage.astro): a case page with a few differences.
   The listing images carry text, so the cover and the pictures are never cropped (like .cs-screen); the demo video has
   its own controls. Tokens only. */
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .cs-cover .cs-figure{aspect-ratio:auto;overflow:visible;background:none;}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) :is(.cs-cover,.cs-screen) .cs-figure img{height:auto;object-fit:contain;border-radius:var(--radius-media);outline:1px solid var(--img-outline);outline-offset:-1px;animation:none;}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-demo .cs-figure{overflow:hidden;border-radius:var(--radius-media);background:var(--night);}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-demo video{display:block;width:100%;height:auto;aspect-ratio:16 / 9;background:var(--night);}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin-top:0.5rem;}
@media(max-width:900px){
  .editorial .cs:is([data-case="template"],[data-case="plugin"]) .cs-cover .cs-figure{aspect-ratio:auto;}
  .editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;}
}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions .contact-pill{background:var(--ink);color:var(--white);}
/* the live demo is the second action: an outline pill next to the solid buy/get pill (owner 2026-11-28) */
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions .contact-pill.tp-live{background:transparent;border:1px solid var(--ink-secondary);color:var(--ink);}
.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions .contact-pill.tp-live:focus-visible{background:var(--ink)!important;border-color:var(--ink)!important;color:var(--white)!important;}
@media(hover:hover){.editorial .cs:is([data-case="template"],[data-case="plugin"]) .tp-actions .contact-pill.tp-live:hover{background:var(--ink)!important;border-color:var(--ink)!important;color:var(--white)!important;}}
