/* Run 3 components: "מאמרים נוספים" (single posts) + /projects/ overview + archive banner.
 * Colours come from the theme tokens, so light (ts-light-dark.css overlay) and dark (app.css base) both work.
 * --text-orange (AA on white) only exists in light mode; dark falls back to --brand-orange. */
.ts-lp{margin:5rem auto 0;max-width:72rem}
.ts-lp-in{border-top:1px solid var(--border);padding-top:3rem}
.ts-lp-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}
.ts-lp-head h2{font-size:1.75rem;font-weight:900;line-height:1.2;margin:0}
.ts-lp-all,.ts-pj-foot a,.ts-pj-banner a{color:var(--text-orange,var(--brand-orange));font-weight:700;text-decoration:none}
.ts-lp-all:hover,.ts-pj-foot a:hover,.ts-pj-banner a:hover{text-decoration:underline}
.ts-lp-grid,.ts-pj-grid,.ts-lp-list{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
.ts-lp-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.ts-pj-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.ts-lp-card,.ts-pj-card{display:flex;flex-direction:column;height:100%;background:var(--card);color:var(--foreground);
  border:1px solid var(--border);border-radius:18px;overflow:hidden;text-decoration:none;
  box-shadow:0 8px 30px rgba(29,31,36,.08);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
[data-theme="dark"] .ts-lp-card,[data-theme="dark"] .ts-pj-card,[data-theme="dark"] .ts-lp-mini{box-shadow:0 8px 30px rgba(0,0,0,.35)}
.ts-lp-card:hover,.ts-pj-card:hover{transform:translateY(-4px);border-color:color-mix(in oklab,var(--brand-orange) 55%,transparent)}
.ts-lp-card:focus-visible,.ts-pj-card:focus-visible,.ts-lp-mini:focus-visible,.ts-pj-chips a:focus-visible,.ts-lp-more summary:focus-visible{outline:3px solid var(--brand-orange);outline-offset:3px}
.ts-lp-im,.ts-pj-im{position:relative;display:block;aspect-ratio:16/10;background:var(--surface);overflow:hidden}
.ts-lp-im img,.ts-pj-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s ease}
.ts-lp-card:hover img,.ts-pj-card:hover img{transform:scale(1.05)}
.ts-lp-b,.ts-pj-b{display:flex;flex-direction:column;gap:.35rem;padding:1rem 1.1rem 1.15rem;flex:1}
.ts-lp-b time,.ts-lp-mini time{font-size:.8rem;color:var(--muted-foreground)}
.ts-lp-b h3,.ts-pj-b h2{font-size:1.05rem;font-weight:800;line-height:1.4;margin:0}
.ts-lp-go,.ts-pj-go{margin-top:auto;padding-top:.4rem;font-size:.875rem;font-weight:700;color:var(--text-orange,var(--brand-orange))}
.ts-lp-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:.75rem;margin-top:1.25rem}
.ts-lp-mini{display:flex;flex-direction:column;justify-content:space-between;gap:.4rem;height:100%;padding:.85rem 1rem;border:1px solid var(--border);
  border-radius:14px;background:var(--card);color:var(--foreground);text-decoration:none;font-weight:600;font-size:.92rem;line-height:1.45;transition:border-color .2s}
.ts-lp-mini:hover{border-color:color-mix(in oklab,var(--brand-orange) 55%,transparent)}
.ts-lp-mini:hover .ts-lp-mini-t{color:var(--text-orange,var(--brand-orange))}
.ts-lp-more{margin-top:1.25rem}
.ts-lp-more summary{cursor:pointer;display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.2rem;border-radius:999px;
  border:1px solid var(--border);background:var(--surface);color:var(--foreground);font-weight:700;list-style:none}
.ts-lp-more summary::-webkit-details-marker{display:none}
.ts-lp-more summary::after{content:"▾";transition:transform .2s}
.ts-lp-more[open] summary::after{transform:rotate(180deg)}
/* projects overview */
.ts-pj-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:0 0 1rem}
.ts-pj-chips a{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem 1rem;border-radius:999px;border:1px solid var(--border);
  background:var(--card);color:var(--foreground);text-decoration:none;font-size:.9rem;font-weight:600;transition:all .2s}
.ts-pj-chips a span{font-size:.75rem;opacity:.75}
.ts-pj-chips a:hover{border-color:var(--brand-orange)}
.ts-pj-chips a[aria-pressed="true"]{background:var(--btn-fill-start,#C81E12);border-color:transparent;color:#fff}
.ts-pj-chips a[aria-pressed="true"] span{opacity:1}
.ts-pj-count{text-align:center;color:var(--muted-foreground);font-size:.9rem;margin:0 0 1.5rem}
.ts-pj-size{position:absolute;bottom:.6rem;inset-inline-start:.6rem;padding:.25rem .65rem;border-radius:999px;background:rgba(18,19,22,.82);
  color:#fff;font-size:.8rem;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(4px)}
.ts-pj-sub{font-size:.78rem;font-weight:700;color:var(--text-sand,var(--brand-sand))}
.ts-pj-grid>li[hidden]{display:none}
.ts-pj-foot{margin:3rem auto 0;max-width:48rem;text-align:center;color:var(--muted-foreground);font-size:.95rem;line-height:1.8}
.ts-pj-banner{text-align:center;margin:0 0 1.25rem}
@media (prefers-reduced-motion:reduce){.ts-lp-card,.ts-pj-card,.ts-lp-im img,.ts-pj-im img{transition:none}.ts-lp-card:hover,.ts-pj-card:hover{transform:none}.ts-lp-card:hover img,.ts-pj-card:hover img{transform:none}}
