/* change437 - the ONE stamp card (scanner, Digi Albums, Stamp Database, My Stamps), the head block under the
   picture on a stamp page, and the small Add It menu. Site sizes: Community uses its own type scale. */
.zf-grid,.zf-card,.zf-head,.ms-pop{--st-body:14px;--st-card:15px;--st-meta:12px;--st-label:11px}
[data-theme="community"] .zf-grid,[data-theme="community"] .zf-card,[data-theme="community"] .zf-head,[data-theme="community"] .ms-pop{--st-body:var(--cm-type-body,14px);--st-card:var(--cm-type-card,15px);--st-meta:var(--cm-type-meta,12px);--st-label:var(--cm-type-label,11px)}
.zf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;background:transparent;padding:0}
@media(min-width:760px){.zf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.zf-grid.zf-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.zf-grid.zf-row>.zf-card{flex:0 0 156px;scroll-snap-align:start}
.zf-card{position:relative;background:var(--dx-card);border:1px solid var(--dx-line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.zf-card>a{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
.zf-pic{position:relative;aspect-ratio:1/1;background:var(--dx-soft);display:grid;place-items:center;overflow:hidden;padding:8px}
.zf-pic img{max-width:100%;max-height:100%;object-fit:contain}
.zf-share{position:absolute;right:7px;top:7px;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:#18212f;box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:pointer}.zf-share svg{width:15px;height:15px}
.ms-src{position:absolute;left:7px;top:7px;background:rgba(15,22,36,.72);color:#fff;border-radius:999px;padding:3px 8px;font-size:10.5px;font-weight:700;line-height:1.3}
.zf-b{padding:9px 10px 8px;display:flex;flex-direction:column;gap:3px;flex:1}
.zf-b h3{margin:0;font-size:var(--st-card)!important;font-weight:700;line-height:1.3;color:var(--dx-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:0}
.zf-c{display:flex;align-items:center;gap:5px;margin:0;font-size:var(--st-meta);color:var(--dx-text);min-width:0}
.zf-c span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zf-c .sdb2-flag{width:18px;height:13px;border-radius:2px;object-fit:cover;flex:0 0 18px}
.zf-c .sdb2-flag-none{display:inline-grid;place-items:center;color:var(--dx-muted)}.zf-c .sdb2-flag-none svg{width:14px;height:14px}
.zf-e{margin:0;font-size:var(--st-meta);color:var(--dx-muted)}
.zf-t{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.zf-t span{background:color-mix(in srgb,var(--dx-accent) 12%,var(--dx-card));color:var(--dx-accent);border-radius:5px;padding:3px 6px;font-size:var(--st-label);line-height:1.2}
/* Community: the site's card button row; Classic looks: the site's small pills */
.zf-card .cm-card-actions{margin-top:auto}
.stc-acts .cm-card-action{font-family:inherit}
.zf-pills{display:flex;gap:6px;padding:0 10px 10px;margin-top:auto;flex-wrap:wrap}
.zf-pills .icon-pill{position:static;text-decoration:none;font-family:inherit}
.zf-pills .icon-pill em{font-style:normal}
.zf-pills .ms-add{color:var(--dx-text)}
.ms-add.active{background:var(--dx-accent)!important;color:var(--dx-on)!important;border-color:var(--dx-accent)!important}
.ms-add.active .ic,.ms-add.active em,.ms-add.active span{color:inherit!important}
/* the set under the picture on a stamp page */
.zf-head{padding:12px 14px 6px;display:flex;flex-direction:column;gap:4px}
.zf-head h2{margin:0;font-size:19px!important;font-weight:700;color:var(--dx-text);line-height:1.3}
.zf-head .zf-c{font-size:var(--st-body)}.zf-head .zf-c .sdb2-flag{width:22px;height:16px;flex-basis:22px}.zf-head .zf-e{font-size:var(--st-body)}
.zf-head .zf-pills,.zf-head .cm-card-actions{padding:8px 0 0;border:0;background:transparent;margin:0}
.zf-head .cm-card-actions{display:flex;gap:8px}
.zf-head .cm-card-action{flex:0 0 auto;padding:0 14px;border:1px solid #dbe0e8!important;border-radius:8px;min-height:38px}
.zf-head .cm-card-action.cm-follow{border-color:#0866ff!important}
/* the Add It menu: small, under the button, closes when you tap anywhere else */
.ms-pop{display:none;position:fixed;z-index:100000;min-width:160px;padding:5px;background:var(--dx-card);border:1px solid var(--dx-line);border-radius:9px;box-shadow:0 8px 24px rgba(16,24,40,.22)}
.ms-pop.open{display:block}
.ms-pop a{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;color:var(--dx-text);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.ms-pop a[hidden]{display:none}
.ms-pop a svg{width:15px;height:15px;color:var(--dx-muted)}
.ms-pop a:hover{background:var(--dx-soft)}
.ms-pop a.active{color:var(--dx-accent)}.ms-pop a.active svg{color:var(--dx-accent)}
.ms-pop a.active:after{content:"✓";margin-left:auto;font-weight:900}
.ms-toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);z-index:100001;background:#18212f;color:#fff;border-radius:10px;padding:10px 14px;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:90vw}
.ms-toast a{color:#9cc2ff;font-weight:700}
.ms-toast[hidden]{display:none}
.stc-popwrap{display:contents}
/* Stamp Database stamp page: Like and Add It under the facts */
.sp-acts{margin:12px 0 4px;background:transparent}
.sp-acts .cm-card-actions{display:flex;gap:8px;border:0;background:transparent;padding:0}
.sp-acts .cm-card-action{flex:0 0 auto;padding:0 16px;border:1px solid #dbe0e8!important;border-radius:8px;min-height:38px}
.sp-acts .cm-card-action.cm-follow{border-color:#0866ff!important}
.sp-acts .zf-pills{padding:0}
