/**
 * site-cards.css — the "your things" CARD GRID.
 *
 * The card layout from My websites, as a component: a picture of the design,
 * a status pip, a name, a progress bar, and the one action that continues the
 * work. Opted into with `.st-grid` on a container.
 *
 * ── Why it moved out of launch-studio.css ───────────────────────────────
 * Alex, 2026-08-01, on the Courses list: "the layout of how each course is
 * sitting here should be similar to how the website is looking, so that in
 * little panels you can have the thumbnail of the actual design." And before
 * that, as a standing instruction: "You shouldn't be rebuilding anything new
 * really. The whole UI should match or almost be taken as components from the
 * website builder."
 *
 * Every rule here was scoped to `#page-launch-sites`, so a second surface
 * could only have them by growing its own copy. Two copies of a card is how
 * two products stop looking like one product, and it is the exact thing the
 * instruction above is against.
 *
 * ── Scoped to a class, not global ───────────────────────────────────────
 * `.st-grid` rather than bare `.st-card`, for the reason the wizard-shell
 * extraction found the hard way: an unscoped move hands these rules to any
 * page that happens to share a class name, and the surprises show up on
 * screens nobody edited. A consumer opts in; nothing is opted in by accident.
 *
 * The move trades an id for a class, which LOWERS specificity from (1,1,0) to
 * (0,2,0) — anything that used to lose to these rules can now win.
 * tests/browser/site-cards-css.browser.js renders the real card markup against
 * the stylesheets as they were before the move and as they are now, and diffs
 * every property that decides what a card looks like.
 *
 * NOT here: `#page-launch-sites .topbar` / `.crumbs`. That is the page's own
 * chrome rather than the card's, and it stays where it is.
 */

.st-grid .st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.st-grid .st-head h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 32px; margin: 0; letter-spacing: -0.02em; }
.st-grid .st-head .sub { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.st-grid .st-head .sub b { color: var(--text); font-weight: 600; }
.st-grid .st-add { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 12px 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px -10px rgba(106,76,241,0.6); white-space: nowrap; cursor: pointer; }
.st-grid .st-add:hover { background: var(--accent-deep); }
.st-grid .st-add svg { width: 15px; height: 15px; }
.st-grid .st-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.st-grid .st-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.st-grid .st-card:hover { border-color: var(--accent-2, var(--accent)); box-shadow: 0 26px 56px -40px rgba(106,76,241,0.45); transform: translateY(-2px); }
.st-grid .st-shot { aspect-ratio: 16/9; position: relative; background: var(--surface-3); overflow: hidden; }
.st-grid .st-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.st-grid .st-shot .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-4); font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 22px; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.st-grid .st-shot .status { position: absolute; top: 12px; left: 12px; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; z-index: 2; }
.st-grid .st-shot .status .d { width: 7px; height: 7px; border-radius: 50%; }
.st-grid .st-shot .status.live { background: #dcefe2; color: #1c7a4a; } .st-grid .st-shot .status.live .d { background: #1c7a4a; }
.st-grid .st-shot .status.prog { background: var(--accent-soft); color: var(--accent-deep); } .st-grid .st-shot .status.prog .d { background: var(--accent); }
.st-grid .st-shot .st-del { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 8px; border: none; background: rgba(17,16,34,0.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.st-grid .st-card:hover .st-del, .st-grid .st-del:focus-visible { opacity: 1; }
.st-grid .st-shot .st-del:hover { background: #c0392b; }
.st-grid .st-shot .st-del svg { width: 15px; height: 15px; }
@media (hover: none) { .st-grid .st-shot .st-del { opacity: 1; } }
.st-grid .st-cbody { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.st-grid .st-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.st-grid .st-url { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.st-grid .st-prog { margin-top: 12px; }
.st-grid .st-prog .l { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; margin-bottom: 5px; }
.st-grid .st-prog .l b { color: var(--accent-deep); font-weight: 600; }
.st-grid .st-prog .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.st-grid .st-prog .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.st-grid .st-acts { display: flex; gap: 8px; margin-top: 16px; }
.st-grid .st-acts button, .st-grid .st-acts a { border-radius: 9px; padding: 10px 14px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; border: none; text-decoration: none; }
.st-grid .st-acts .primary { background: var(--accent); color: #fff; flex: 1; }
.st-grid .st-acts .primary:hover { background: var(--accent-deep); }
.st-grid .st-acts .primary svg { width: 13px; height: 13px; }
.st-grid .st-acts .ghost { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.st-grid .st-acts .ghost:hover { background: var(--surface-2); color: var(--text); }
.st-grid .st-acts .ghost svg { width: 14px; height: 14px; }
.st-grid .st-addcard { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; min-height: 280px; color: var(--text-2); transition: border-color .15s, background .15s; cursor: pointer; }
.st-grid .st-addcard:hover { border-color: var(--accent-2, var(--accent)); background: var(--accent-softer, var(--accent-soft)); }
.st-grid .st-addcard .pl { width: 50px; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.st-grid .st-addcard .pl svg { width: 24px; height: 24px; }
.st-grid .st-addcard .t { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.st-grid .st-addcard .d { font-size: 13px; margin-top: 5px; max-width: 200px; line-height: 1.45; }
.st-grid .st-addcard .go { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.st-grid .st-addcard .go svg { width: 14px; height: 14px; }
.st-grid .st-empty { text-align: center; padding: 60px 24px; }
.st-grid .st-empty .ic { width: 76px; height: 76px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.st-grid .st-empty .ic svg { width: 38px; height: 38px; }
.st-grid .st-empty h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 28px; margin: 0 0 10px; letter-spacing: -0.02em; }
.st-grid .st-empty p { color: var(--text-2); font-size: 15.5px; margin: 0 auto 24px; max-width: 480px; line-height: 1.55; }
.st-grid .st-empty p b { color: var(--text); font-weight: 600; }
.st-grid .st-empty .big { background: var(--accent); color: #fff; border: none; border-radius: 13px; padding: 15px 28px; font-size: 15.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 14px 30px -12px rgba(106,76,241,0.6); cursor: pointer; }
.st-grid .st-empty .big:hover { background: var(--accent-deep); }
.st-grid .st-empty .big svg { width: 17px; height: 17px; }
.st-grid .st-empty .note { margin-top: 16px; font-size: 13px; color: var(--text-3); }
@media (max-width: 680px) { .st-grid .st-head { flex-direction: column; align-items: flex-start; } .st-grid .st-head h1 { font-size: 26px; } }
