/* Social feed plugin — structural styles. Colours come from the active theme's tokens. */
.sf-feed {
    --sf-primary: var(--color-theme-primary, var(--theme-primary, #4f46e5));
    --sf-text: var(--color-theme-text, var(--theme-text, #18181b));
    --sf-muted: var(--color-theme-muted, var(--theme-text-muted, #71717a));
    --sf-border: var(--color-theme-border, var(--theme-border, #e4e4e7));
    --sf-surface: var(--color-theme-surface, var(--theme-surface, #fff));
    margin: 2rem auto; color: var(--sf-text);
}
.sf-feed * { box-sizing: border-box; }
.sf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.sf-title { margin: 0; font-family: var(--font-title, inherit); font-size: 1.5rem; font-weight: 600; }
.sf-follow { color: var(--sf-primary); font-weight: 600; text-decoration: none; }
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .sf-grid { grid-template-columns: repeat(var(--sf-columns, 4), minmax(0, 1fr)); } }
.sf-tile { position: relative; padding: 0; border: 0; border-radius: .6rem; overflow: hidden; aspect-ratio: 1; background: var(--sf-border); cursor: pointer; }
.sf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sf-tile:hover img { transform: scale(1.05); }
.sf-tag-count { position: absolute; right: .5rem; bottom: .5rem; display: flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #111; font-size: .75rem; font-weight: 700; }
.sf-dialog { width: min(60rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 1rem; background: var(--sf-surface); color: var(--sf-text); }
.sf-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.sf-panel { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sf-panel { grid-template-columns: 3fr 2fr; } }
.sf-photo { position: relative; background: #000; }
.sf-photo img { display: block; width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.sf-dot { position: absolute; display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.sf-side { position: relative; padding: 1.5rem; overflow-y: auto; max-height: 80vh; }
.sf-close { position: absolute; top: .5rem; right: .75rem; border: 0; background: none; color: var(--sf-muted); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.sf-subtitle { margin: 0 0 .75rem; font-weight: 600; }
.sf-products { margin: 0 0 1rem; padding: 0; list-style: none; }
.sf-products a { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--sf-border); color: inherit; text-decoration: none; font-size: .875rem; }
.sf-products img { width: 3.25rem; height: 3.25rem; border-radius: .5rem; object-fit: cover; }
.sf-products strong { display: block; }
.sf-price { color: var(--sf-primary); font-weight: 600; }
.sf-caption { margin: 0 0 1rem; color: var(--sf-muted); font-size: .875rem; line-height: 1.55; white-space: pre-line; }
.sf-link { color: var(--sf-primary); font-size: .875rem; font-weight: 600; }
