/* Pinned posts (2026-11-21, article-pins.js): slots in the free margins left and right of the feed, a pin button on every card, a reading layer in the fit-to-height layout. */
.card-stamp .pin{display:inline-flex;align-items:center;justify-content:center;position:static;width:25px;height:25px;min-width:25px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--metadata);flex-shrink:0;box-shadow:none;cursor:pointer}
.card-stamp .pin svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card-stamp .pin:hover,.card-stamp .pin[aria-pressed=true]{color:var(--accent-text,var(--accent));background:var(--tint-strong)}
.card-stamp .pin[aria-pressed=true] svg{fill:currentColor}
/* windows without rails keep the pin button: pins-drawer.css lists the pinned posts (Release C, 2026-11-21) */

.pin-rail{display:none;position:fixed;top:var(--pin-top,96px);bottom:var(--pin-bottom,84px);width:var(--pin-rail-w,0);flex-direction:column;gap:8px;z-index:32;pointer-events:none}
:root[data-pin-rails=on] .pin-rail{display:flex}
.pin-slot.pin-slot-hidden{display:none} /* not enough room between the frozen header and the footer (2026-11-23) */
.pin-rail[data-side=left]{left:var(--pin-left-x,0)}
.pin-rail[data-side=right]{left:var(--pin-right-x,0)}
/* the cards' corners (square in most styles), at most 10 px on the small pins (2026-11-22); set on the rails and the Pins list, not on :root: the styles set --radius on body */
.pin-rail,.pin-drawer-wrap{--pin-radius:min(var(--radius,0px),10px)}
.pin-slot{position:relative;flex:0 0 var(--pin-slot-h,84px);height:var(--pin-slot-h,84px);border-radius:var(--pin-radius);pointer-events:none;transition:background .15s,outline-color .15s}
.pin-slot.pin-filled{pointer-events:auto}
/* while a pin is dragged every slot shows itself, a little lighter, so the user sees where it fits */
:root.pin-dragging .pin-slot{pointer-events:auto;background:color-mix(in srgb,var(--ink) 7%,transparent);outline:1px dashed color-mix(in srgb,var(--ink) 22%,transparent);outline-offset:-1px}
:root.pin-dragging .pin-slot.pin-over{background:color-mix(in srgb,var(--accent-text,var(--accent)) 16%,transparent);outline-color:var(--accent-text,var(--accent))}
.pin-item{position:absolute;inset:0;display:flex;flex-direction:column;gap:4px;padding:7px 9px 7px 10px;overflow:hidden;border:0;border-radius:var(--pin-radius);background:var(--surface);color:var(--ink);cursor:pointer;user-select:none;box-shadow:none} /* no frame (2026-11-23) */
.pin-item:hover,.pin-item:focus-visible{background:var(--surface-2,var(--surface));outline:none}
.pin-item:has(>.pin-media){border:0} /* pins-stage.css draws the frame over the picture */
.pin-item[draggable=true]:active{cursor:grabbing}
.pin-meta{display:flex;flex:0 0 auto;align-items:center;gap:6px;min-width:0;min-height:20px;padding-right:22px;font-size:9px;line-height:1.3;color:var(--metadata,var(--muted));text-transform:none}
.pin-kind{display:inline-flex;flex-shrink:0;color:var(--pin-type,var(--kind-color,var(--accent)))}
.pin-kind svg{width:13px;height:13px}
.pin-category{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pin-title{flex:1 1 0;min-height:0;margin:0;font-size:12px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--pin-lines,3);line-clamp:var(--pin-lines,3);overflow:hidden;overflow-wrap:anywhere}
.pin-remove{position:absolute;top:6px;right:6px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.pin-remove:hover,.pin-remove:focus-visible{background:var(--tint-strong);color:var(--accent-text,var(--accent));outline:none}
.pin-remove svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.pin-reader[hidden]{display:none}
.pin-reader{position:fixed;inset:0;z-index:30}
.pin-reader-backdrop{position:absolute;inset:0;background:color-mix(in srgb,var(--bg) 62%,transparent);backdrop-filter:blur(2px)}
.pin-reader-panel{position:fixed;z-index:31}
.pin-reader-body .news-card.pin-article{margin:0;animation:none}
.pin-reader-body .news-card.pin-article .card-surface{background:var(--surface)}
.pin-reader-body .pin-article .card-topline{padding-right:38px}
.pin-reader-body .pin-article .bookmark{display:none}
.pin-reader-close{position:absolute;top:10px;right:10px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);cursor:pointer}
.pin-reader-close:hover,.pin-reader-close:focus-visible{border-color:var(--accent-text,var(--accent));color:var(--accent-text,var(--accent));outline:none}
.pin-reader-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media(prefers-reduced-motion:reduce){.pin-slot{transition:none}}
