/* 258: the ready showcase sheet (public/private/showcase.js; picture docs/design/sketches/258-picture.md, option B).
   Built on 694's .pmsheet. Rules carry .scsheet so .privscreen's button reset doesn't win. Logical sides for Arabic. */
.scsheet { padding-bottom: 0; overscroll-behavior: contain; gap: 0; }
.scsheet .sc-body { display: flex; flex-direction: column; gap: var(--s-3); padding-bottom: var(--s-3); }
.scsheet .sc-x { min-height: var(--tap); padding: 0 var(--s-2); color: var(--accent); font: 700 var(--t-body)/1 var(--ui); background: none; flex: none; }
.scsheet .sc-bigw { position: relative; }
.scsheet .sc-big { position: relative; display: block; width: 100%; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 3 / 2; }
.scsheet .sc-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scsheet .sc-cover { position: absolute; inset-inline-start: var(--s-2); bottom: var(--s-2); padding: 3px var(--s-2); border-radius: 999px; background: var(--badge); color: var(--badge-ink); font: 700 var(--t-small)/1.3 var(--ui); }
.scsheet .sc-fullic { position: absolute; inset-inline-end: var(--s-2); bottom: var(--s-2); width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; background: var(--badge); color: var(--badge-ink); }
.scsheet .sc-add { min-height: 2.5rem; padding: 0 var(--s-3); border-radius: 999px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 var(--line-w) var(--line); font: 700 var(--t-small)/1 var(--ui); }
.scsheet .sc-add.big { position: absolute; inset-inline-start: var(--s-2); top: var(--s-2); }
/* the series row: sideways, 104 px tiles (124 Large & clear, 80 on a computer); the ring is its own 44 px target (56) */
.scsheet .sc-row { --tile: 6.5rem; display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: var(--s-2); contain: content; scrollbar-width: none; }
.scsheet .sc-row::-webkit-scrollbar { display: none; }
[data-theme="large"] .scsheet .sc-row { --tile: 7.75rem; }
.scsheet .sc-t { position: relative; flex: none; width: var(--tile); scroll-snap-align: start; }
.scsheet .sc-tile { display: block; width: var(--tile); height: var(--tile); padding: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.scsheet .sc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scsheet .sc-t:not(.in) .sc-tile img { opacity: .55; }
.scsheet .sc-t.in .sc-tile { box-shadow: inset 0 0 0 3px var(--sel); }
.scsheet .sc-t.cur::after { content: ""; position: absolute; inset-inline: 25%; bottom: calc(-1 * var(--s-2) + 2px); height: 3px; border-radius: 999px; background: var(--ink); }
.scsheet .sc-ring { position: absolute; top: 0; inset-inline-end: 0; width: var(--tap); height: var(--tap); padding: 0; display: grid; place-items: center; background: none; }
.scsheet .sc-ring i { width: 1.625rem; height: 1.625rem; border-radius: 50%; display: grid; place-items: center; background: var(--photo-shade); box-shadow: inset 0 0 0 2px var(--on-photo), 0 0 0 1px var(--photo-shade); color: transparent; }
.scsheet .sc-ring[aria-checked="true"] i { background: var(--sel); color: var(--sel-ink); }
.scsheet .sc-ring svg.i { width: 1rem; height: 1rem; stroke-width: 3.4; }
[data-theme="large"] .scsheet .sc-t .sc-add { position: absolute; inset-inline: var(--s-1); bottom: var(--s-1); }
.scsheet .sc-t:not(.in) .sc-add { display: none; }
[data-theme="large"] .scsheet .sc-t:not(.in) .sc-add { display: block; }
/* the series' title, place and the link to it on his gallery */
.scsheet .sc-meta h3 { margin: 0 0 var(--s-1); font: 700 var(--t-lead)/1.25 var(--ui); }
.scsheet .sc-meta p { margin: 0; display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); min-height: 1.75rem; overflow-wrap: anywhere; }
.scsheet .sc-meta a { color: inherit; text-decoration: none; }
.scsheet .sc-meta svg.i { width: var(--icon-sm, 1.125rem); height: var(--icon-sm, 1.125rem); flex: none; }
/* one row per place it goes */
.scsheet .sc-nets { display: flex; flex-direction: column; gap: var(--s-2); }
.scsheet .sc-net { border-radius: var(--r); background: var(--surface); }
.scsheet .sc-net > .sc-nb, .scsheet .sc-net > .sc-nt { width: 100%; }
.scsheet .sc-nb, .scsheet .sc-mine { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); text-align: start; color: var(--ink); min-height: var(--btn); box-sizing: border-box; }
.scsheet .sc-nb { background: none; }
.scsheet .sc-goes .nb { white-space: nowrap; }
.scsheet .sc-badge { width: 2.25rem; height: 2.25rem; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 var(--t-body)/1 var(--ui); }
.scsheet .sc-nt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.scsheet .sc-nt b { font: 650 var(--t-body)/1.2 var(--ui); }
.scsheet .sc-nt small { color: var(--muted); font: 500 var(--t-small)/1.25 var(--ui); }
.scsheet .sc-strip { display: flex; gap: 3px; margin-top: 4px; }
.scsheet .sc-strip img { width: 1.75rem; height: 1.75rem; border-radius: var(--r-sm); object-fit: cover; }
.scsheet .sc-chev { flex: none; color: var(--muted); transition: transform .2s; }
.scsheet .sc-net.open .sc-chev { transform: rotate(180deg); }
.scsheet .sc-words { margin: 0; padding: 0 var(--s-3) var(--s-3); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
/* the pinned foot: a solid top edge so nothing peeks out under it; Post and Share above the home bar */
.scsheet .sc-foot { position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: var(--s-2); margin-inline: calc(-1 * var(--edge)); padding: var(--s-2) var(--edge) calc(var(--s-3) + var(--safe-b)); background: var(--bg); border-top: var(--line-w, 1px) solid var(--line); }
.scsheet .sc-goes { margin: 0; display: flex; align-items: center; gap: var(--s-2); font: 600 var(--t-small)/1.3 var(--ui); color: var(--ink); }
.scsheet .sc-goes svg.i { width: var(--icon-sm, 1.125rem); height: var(--icon-sm, 1.125rem); flex: none; }
[dir="rtl"] .scsheet .sc-goes svg.i { transform: scaleX(-1); }
.scsheet .sc-post { min-height: 3.5rem; font-size: var(--t-lead); }
.scsheet .sc-post[disabled] { opacity: .6; }
.scsheet .sc-share { flex-direction: column; gap: 2px; min-height: var(--btn); padding: var(--s-2); }
.scsheet .sc-share small { text-wrap: balance; font: 500 var(--t-small)/1.25 var(--ui); color: var(--muted); }
.toast .sc-see, .toast.sc-ready button { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--s-3); color: inherit; font-weight: 700; text-decoration: underline; }
.sc-fullv { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--ink); }
.sc-fullv::backdrop { background: var(--ink); }
.sc-fullv img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 800px) {
  .scsheet { inset: 0; margin: auto; max-width: 35rem; max-height: 90dvh; border-radius: 1.125rem; }
  .scsheet .sc-row { --tile: 5rem; }
  .scsheet .sc-ring { width: 2rem; height: 2rem; }
  .scsheet .sc-ring i { width: 1.375rem; height: 1.375rem; }
  .scsheet .sc-foot { padding-bottom: var(--s-3); }
}
@media (max-height: 520px) {
  .scsheet .sc-foot { position: static; padding-bottom: var(--s-3); }
  .scsheet .sc-share small { display: none; }
  .scsheet .sc-share { min-height: var(--tap); }
}
@media (prefers-reduced-motion: reduce) { .scsheet .sc-chev { transition: none; } }
