/* Showcase: published entry pages (rendered by the service) and the Showcase
   page's list, editor and moderation (showcase-app.js). The site's tokens. */

.sc-entry { max-width: 820px; }
.sc-byline { color: var(--site-muted); font-size: 14px; margin-bottom: 10px; }
.sc-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.sc-badge { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--site-rule); color: var(--site-ink); background: var(--site-wash); }
.sc-badge.sc-aisic-project { color: #0e5c34; background: #e8f6ee; border-color: #b9e2c9; }
.sc-badge.sc-fabricated, .sc-badge.sc-measured { color: #10399e; background: #edf2ff; border-color: #c5d7f1; }
.sc-badge.sc-ai { color: #6b4a00; background: #fdf3dc; border-color: #f0d9a4; }
.sc-cover { margin: 8px 0 24px; }
.sc-cover img, .sc-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--site-rule); border-radius: 3px; background: #fff; }
.sc-section { margin-top: 28px; }
.sc-section h2 { font-size: 1.25rem; }
.sc-section h3 { margin: 16px 0 6px; font-size: 1rem; }
.sc-section h4 { margin: 14px 0 6px; font-size: .95rem; }
.sc-section p, .sc-section li { color: var(--site-ink); max-width: 72ch; }
.sc-section img { max-width: 100%; height: auto; border: 1px solid var(--site-rule); border-radius: 3px; }
.sc-section pre { overflow-x: auto; padding: 10px 12px; background: var(--site-wash); border-radius: 3px; font-size: 13px; }
.sc-section blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--site-rule); color: var(--site-muted); }
.sc-note { color: var(--site-muted); font-size: 13px; }
.sc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sc-gallery figure { margin: 0; }
.sc-gallery figcaption { font-size: 12px; color: var(--site-muted); margin-top: 4px; }
.sc-files { padding-left: 18px; }
.sc-files span { color: var(--site-muted); font-size: 13px; }
.sc-meta { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--site-rule); font-size: 13px; color: var(--site-muted); }

/* The Showcase page: published entries */
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sc-card { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 2px solid var(--site-ink); }
.sc-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--site-rule); border-radius: 3px; background: var(--site-wash); }
.sc-card h3 { margin: 0; font-size: 1.05rem; }
.sc-card h3 a { text-decoration: none; }
.sc-card h3 a:hover { text-decoration: underline; }
.sc-card p { margin: 0; color: var(--site-muted); font-size: 14px; }

/* Authoring and moderation */
.sc-author, .sc-moderation { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--site-rule); }
.sc-form { display: grid; gap: 12px; max-width: 820px; }
.sc-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--site-ink); }
.sc-form label small { font-weight: 400; color: var(--site-muted); }
.sc-form input[type="text"], .sc-form input[type="email"], .sc-form input[type="password"], .sc-form input[type="url"], .sc-form select, .sc-form textarea {
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 7px 9px; border: 1px solid var(--site-rule); border-radius: 3px; background: #fff; color: var(--site-ink); }
.sc-form textarea { min-height: 120px; resize: vertical; }
.sc-form .sc-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sc-row button, .sc-form button { font: 600 13px system-ui, sans-serif; padding: 6px 12px; min-height: 32px; border: 1px solid var(--site-blue); border-radius: 3px; background: #fff; color: var(--site-blue); cursor: pointer; }
.sc-row button.primary { background: var(--site-blue); color: #fff; }
.sc-row button:disabled { opacity: .5; cursor: default; }
.sc-row button.link { border: 0; padding: 0; min-height: 0; background: none; font-weight: 500; text-decoration: underline; }
.sc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-toolbar button { font: 600 12px ui-monospace, Menlo, monospace; padding: 2px 8px; min-height: 26px; border: 1px solid var(--site-rule); background: var(--site-wash); color: var(--site-ink); }
.sc-preview { padding: 10px 14px; border: 1px dashed var(--site-rule); border-radius: 3px; background: #fff; }
.sc-entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sc-entries li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--site-rule); }
.sc-status { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--site-wash); color: var(--site-muted); }
.sc-status.published { background: #e8f6ee; color: #0e5c34; }
.sc-status.submitted { background: #edf2ff; color: #10399e; }
.sc-status.rejected { background: #fdeeec; color: #a1261f; }
.sc-problems { margin: 0; padding-left: 18px; color: #a1261f; font-size: 13px; }
.sc-media { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sc-media li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.sc-media img { width: 72px; height: 48px; object-fit: cover; border: 1px solid var(--site-rule); border-radius: 2px; }
.sc-media code { font-size: 12px; overflow-wrap: anywhere; }
.sc-message { font-size: 13px; color: var(--site-muted); }
.sc-error { font-size: 13px; color: #a1261f; }
@media (max-width: 640px) { .sc-list { grid-template-columns: 1fr; } }
.sc-draft { margin: 0 0 16px; padding: 8px 12px; border: 1px solid #f0d9a4; border-radius: 3px; background: #fdf3dc; color: #6b4a00; font-size: 13px; }
.sc-badge.sc-verified { color: #0e5c34; background: #d7f2e2; border-color: #8fd1aa; }
.sc-instructions { white-space: pre-wrap; max-width: 72ch; color: var(--site-ink); }
.sc-code { font: 700 15px ui-monospace, Menlo, monospace; letter-spacing: .08em; }
