/* ==========================================================================
   Al-Manara site — the archive list (the archive page and the home page).
   A small cover image beside an event, and the filter chips above the list.
   ========================================================================== */

/* a cover image beside the event, from the build (assets/thumbs/); an event without one keeps its plain row */
.archive .t:has(> .th){display:flex;gap:12px;align-items:flex-start}
.archive .t .tx{flex:1;min-width:0}
.archive .th{order:2;flex:none;width:56px;height:56px;border-radius:8px;overflow:hidden;background:var(--surface);display:block}
.archive .th img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s}
.archive .th img.ld{opacity:1}

/* filter chips: one tap shows one kind of event */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(var(--gutter) * -1) 18px;padding:2px var(--gutter) 4px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:44px;padding:8px 16px;border:1.5px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:500 15px/1.2 var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,color .15s,border-color .15s}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
@keyframes flt-in{from{opacity:.3;transform:translateY(6px)}}
.archive.flt li{animation:flt-in .28s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion:reduce){.archive.flt li{animation:none}.archive .th img{transition:none}}

/* the site a post is on: its mark in its own colour, on a rounded square */
.pf{flex:none;width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:var(--ink)}
.pf svg{width:26px;height:26px;display:block}
.pf-ig{background:linear-gradient(45deg,#F58529 0%,#DD2A7B 45%,#8134AF 75%,#515BD4 100%)}
.pf-fb{background:#1877F2}
.pf-tg{background:#229ED9}
.pf-x{background:#000}
.pf-in{background:#0A66C2}
.pf-yt{background:#FF0000}
.pf-tt{background:#111}
.pf-web{background:var(--ink)}
.pf-col{background:#fff;border:1px solid var(--line)}
.pf-col img{width:32px;height:32px;object-fit:contain}

/* the site a post is on, as a small tile on the corner of the publisher's logo */
.pfw{position:relative;flex:none;display:block;width:44px;height:44px}
.pf-sm{position:absolute;inset-inline-end:-10px;bottom:-10px;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;border:2px solid var(--card);box-shadow:0 1px 4px rgba(29,29,27,.25)}
.pf-sm svg{width:17px;height:17px;display:block}
.pf-team{background:#fff;border:1px solid var(--line)}
.pf-team svg{width:20px;height:36px}
