/* VividCanvas gallery — to the approved mockup (2048 × 768). Measurements are
   taken from that image; the page is fluid but keeps the same proportions. */
:root {
  --red: #D6202B; --red-2: #B81C25; --pink-bg: #FFF2F2; --pink-line: #F2B3B8; --pink-soft: #FBE1E3;
  --blue: #2F6FDE; --blue-soft: #DCE8FA; --blue-blob: #E7EFFB;
  --ink: #141418; --ink-2: #2C2C33; --muted: #666A72; --faint: #8A8E97;
  --line: #E4E5E9; --line-2: #D9DADF; --page: #FAFAFB; --thumb: #F4F5F7;
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
[hidden] { display: none !important; }

.vg { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- top bar ---------------------------------------------------------- */
.vg-top { height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 24px 0 18px; color: #fff;
  background: linear-gradient(90deg, #D6202B 0%, #C41E28 100%); }
.vg-back { font-size: 22px; line-height: 1; color: #fff; opacity: .9; margin-right: -2px; }
.vg-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.vg-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; background: conic-gradient(from 210deg, #00c4cc, #7d2ae8, #ff5c8a, #ffb443, #00c4cc); }
.vg-file { margin-left: auto; font-size: 14px; font-weight: 500; opacity: .95; }
.vg-size { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ---- layout ----------------------------------------------------------- */
.vg-body { flex: 1; display: flex; gap: 30px; padding: 0 72px 40px 24px; }
.vg-side { flex: 0 0 222px; padding-top: 80px; }
.vg-main { flex: 1; min-width: 0; padding-top: 0; }

/* ---- rail ------------------------------------------------------------- */
.vg-search-row { display: flex; align-items: center; gap: 12px; }
.vg-search { display: flex; align-items: center; gap: 8px; width: 148px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--faint); }
.vg-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 12.5px; color: var(--ink); }
.vg-search input::placeholder { color: #9AA0A9; }
.vg-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,32,43,.12); }
.vg-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.vg-side-h { margin: 26px 0 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.vg-facets { display: flex; flex-direction: column; gap: 2px; min-height: 168px; } /* Q9: five facets' worth reserved — no shift when they render */
.vg-facet { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; background: none; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); text-align: left; cursor: pointer; white-space: nowrap; }
.vg-facet .n { font-size: 12px; color: var(--muted); } /* Q10: 4.5:1 on white (was --faint, 3.5:1) */
.vg-facet:hover { background: #F1F1F4; }
.vg-facet[aria-pressed="true"] { background: var(--red); color: #fff; font-weight: 600; }
.vg-facet[aria-pressed="true"] .n { color: #fff; } /* Q10: 4.6:1 on the red */
.vg-more { margin: 12px 0 0 9px; padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* ---- heading ---------------------------------------------------------- */
.vg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.vg-h1 { margin: 16px 0 6px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.vg-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.vg-help { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.vg-help-q { width: 17px; height: 17px; border-radius: 50%; border: 1.6px solid var(--ink-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.vg-help svg { color: var(--muted); transition: transform .15s ease; }
.vg-help[aria-expanded="true"] svg { transform: rotate(180deg); }
.vg-help-wrap { position: relative; flex: none; }
/* "Need help designing?" popover — anchored under the button, right-aligned. */
.vg-help-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: calc(100vw - 32px); z-index: 30; padding: 16px 16px 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); text-align: left; }
.vg-help-title { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.vg-help-copy { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vg-help-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.vg-help-item svg { flex: none; color: var(--red); }
.vg-help-item span { display: flex; flex-direction: column; min-width: 0; }
.vg-help-item strong { font-size: 13.5px; font-weight: 700; }
.vg-help-item small { font-size: 12px; color: var(--muted); }
.vg-help-item:hover, .vg-help-item:focus-visible { background: #F6F6F8; outline: none; }

/* ---- leaving for the studio: one loader, matching the theme's splash ---- */
.vg-going { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 30px; text-align: center; font-weight: 600; font-size: 14.5px; color: #191919; }
.vg-going[hidden] { display: none; }
.vg-going-ring { width: 36px; height: 36px; border: 4px solid #e2e2e2; border-top-color: var(--red); border-radius: 50%; animation: vg-spin .8s linear infinite; }
.vg-going-s { font-weight: 400; font-size: 12.5px; color: #6b6b76; }
@keyframes vg-spin { to { transform: rotate(360deg); } }

/* ---- the three ways ---------------------------------------------------- */
.vg-ways { display: grid; grid-template-columns: 27fr 45fr 28fr; gap: 10px; margin-top: 16px; }
.vg-way { position: relative; display: flex; min-height: 287px; max-height: 287px; padding: 30px 20px 22px 30px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.vg-way:hover { box-shadow: 0 12px 30px rgba(20,20,24,.10); transform: translateY(-2px); }
.vg-way-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; max-width: 262px; }
.vg-way-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.vg-way-icon--pink { background: var(--pink-soft); }
.vg-way-icon--blue { background: var(--blue-soft); }
.vg-way-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.vg-way-copy { margin: 0 0 18px; font-size: 13.5px; line-height: 1.42; color: #4A4E57; }
.vg-btn { display: inline-flex; align-items: center; gap: 8px; height: 35px; padding: 0 26px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; border-radius: 8px; white-space: nowrap;
  transition: background .15s ease, transform .15s ease; }
.vg-way:hover .vg-btn { background: var(--red-2); }
.vg-arrow { font-size: 15px; }
.vg-way-art { position: absolute; right: 0; top: 0; bottom: 0; left: 0; pointer-events: none; }
.vg-blob { position: absolute; width: 190px; height: 190px; border-radius: 50%; right: 8px; top: 62px; }
.vg-blob--pink { background: var(--pink-soft); }
.vg-blob--blue { background: var(--blue-blob); }
.vg-stand { position: absolute; right: 34px; top: 12px; width: 122px; height: 254px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.08)); }
.vg-way--upload .vg-way-art::after { content: ""; position: absolute; right: -6px; top: 148px; width: 14px; height: 10px; background: var(--red); clip-path: polygon(0 50%, 100% 0, 100% 100%); }

/* the AI card is the hero */
.vg-way--ai { background: var(--pink-bg); border: 1.5px solid var(--pink-line); padding-left: 30px; }
.vg-way--ai:hover { border-color: #E9949B; box-shadow: 0 14px 34px rgba(214,32,43,.16); }
.vg-way--ai .vg-way-icon { margin-bottom: 14px; }
.vg-way--ai .vg-way-title { font-size: 24px; margin-bottom: 8px; }
.vg-new { display: inline-block; padding: 3px 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .01em; border-radius: 999px; }
.vg-way--ai .vg-way-copy { max-width: 250px; margin-bottom: 16px; }
.vg-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vg-ticks li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #33363D; }
.vg-ticks li::before { content: ""; width: 12px; height: 12px; flex: none; background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6202B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.vg-way-art--ai { left: auto; width: 62%; display: flex; align-items: center; justify-content: center; }
/* The three showcase frames take the PRODUCT's shape (aspect from product-context:
   a media wall is not a pull-up), so the designs are shown whole, not cropped. */
.vg-showcase { display: flex; gap: 6px; align-items: flex-end; height: var(--vg-bn-h, 250px); margin-top: -6px; }
.vg-showcase .vg-banner { position: relative; height: var(--vg-bn-h, 250px); aspect-ratio: var(--vg-bn-ar, 122 / 250); width: auto; border-radius: 3px; overflow: hidden; background: #E9E9EE; box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.vg-showcase .vg-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-showcase .vg-banner::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 9px; border-radius: 2px 2px 3px 3px; background: linear-gradient(#C7C9CE, #9EA1A8); }
.vg-showcase .vg-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #C7C9CE; z-index: 1; }
.vg-spark { position: absolute; width: 40px; height: 40px; }
.vg-spark--l { left: 4px; top: 36px; }
.vg-spark--r { right: 8px; top: 68px; }

/* ---- ready-made ---------------------------------------------------------- */
.vg-ready { margin-top: 22px; }
.vg-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.vg-h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vg-sort { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.vg-select { position: relative; display: inline-flex; align-items: center; }
.vg-select select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.vg-select svg { position: absolute; right: 11px; color: var(--muted); pointer-events: none; }
.vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 9px; margin-top: 18px; }
.vg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 12px; cursor: pointer; text-align: left; }
/* Hover lift, shadow and the "Customise" pill only where there is a pointer to
   hover with — on touch screens they cost paint and compositing during scroll
   and can never show. */
@media (hover: hover) and (pointer: fine) {
  .vg-card { transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
  .vg-card:hover { border-color: var(--red); box-shadow: 0 10px 26px rgba(0,0,0,.12); transform: translateY(-2px); }
  .vg-card:hover .vg-edit { opacity: 1; }
}
.vg-thumb { position: relative; height: 190px; border-radius: 8px 8px 0 0; background: var(--thumb); display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* width/height attributes give each image its box before it decodes (no layout
   shift, no relayout per image); the height is fixed and the width follows. */
.vg-thumb img { display: block; height: 178px; width: auto; max-width: 92%; object-fit: contain; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.vg-sentinel { grid-column: 1 / -1; height: 1px; }
.vg-fav { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; color: #4A4E57; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vg-fav[aria-pressed="true"] { color: var(--red); }
.vg-edit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 8px 14px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .15s ease; pointer-events: none; }
.vg-name { margin: 12px 12px 0; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.vg-price { margin: 4px 12px 0; font-size: 12px; font-weight: 700; color: var(--ink); }
.vg-unit, .vg-cat { margin: 2px 12px 0; font-size: 11px; color: var(--muted); }
.vg-grid-note { font-size: 13.5px; color: var(--muted); }

/* ---- narrower screens ---------------------------------------------------- */
@media (max-width: 1500px) {
  .vg-body { padding-right: 32px; }
  .vg-ways { grid-template-columns: 27fr 45fr 28fr; }
  .vg-way-art--ai { width: 56%; }
  .vg-showcase .vg-banner { height: var(--vg-bn-h, 205px); }
  .vg-showcase { height: var(--vg-bn-h, 205px); }
  .vg-stand { width: 104px; height: 216px; right: 22px; top: 30px; }
  .vg-blob { width: 160px; height: 160px; }
}
@media (max-width: 1180px) {
  .vg-ways { grid-template-columns: 1fr 1fr; }
  .vg-way--ai { grid-column: 1 / -1; grid-row: 1; }
}
/* Thin-library prompt card (B6): same cell as a design, no price row. */
.vg-card--cta { text-decoration: none; color: inherit; border: 1.5px dashed #E9949B; background: #FFF7F7; }
.vg-card--cta:hover { border-color: #D6202B; }
.vg-thumb--cta { background: #FFF1F2; }
.vg-card--cta .vg-cat { white-space: normal; line-height: 1.35; padding-bottom: 10px; }
@media (max-width: 900px) {
  .vg-body { flex-direction: column; gap: 8px; padding: 0 16px 32px; }
  .vg-side { flex: none; padding-top: 18px; }
  .vg-facets { flex-direction: row; flex-wrap: wrap; min-height: 0; }
  .vg-side-h { margin-top: 14px; }
  .vg-h1 { font-size: 24px; }
  .vg-ways { grid-template-columns: 1fr; }
  /* Phones (2026-10-05 mobile pass): compact creation cards so the ready-made
     grid is reached within ~1.5 screens; copy may wrap, never clip. */
  .vg-way { min-height: 0; max-height: none; padding: 18px 16px 16px; }
  .vg-way-art, .vg-way-art--ai { display: none; }
  .vg-way-text { max-width: none; width: 100%; align-self: stretch; }
  .vg-way-copy, .vg-way--ai .vg-way-copy { max-width: none; width: 100%; white-space: normal; margin-bottom: 12px; }
  .vg-way-icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .vg-way-title, .vg-way--ai .vg-way-title { font-size: 20px; }
  .vg-ticks { margin-top: 10px; gap: 4px; }
  /* The search / industry rail belongs with the ready-made grid on a phone:
     gallery.js moves it there (just above the designs) below this breakpoint. */
  .vg-ready .vg-side { padding-top: 6px; margin-bottom: 10px; }
  .vg-ready .vg-side-h { margin-top: 10px; }
  .vg-ready-head { flex-direction: column; gap: 8px; }
  .vg-grid { grid-template-columns: repeat(2, 1fr); }
  /* Phones: the help button sits under the subtitle (was hidden); the popover
     opens left-aligned so it stays inside the viewport. */
  .vg-head { flex-direction: column; gap: 4px; }
  .vg-help { margin-top: 8px; }
  .vg-help-menu { right: auto; left: 0; }
}
.vg-donor{color:#6b6b70;font-weight:500}
/* Q10 (2026-10-05): one visible keyboard focus ring everywhere a key can land */
.vg-card:focus-visible, .vg-way:focus-visible, .vg-facet:focus-visible, .vg-fav:focus-visible, .vg-more:focus-visible, .vg-help:focus-visible, .vg-help-item:focus-visible, .vg-back:focus-visible, .vg-select select:focus-visible, .vg-card--cta:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
