/* ============================================================
   Abizvo Marketplace — the public storefront, product pages,
   documentation site and checkout results. Builds on the tokens
   and shared classes in marketplace.css (which this file never
   restates); every class here is sf- prefixed.

   Mobile is designed, not shrunk: one column, filters and the
   docs menu as panels behind a toggle, and a buy bar pinned to
   the bottom of product pages. Nothing here is a fixed width
   wider than a 320px phone — grids use minmax(min(100%, …)) and
   every 1fr column is minmax(0, 1fr) so content cannot widen the
   layout viewport (CLAUDE.md: verify innerWidth at 375).
   ============================================================ */

/* marketplace.css's `.mkt a { color: inherit }` (0,1,1) outranks the
   single-class colour of a filled button or an active chip (0,1,0), so an
   <a> wearing one drew ink on ink — a black pill with invisible text (the
   active industry chip, and the layout's own "Sign in"). Restated for links;
   this file loads after marketplace.css, so equal specificity wins. Belongs
   in marketplace.css — see the storefront PR notes. */
.mkt a.mkt-btn--primary, .mkt a.mkt-chip--active, .mkt a.mkt-chip--active:hover { color: var(--mkt-paper); }
.mkt a.mkt-btn--primary:hover, .mkt a.mkt-btn--accent, .mkt a.mkt-btn--accent:hover { color: var(--mkt-accent-ink); }
.mkt a.mkt-btn--danger, .mkt a.mkt-btn--danger:hover { color: #fff; }

.sf-plain { list-style: none; margin: 0; padding: 0; }
.sf-page { padding-top: clamp(1.25rem, 3vw, 2rem); }
.sf-page--flush { padding-top: 0; }
.sf-page__head { margin-bottom: 1.75rem; }
.sf-page__head .mkt-h1 { margin-bottom: 0.35rem; }
.sf-page__head .mkt-lead { margin: 0; }

/* ---- Home hero ---------------------------------------------- */
.sf-hero__title { max-width: 19ch; }
.sf-hero__title em { font-style: italic; font-weight: 500; color: var(--mkt-ink-2); }
.sf-hero .mkt-lead { margin: 0; }
.sf-hero .mkt-hero__search .mkt-btn { flex-shrink: 0; }
.sf-hero .mkt-hero__stats { margin-bottom: 0; }

/* ---- Rows, tiles and bands ---------------------------------- */
.sf-row__intro { min-width: 0; }
.sf-row__lead { margin: 0.35rem 0 0; color: var(--mkt-muted); max-width: 60ch; }
.sf-row__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.sf-categories .mkt-grid > li { display: flex; }
.sf-category-tile { width: 100%; min-height: 10rem; justify-content: space-between; }
.sf-category-tile__tagline { color: var(--mkt-ink-2); font-size: 0.95rem; }
.sf-category-tile.mkt-tile--soon { background: transparent; }

.sf-themes-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.sf-themes-band__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.sf-themes-band__intro .mkt-h2, .sf-themes-band__intro .sf-row__lead { margin: 0; }
.sf-themes-band__cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1000px) {
  .sf-themes-band__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 3rem; }
  .sf-themes-band__intro { position: sticky; top: 96px; }
}

.sf-collection-tile { display: flex; flex-direction: column; height: 100%; border-radius: var(--mkt-radius); overflow: hidden; background: var(--mkt-card); border: 1px solid var(--mkt-line); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.sf-collection-tile:hover { border-color: var(--mkt-ink); box-shadow: var(--mkt-shadow); color: inherit; }
.sf-collection-tile__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--mkt-accent-soft), var(--mkt-paper-2)); }
.sf-collection-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.sf-collection-tile__body { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem 1.25rem; }
.sf-collection-tile__title { font-family: var(--mkt-display); font-size: 1.3rem; font-weight: 600; }
.sf-collection-tile__tagline { color: var(--mkt-ink-2); font-size: 0.93rem; }

.sf-seller-tile { flex-direction: row; align-items: center; gap: 1rem; height: 100%; }
.sf-seller-tile .mkt-tile__title { display: block; font-size: 1.15rem; }
.sf-seller-tile .mkt-tile__meta { display: block; }
.sf-seller-tile__logo, .sf-about__logo, .sf-developer__logo {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: var(--mkt-paper-2); border: 1px solid var(--mkt-line); color: var(--mkt-muted); font-family: var(--mkt-display); font-size: 1.5rem;
}
.sf-seller-tile__logo img, .sf-about__logo img, .sf-developer__logo img { width: 100%; height: 100%; object-fit: cover; }

.sf-sell { background: var(--mkt-ink); color: var(--mkt-paper); }
.sf-sell__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.mkt .sf-sell__eyebrow { color: color-mix(in srgb, var(--mkt-paper) 72%, transparent); }
.mkt .sf-sell__title { color: var(--mkt-paper); margin: 0 0 0.5rem; }
.sf-sell__body { margin: 0; max-width: 62ch; color: color-mix(in srgb, var(--mkt-paper) 84%, transparent); }
.mkt .sf-sell__cta { background: var(--mkt-paper); border-color: var(--mkt-paper); color: var(--mkt-ink); justify-self: start; }
.mkt .sf-sell__cta:hover { background: var(--mkt-accent-soft); border-color: var(--mkt-accent-soft); color: var(--mkt-ink); }
@media (min-width: 860px) { .sf-sell__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }

/* ---- Browse: bar, filters, results ------------------------- */
.sf-browse__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--mkt-line); }
.sf-browse__count { margin: 0; color: var(--mkt-ink-2); min-width: 0; overflow-wrap: anywhere; }
.sf-browse__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
.sf-browse__toggle { display: none; }
.sf-browse__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.sf-browse__results { min-width: 0; }
.sf-browse__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.sf-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; min-width: 0; }
.sf-sort__label { font-size: 0.875rem; font-weight: 600; color: var(--mkt-muted); white-space: nowrap; }
.mkt .sf-sort__select { width: auto; flex: 1 1 9rem; min-width: 0; max-width: 14rem; padding-block: 0.45rem; font-size: 0.9rem; }

.sf-filters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 0.35rem; }
.sf-filters__form { display: grid; gap: 1.15rem; }
.sf-filters__title { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }
.sf-filters__group { display: grid; gap: 0.45rem; min-width: 0; margin: 0; padding: 0 0 1.1rem; border: 0; border-bottom: 1px solid var(--mkt-line); }
.sf-filters__group legend { padding: 0; margin-bottom: 0.45rem; font-weight: 700; font-size: 0.92rem; }
.sf-filters__list { display: grid; gap: 0.45rem; }
.sf-filters__list--scroll { max-height: 15rem; overflow-y: auto; padding-right: 0.25rem; }
.sf-filters .mkt-check { align-items: center; font-size: 0.92rem; }
.sf-filters .mkt-check input { margin-top: 0; flex-shrink: 0; }
.sf-filters__count { margin-left: 0.15rem; color: var(--mkt-muted); font-size: 0.8rem; }
.sf-filters__range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.sf-filters__small { font-size: 0.8rem; font-weight: 600; color: var(--mkt-muted); }
.sf-filters__stars { color: var(--mkt-gold); letter-spacing: 0.04em; }
.sf-filters__actions { display: grid; gap: 0.6rem; justify-items: center; }
.sf-filters__clear { font-size: 0.9rem; font-weight: 600; }

.sf-active { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.sf-active__clear { margin-left: 0.25rem; font-size: 0.875rem; font-weight: 600; }

@media (max-width: 900px) {
  .sf-browse__layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sf-browse__toggle { display: inline-flex; }
  .sf-filters { display: none; position: static; max-height: none; overflow: visible; padding: 1.1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
  .sf-filters.is-open { display: block; }
}

/* ---- Paging ------------------------------------------------- */
.sf-pager { margin-top: 2.5rem; }
.sf-pager ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sf-pager__num, .sf-pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 2.6rem; height: 2.6rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--mkt-line); background: var(--mkt-card); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
a.sf-pager__num:hover, a.sf-pager__step:hover { border-color: var(--mkt-ink); }
.sf-pager__num.is-current { background: var(--mkt-ink); border-color: var(--mkt-ink); color: var(--mkt-paper); }
.sf-pager__step.is-disabled { opacity: 0.45; }
.sf-pager__gap { padding: 0 0.25rem; color: var(--mkt-muted); }
@media (max-width: 480px) { .sf-pager__step { padding-inline: 0.7rem; } }

/* ---- Category, search, lists, collections, developers ------ */
.sf-category-hero { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.75rem; border-bottom: 1px solid var(--mkt-line); background: radial-gradient(900px 320px at 100% 0, var(--mkt-accent-soft), transparent 60%); }
.sf-category-hero .mkt-h1 { margin-bottom: 0.35rem; }
.sf-category-hero .mkt-lead { margin: 0 0 0.5rem; }
.sf-category-hero__description { margin: 0; max-width: 72ch; color: var(--mkt-muted); }
.sf-merch { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.5rem; }
.sf-merch__group { display: grid; gap: 0.5rem; min-width: 0; }
.sf-merch__label { margin: 0; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }

.sf-search-form { display: flex; gap: 0.5rem; max-width: 640px; margin-top: 1rem; }
.sf-search-form .mkt-input { flex: 1; min-width: 0; }
.sf-search-empty__links { justify-content: center; margin-top: 1rem; }
.sf-list-tabs .mkt-tabs { margin: 1.5rem 0 0; padding: 0; list-style: none; }

.sf-collection-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(260px, 38vw, 440px); background: #16140f; }
.sf-collection-hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sf-collection-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 9 7 / 0.82), rgb(10 9 7 / 0.18) 70%); }
.sf-collection-hero__inner { padding-block: 2rem; }
.sf-collection-hero .mkt-lead { margin: 0; }
.mkt .sf-collection-hero:not(.is-plain) :is(h1, p, a, .mkt-breadcrumbs ol, .mkt-breadcrumbs span) { color: #fff; }
.sf-collection-hero:not(.is-plain) .mkt-breadcrumbs li + li::before { color: rgb(255 255 255 / 0.6); }
.sf-collection-hero.is-plain { min-height: 0; background: var(--mkt-paper-2); border-bottom: 1px solid var(--mkt-line); }
.sf-collection-hero.is-plain::after { display: none; }
.sf-collection__description { margin-bottom: 2rem; }

.sf-developer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.sf-developer__logo { width: 120px; height: 120px; border-radius: 24px; font-size: 3rem; }
.sf-developer__body { min-width: 0; }
.sf-developer__about { margin: 0.25rem 0 1rem; }
.sf-developer__facts { margin-top: 1rem; }
.sf-developer__products { margin-top: 1rem; }
@media (max-width: 560px) {
  .sf-developer { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sf-developer__logo { width: 84px; height: 84px; border-radius: 20px; font-size: 2.25rem; }
}

/* ---- Product page ------------------------------------------ */
.sf-preview-banner { padding-block: 0.8rem; background: var(--mkt-warning-soft); color: var(--mkt-warning); border-bottom: 1px solid color-mix(in srgb, var(--mkt-warning) 30%, transparent); font-size: 0.95rem; }
.sf-product { padding-top: 1.25rem; }
.sf-product__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; grid-template-areas: "hero" "gallery" "aside" "body"; }
.sf-product__hero { grid-area: hero; min-width: 0; }
.sf-product__gallery { grid-area: gallery; min-width: 0; }
.sf-product__aside { grid-area: aside; min-width: 0; }
.sf-product__body { grid-area: body; min-width: 0; }
@media (min-width: 1000px) {
  .sf-product__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "hero aside" "gallery aside" "body aside";
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: 1.75rem;
  }
  .sf-product__aside { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0.75rem; margin: -0.75rem; }
}

.sf-product__title { margin: 0 0 0.35rem; font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sf-product__tagline { margin: 0 0 1rem; }
.sf-product__category { text-decoration: none; }
.sf-product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.sf-product__byline a { font-weight: 650; }
.sf-product__rating { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.sf-product__rating > span:last-child { color: var(--mkt-ink-2); text-decoration: underline; text-decoration-color: var(--mkt-line-strong); text-underline-offset: 3px; }
.sf-product__rating--none { color: var(--mkt-muted); }
.sf-product__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--mkt-line); }
.sf-product__facts > div { min-width: 0; }
.sf-product__facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }
.sf-product__facts dd { margin: 0.15rem 0 0; font-weight: 600; }

.sf-about__tour { margin: 0 0 1rem; font-weight: 600; }
.sf-product__toc { margin-bottom: 0.25rem; border-bottom: 1px solid var(--mkt-line); }
.sf-product__toc ul { display: flex; gap: 0.2rem; overflow-x: auto; padding: 0.5rem 0; scrollbar-width: none; }
.sf-product__toc ul::-webkit-scrollbar { display: none; }
.sf-product__toc a { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--mkt-ink-2); text-decoration: none; white-space: nowrap; }
.sf-product__toc a:hover { background: var(--mkt-paper-2); color: var(--mkt-ink); }
/* The section on screen (marketplace.js keeps it current as the page scrolls). */
.sf-product__toc a[aria-current="true"] { background: var(--mkt-ink); color: var(--mkt-paper); }
@media (min-width: 981px) {
  .sf-product__toc { position: sticky; top: 68px; z-index: 5; background: color-mix(in srgb, var(--mkt-paper) 94%, transparent); backdrop-filter: blur(8px); }
}

/* Gallery */
.sf-gallery__stage { position: relative; overflow: hidden; border-radius: var(--mkt-radius); border: 1px solid var(--mkt-line); background: var(--mkt-paper-2); }
/* user-select off so a mouse drag across the stage swipes instead of selecting
   the page around it; the image itself carries draggable="false", which is what
   stops the browser's own image-drag swallowing the gesture. */
.sf-gallery__main { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.sf-gallery__main:focus-visible { border-radius: var(--mkt-radius); }
.sf-gallery__zoom { position: absolute; right: 0.75rem; bottom: 0.75rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; background: color-mix(in srgb, var(--mkt-card) 92%, transparent); color: var(--mkt-ink); box-shadow: var(--mkt-shadow); }
/* position: relative makes the strip the containing block of each thumb's
   absolutely positioned .visually-hidden label. Without it the labels escape
   the strip's overflow clip, sit where the thumbs would be unscrolled, and
   widen the whole page on a phone to the last thumb's edge: 746px with eight
   images, at every phone width, with the fixed buy bar stretched across it. */
.sf-gallery__thumbs { position: relative; display: flex; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0.15rem 0.15rem 0.35rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.sf-gallery__thumbs li { flex: 0 0 auto; }
/* Phone screenshots are their own gallery, swapped in at phone widths. Whichever
   is hidden loads nothing: its images are lazy, and a lazy image inside
   display:none is not fetched. A gallery with no counterpart carries no
   modifier and therefore shows at every width. */
.sf-gallery--phone { display: none; }

/* The device switch: two radios drawn as one segmented control. */
.sf-gallery-switch { display: inline-flex; gap: 0.15rem; margin: 0 0 0.75rem; padding: 0.2rem; border: 1px solid var(--mkt-line); border-radius: 999px; background: var(--mkt-paper-2); }
.sf-gallery-switch__option { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--mkt-ink-2); cursor: pointer; transition: background var(--mkt-dur-base) var(--mkt-ease-standard), color var(--mkt-dur-base) var(--mkt-ease-standard); }
.sf-gallery-switch__option input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.sf-gallery-switch__option:hover { color: var(--mkt-ink); }
.sf-gallery-switch__option:has(input:checked) { background: var(--mkt-card); color: var(--mkt-ink); box-shadow: var(--mkt-shadow); }
.sf-gallery-switch__option:has(input:focus-visible) { outline: 2px solid var(--mkt-ink); outline-offset: 2px; }

/* "See it on a phone" on a wide screen: the checked radio decides, so the swap
   needs no script. The switch's own styles are declared above these two blocks
   deliberately: the narrow block hides it with the same specificity, so a base
   rule written afterwards would win and put the control back on a phone. */
@media (min-width: 768px) {
  .sf-gallery-device:has(input[value="phone"]:checked) .sf-gallery--wide { display: none; }
  .sf-gallery-device:has(input[value="phone"]:checked) .sf-gallery--phone { display: block; }
}
@media (max-width: 767px) {
  /* At phone widths the page shows the phone whatever the radio says, and the
     switch goes with it: a control the CSS overrides is a dead control. The two
     blocks are exclusive widths rather than one overriding the other, because a
     :has() rule outweighs a plain class and a cascade fight here is a silent
     one — the switch would simply stop working below the breakpoint. */
  .sf-gallery-switch { display: none; }
  .sf-gallery--wide { display: none; }
  .sf-gallery--phone { display: block; }
}

/* Previous and next on the stage. Hidden from a coarse pointer, where the swipe
   and the thumbnails are the affordance and a button over the picture is in the
   way; the binder disables them at the ends rather than wrapping, because a
   swipe that wrapped would read as the gesture having missed. */
.sf-gallery__step { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--mkt-line); border-radius: 50%; background: color-mix(in srgb, var(--mkt-card) 92%, transparent); color: var(--mkt-ink); box-shadow: var(--mkt-shadow); cursor: pointer; opacity: 0; transition: opacity var(--mkt-dur-base) var(--mkt-ease-standard); }
.sf-gallery__step--prev { left: 0.75rem; }
.sf-gallery__step--next { right: 0.75rem; }
.sf-gallery__stage:hover .sf-gallery__step, .sf-gallery__step:focus-visible { opacity: 1; }
.sf-gallery__step[disabled] { opacity: 0; pointer-events: none; }
.sf-gallery__stage:hover .sf-gallery__step[disabled] { opacity: 0.35; }
@media (hover: none) { .sf-gallery__step { display: none; } }
@media (prefers-reduced-motion: reduce) { .sf-gallery__step, .sf-gallery-switch__option { transition: none; } }

/* A phone shot is shown whole — its own aspect, at about a phone's width —
   rather than cropped into the 16:10 stage, where a 780x1688 screenshot is a
   sliver of its own header. */
.sf-gallery--phone .sf-gallery__stage { max-width: 360px; margin-inline: auto; background: var(--mkt-paper-2); }
.sf-gallery--phone .sf-gallery__main { aspect-ratio: auto; height: auto; object-fit: contain; }
.sf-gallery--phone .sf-gallery__thumbs { justify-content: center; }
.sf-gallery--phone .sf-gallery__thumb { width: 64px; }
.sf-gallery--phone .sf-gallery__thumb img { aspect-ratio: 39 / 84; object-fit: cover; object-position: top center; }

.sf-gallery__thumb { display: block; width: 112px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--mkt-paper-2); cursor: pointer; scroll-snap-align: start; }
.sf-gallery__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.sf-gallery__thumb[aria-current="true"] { border-color: var(--mkt-ink); }
.sf-gallery__thumb:hover { border-color: var(--mkt-line-strong); }
.sf-gallery__empty { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--mkt-radius); background: linear-gradient(135deg, var(--mkt-paper-2), var(--mkt-accent-soft)); font-family: var(--mkt-display); font-size: 5rem; color: var(--mkt-line-strong); }
@media (max-width: 560px) { .sf-gallery__thumb { width: 88px; } }

/* Content blocks */
.sf-block { padding-block: clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid var(--mkt-line); scroll-margin-top: var(--mkt-anchor-offset, 130px); }
.sf-block:last-child { border-bottom: 0; }
.sf-block > .mkt-h2 { margin-bottom: 1rem; }
.sf-block__lead { margin: -0.25rem 0 1.25rem; max-width: 66ch; color: var(--mkt-muted); }
.sf-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.sf-block__head .mkt-h2 { margin: 0; }

.sf-videos { display: grid; gap: 1.5rem; }
.sf-video { margin: 0; }
.sf-video iframe, .sf-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--mkt-radius); background: #000; }
.sf-video figcaption { margin-top: 0.5rem; font-size: 0.88rem; color: var(--mkt-muted); }

.sf-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.sf-highlight { padding: 1.25rem; border-radius: var(--mkt-radius); border: 1px solid var(--mkt-line); background: var(--mkt-card); }
.sf-highlight__title { margin: 0 0 0.35rem; font-family: var(--mkt-display); font-size: 1.2rem; font-weight: 600; }
.sf-highlight p { margin: 0; font-size: 0.95rem; color: var(--mkt-ink-2); }

.sf-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.5rem 2rem; }
.sf-features__heading { margin: 0 0 0.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }
.sf-features__list { display: grid; gap: 0.45rem; }
.sf-features__list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.95rem; }
.sf-features__list svg { flex: 0 0 auto; margin-top: 0.28rem; color: var(--mkt-success); }
.sf-features__note { color: var(--mkt-muted); }

.sf-product__icon { width: 48px; height: 48px; vertical-align: -10px; margin-right: 0.6rem; border-radius: 12px; padding: 6px; background: var(--mkt-paper-2); }
.sf-apps-promise { margin: 1rem 0 0; }
.sf-app-facts dd ul.sf-plain { margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.sf-app-facts dd .mkt-small { display: block; margin-top: 0.35rem; }
.sf-fit { row-gap: 0.85rem; }
.sf-fit dd .mkt-chips { gap: 0.4rem; }
@media (max-width: 560px) { .sf-fit { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; } .sf-fit dd { margin-bottom: 0.7rem; } }

.sf-preset-tags { display: grid; gap: 0.5rem; margin-top: 1.1rem; }

/* A theme's designs, laid out as the Theme Store's theme page lays out its
   presets: portrait cards stacked right to left with the current one on top
   from 1024px, a snapping row below that. The sizes are measured from that
   page: 1440 is 226×282 cards 125px apart (closer when there are more than
   fit); 768 is 180×225, 40px apart; a phone is 100vw − 92px at the phone
   capture's shape, 24px apart. Section padding 64/48/32. */
.sf-presets { padding-block: 64px; border-top: 1px solid var(--mkt-line); }
.sf-presets__inner { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.sf-presets__intro .mkt-h2 { margin: 0 0 0.35rem; }
.sf-presets__lead { margin: 0; color: var(--mkt-ink-2); font-size: 1.125rem; }
.sf-presets__note { margin: 0.75rem 0 0; color: var(--mkt-ink-2); }
.sf-presets__list { position: relative; height: 282px; margin: 0; }
.sf-presets__item { position: absolute; top: 0; right: calc(var(--i) * min(125px, (100% - 226px) / max(var(--gaps), 1))); z-index: calc(20 - var(--i)); }
.sf-presets__card { display: block; position: relative; width: 226px; height: 282px; overflow: hidden; border-radius: var(--mkt-radius-card); background: var(--mkt-paper-2); box-shadow: var(--mkt-shadow-lg); color: inherit; text-decoration: none; transition: transform var(--mkt-dur-base) var(--mkt-ease-standard), box-shadow var(--mkt-dur-base) var(--mkt-ease-standard); }
.sf-presets__card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sf-presets__card.is-current::after { content: ""; position: absolute; inset: 0; background: var(--mkt-scrim-current); }
.sf-presets__check { position: absolute; left: 50%; top: 50%; z-index: 1; width: 32px; height: 32px; translate: -50% -50%; }
a.sf-presets__card:hover, a.sf-presets__card:focus-visible { transform: scale(1.02); box-shadow: var(--mkt-shadow-xl); }
.sf-presets__item:has(.sf-presets__card:hover, .sf-presets__card:focus-visible) { z-index: 30; }
.sf-presets__label { position: absolute; left: 0; top: calc(100% + 0.75rem); font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity var(--mkt-dur-base) var(--mkt-ease-standard); }
.sf-presets__item:has(.sf-presets__card:hover, .sf-presets__card:focus-visible) .sf-presets__label { opacity: 1; }
@media (max-width: 1023px) {
  .sf-presets { padding-block: 48px; }
  .sf-presets__inner { display: block; }
  .sf-presets__intro { margin-bottom: 1.5rem; }
  .sf-presets__list { display: flex; gap: 40px; height: auto; margin-inline: calc(-1 * var(--mkt-gutter)); padding: 12px var(--mkt-gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--mkt-gutter); scrollbar-width: none; }
  .sf-presets__list::-webkit-scrollbar { display: none; }
  /* In the row the desktop stack's offsets must not apply — relative, not static, so nothing inside escapes the scroller's clip. */
  .sf-presets__item { position: relative; right: auto; z-index: auto; flex: 0 0 auto; scroll-snap-align: start; }
  .sf-presets__card { width: 180px; height: 225px; }
  /* Touch has no hover to reveal a name, so it sits under the card. */
  .sf-presets__label { position: static; display: block; margin-top: 0.6rem; white-space: normal; opacity: 1; }
}
@media (max-width: 767px) {
  .sf-presets { padding-block: 32px; }
  .sf-presets__list { gap: 24px; }
  .sf-presets__card { width: calc(100vw - 92px); max-width: 298px; height: auto; aspect-ratio: 298 / 529; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-presets__card, .sf-presets__label { transition: none; }
  a.sf-presets__card:hover, a.sf-presets__card:focus-visible { transform: none; }
}

.sf-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem 2.5rem; }
.sf-support .mkt-h3 { margin-bottom: 0.4rem; }
.sf-support__contact { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; border-radius: var(--mkt-radius-sm); background: var(--mkt-paper-2); font-size: 0.95rem; overflow-wrap: anywhere; }

.sf-releases { display: grid; }
.sf-release { position: relative; padding: 0 0 1.6rem 1.5rem; border-left: 2px solid var(--mkt-line); scroll-margin-top: var(--mkt-anchor-offset, 110px); }
.sf-release::before { content: ""; position: absolute; left: -7px; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--mkt-card); border: 2px solid var(--mkt-ink); }
.sf-release:last-child { padding-bottom: 0; }
.sf-release__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.mkt .sf-release__version { margin: 0; font-family: var(--mkt-sans); font-size: 1.05rem; font-weight: 700; }
.sf-release__date { font-size: 0.875rem; color: var(--mkt-muted); }
.sf-release__notes { margin-top: 0.5rem; font-size: 0.95rem; }

.sf-about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sf-about__logo { width: 72px; height: 72px; border-radius: 18px; font-size: 2rem; }
.sf-about__name { margin: 0; font-family: var(--mkt-display); font-size: 1.35rem; font-weight: 600; }
.sf-about__name a { text-decoration: none; }
.sf-about__meta { margin: 0.15rem 0 0.5rem; font-size: 0.9rem; color: var(--mkt-muted); }
.sf-about__text { margin-bottom: 0.75rem; font-size: 0.98rem; }

/* Buy box */
.sf-buy { display: grid; gap: 0.9rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--mkt-line); border-radius: calc(var(--mkt-radius) + 4px); background: var(--mkt-card); box-shadow: var(--mkt-shadow); }
.sf-buy .mkt-alert { margin: 0; }
.sf-buy__price { margin: 0; font-family: var(--mkt-display); font-size: 2.1rem; line-height: 1.1; }
.sf-buy__price .mkt-price { font-weight: 600; }
.sf-buy__terms { margin: -0.55rem 0 0; font-size: 0.9rem; color: var(--mkt-muted); }
.sf-buy__form { margin: 0; }
.sf-buy__note { margin: -0.35rem 0 0; font-size: 0.84rem; text-align: center; color: var(--mkt-muted); }
.sf-buy__owned { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 700; color: var(--mkt-success); }

/* Add to Website — the app product's bridge into the buyer's own sites. */
.sf-addsite { display: grid; gap: 0.7rem; padding: clamp(1rem, 2.5vw, 1.4rem); border: 1px solid var(--mkt-line); border-radius: calc(var(--mkt-radius) + 4px); background: var(--mkt-card); box-shadow: var(--mkt-shadow); }
.sf-addsite__title { margin: 0; font-size: 1rem; font-weight: 700; }
.sf-addsite__note { margin: 0; font-size: 0.9rem; color: var(--mkt-muted); }
.sf-addsite__label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--mkt-muted); }
.sf-addsite__flash { margin: 0; }
.sf-addsite__installed { display: grid; gap: 0.45rem; max-height: 16rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 0.35rem; }
.sf-addsite__site { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 0.8rem; font-size: 0.92rem; }
.sf-addsite__site-name { font-weight: 600; }
.sf-addsite__site-links { display: flex; gap: 0.8rem; font-size: 0.86rem; }
.sf-addsite__form { display: grid; gap: 0.7rem; }
.sf-addsite__org { margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-addsite__legend { padding: 0; margin-bottom: 0.35rem; font-weight: 700; font-size: 0.92rem; }
.sf-addsite__one { margin: 0; font-size: 0.92rem; }
.sf-addsite__choices { display: grid; gap: 0.35rem; }
.sf-addsite__choice { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; cursor: pointer; }
.sf-addsite__choice input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--mkt-accent); }
.sf-buy__actions { display: grid; gap: 0.6rem; }
.sf-buy__actions .mkt-btn { flex-wrap: wrap; text-align: center; }
.sf-buy__count { font-size: 0.85rem; font-weight: 500; color: var(--mkt-muted); }
.sf-buy__demo-note { margin: 0; padding: 0.7rem 0.85rem; border-radius: var(--mkt-radius-sm); background: var(--mkt-paper-2); font-size: 0.86rem; color: var(--mkt-ink-2); }
.sf-buy__facts { display: grid; gap: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--mkt-line); font-size: 0.88rem; color: var(--mkt-ink-2); }
.sf-buy__facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sf-back-link { display: inline-block; margin-top: 1rem; font-size: 0.92rem; font-weight: 600; text-decoration: none; }

.sf-buybar, .sf-buybar-spacer { display: none; }
@media (max-width: 999px) {
  .sf-buybar {
    display: flex; align-items: center; gap: 0.75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 0.7rem max(1rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--mkt-card) 96%, transparent); backdrop-filter: saturate(1.2) blur(10px);
    border-top: 1px solid var(--mkt-line); box-shadow: 0 -8px 24px rgb(22 20 15 / 0.08);
  }
  .sf-buybar__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .sf-buybar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.9rem; font-weight: 650; }
  .sf-buybar form { margin: 0; flex-shrink: 0; }
  .sf-buybar .mkt-btn { flex-shrink: 0; }
  .sf-buybar-spacer { display: block; height: 80px; }
}

/* ---- Reviews ------------------------------------------------ */
.sf-reviews__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--mkt-line); }
@media (min-width: 760px) { .sf-reviews__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.sf-reviews__summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: center; }
@media (max-width: 480px) { .sf-reviews__summary { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.sf-reviews__score .mkt-rating-summary__big { margin: 0 0 0.3rem; }
.sf-reviews__based { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--mkt-muted); }
.sf-reviews__none { margin: 0; font-family: var(--mkt-display); font-size: 1.5rem; font-weight: 600; }
.sf-reviews__bars { min-width: 0; }
.sf-reviews__cta { display: grid; gap: 0.6rem; justify-items: start; }
.sf-reviews__mine, .sf-reviews__hint { margin: 0; font-size: 0.92rem; color: var(--mkt-ink-2); }
.sf-reviews__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 0.75rem; }
.sf-reviews__control { display: flex; align-items: center; gap: 0.5rem; }
.sf-reviews .mkt-check { align-items: center; }
.sf-reviews .mkt-check input { margin-top: 0; }
.sf-reviews__showing { margin: 0 0 0 auto; font-size: 0.85rem; color: var(--mkt-muted); }
.sf-reviews__more { display: flex; justify-content: center; margin-top: 1.5rem; }
.sf-reviews__empty { color: var(--mkt-muted); }

.sf-review-form { margin-bottom: 1.5rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--mkt-line-strong); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.sf-review-form .mkt-h3 { margin: 0; }
.sf-starpick { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; }
.sf-starpick__row { position: relative; display: flex; gap: 0.1rem; }
.sf-starpick__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-starpick__star { padding: 0.1rem 0.15rem; border-radius: 6px; font-size: 2rem; line-height: 1; color: var(--mkt-line-strong); cursor: pointer; }
.sf-starpick__star.is-on, .sf-starpick__star:hover { color: var(--mkt-gold); }
.sf-starpick__input:focus-visible + .sf-starpick__star { box-shadow: var(--mkt-focus); }

.sf-review { padding: 1.5rem 0; border-bottom: 1px solid var(--mkt-line); scroll-margin-top: var(--mkt-anchor-offset, 110px); }
.sf-review:first-child { padding-top: 0.75rem; }
.sf-review__head { display: flex; flex-direction: column; gap: 0.35rem; }
.mkt .sf-review__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.sf-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin: 0.45rem 0 0.75rem; font-size: 0.85rem; color: var(--mkt-muted); }
.sf-review__author { font-weight: 650; color: var(--mkt-ink); }
.sf-review__body { max-width: 75ch; margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--mkt-ink-2); }
.sf-review__dims { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--mkt-muted); }
.sf-review__dims strong { margin-left: 0.15rem; color: var(--mkt-ink); }
.sf-review__response { margin-top: 1rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--mkt-accent); border-radius: 0 var(--mkt-radius-sm) var(--mkt-radius-sm) 0; background: var(--mkt-paper-2); }
.sf-review__response-title { margin: 0 0 0.3rem; font-size: 0.9rem; font-weight: 700; }
.sf-review__response-date { font-weight: 400; color: var(--mkt-muted); }
.sf-review__response-body { margin: 0; font-size: 0.95rem; white-space: pre-line; overflow-wrap: anywhere; }
.sf-review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; }
.sf-review__action { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.38rem 0.85rem; border-radius: 999px; border: 1px solid var(--mkt-line-strong); background: var(--mkt-card); font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--mkt-ink-2); text-decoration: none; cursor: pointer; }
.sf-review__action:hover { border-color: var(--mkt-ink); color: var(--mkt-ink); }
.sf-review__action.is-on { background: var(--mkt-ink); border-color: var(--mkt-ink); color: var(--mkt-paper); }
.sf-review__action--quiet { border-color: transparent; background: transparent; color: var(--mkt-muted); }
.sf-review__count { font-variant-numeric: tabular-nums; }
.sf-review__helpful-count, .sf-review__reported { font-size: 0.85rem; color: var(--mkt-muted); }
.sf-report { display: grid; gap: 0.8rem; max-width: 560px; margin-top: 1rem; padding: 1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius-sm); background: var(--mkt-card); }
.sf-report .mkt-help { margin: 0; }
.sf-report__detail { min-height: 4.5rem; }

/* ---- Documentation ----------------------------------------- */
.sf-docs { padding-top: 1.25rem; }
.sf-docs__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--mkt-line); }
.sf-docs__product { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0; min-width: 0; }
.sf-docs__product .mkt-eyebrow { flex-basis: 100%; margin: 0; }
.sf-docs__product-name { font-family: var(--mkt-display); font-size: 1.5rem; font-weight: 600; text-decoration: none; }
.sf-docs__product-meta { font-size: 0.9rem; color: var(--mkt-muted); }
.sf-docs__search { display: flex; gap: 0.5rem; flex: 0 1 380px; min-width: 0; margin: 0; }
.sf-docs__search .mkt-input { min-width: 0; padding-block: 0.5rem; }

.sf-docs__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.sf-docs__rail, .sf-docs__content { min-width: 0; }
.sf-docs__outline { display: none; }
@media (min-width: 900px) { .sf-docs__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; } }
@media (min-width: 1180px) {
  .sf-docs__layout { grid-template-columns: 240px minmax(0, 1fr) 210px; }
  .sf-docs__outline { display: block; position: sticky; top: 88px; align-self: start; }
}

.sf-docs__rail-toggle { display: none; }
.sf-docs__nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 0.5rem; }
.sf-docs__section { margin: 1.25rem 0 0.4rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }
.sf-docs__section:first-child { margin-top: 0; }
.sf-docs__tree { display: grid; gap: 0.1rem; }
.sf-docs__tree--nested { margin: 0.1rem 0 0.25rem 0.75rem; padding-left: 0.5rem; border-left: 1px solid var(--mkt-line); }
.sf-docs__link { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.38rem 0.6rem; border-radius: 8px; font-size: 0.92rem; color: var(--mkt-ink-2); text-decoration: none; }
.sf-docs__link:hover { background: var(--mkt-paper-2); color: var(--mkt-ink); }
.sf-docs__link[aria-current="page"] { background: var(--mkt-ink); color: var(--mkt-paper); }
.sf-docs__link.is-locked { color: var(--mkt-muted); }
.sf-docs__link[aria-current="page"].is-locked { color: var(--mkt-paper); }
.sf-docs__lock-tag { display: inline-flex; align-items: center; gap: 0.2rem; flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 899px) {
  .sf-docs__rail-toggle { display: inline-flex; }
  .sf-docs__nav { display: none; position: static; max-height: none; overflow: visible; margin-top: 0.75rem; padding: 1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
  .sf-docs__nav.is-open { display: block; }
}

.sf-docs__title { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.sf-docs__applies { margin: 0 0 0.75rem; }
.sf-docs__gate { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.5rem; padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--mkt-success-soft); color: var(--mkt-success); font-size: 0.85rem; font-weight: 600; }
.sf-docs__prose { margin-top: 1.25rem; }
.sf-docs__updated { margin: 2.5rem 0 0; font-size: 0.85rem; color: var(--mkt-muted); }
.sf-docs__pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mkt-line); }
.sf-docs__pager-link { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); text-decoration: none; }
.sf-docs__pager-link:hover { border-color: var(--mkt-ink); color: inherit; }
.sf-docs__pager-link--next { text-align: right; }
.sf-docs__pager-dir { font-size: 0.8rem; font-weight: 600; color: var(--mkt-muted); }
.sf-docs__pager-title { font-weight: 650; overflow-wrap: anywhere; }

.sf-docs__locked { display: grid; gap: 0.8rem; max-width: 640px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.sf-docs__locked p, .sf-docs__locked .mkt-h2 { margin: 0; }
.sf-docs__lock { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--mkt-accent-soft); color: var(--mkt-accent); }

.sf-docs__count { font-size: 0.9rem; color: var(--mkt-muted); }
.sf-docs__results { display: grid; gap: 1.25rem; margin-top: 1rem; }
.sf-docs__result-title { font-size: 1.1rem; font-weight: 700; }
.sf-docs__result-snippet { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--mkt-ink-2); overflow-wrap: anywhere; }

.sf-docs__outline-title { margin: 0 0 0.6rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--mkt-muted); }
.sf-docs__outline ul { display: grid; gap: 0.35rem; padding-left: 0.9rem; border-left: 1px solid var(--mkt-line); }
.sf-docs__outline a { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--mkt-ink-2); text-decoration: none; }
.sf-docs__outline a:hover { color: var(--mkt-accent); }
.sf-docs__outline-l3 { padding-left: 0.75rem; }

/* ---- Checkout results -------------------------------------- */
.sf-checkout { padding-top: clamp(2rem, 6vw, 4rem); }
.sf-checkout .mkt-lead { margin-top: 0; }
.sf-checkout__mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--mkt-paper-2); color: var(--mkt-ink-2); }
.sf-checkout__mark--ok { background: var(--mkt-success-soft); color: var(--mkt-success); }
.sf-checkout__items { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.sf-checkout__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.sf-checkout__item-body { min-width: 0; }
.sf-checkout__item-body p { margin: 0; }
.sf-checkout__item-name { font-size: 1.05rem; font-weight: 700; }
.sf-checkout__actions { margin: 1.5rem 0 1rem; }
.sf-checkout__actions form { margin: 0; }
.sf-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--mkt-line-strong); border-top-color: var(--mkt-ink); animation: sf-spin 0.9s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* ---- Seller offers in the buy box: the saving, the terms, the count ---- */
.sf-offer { display: grid; gap: 0.35rem; }
.sf-offer__label { justify-self: start; margin: 0; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--mkt-accent-soft); color: var(--mkt-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }
.sf-offer__was { margin: 0; font-family: var(--mkt-display); font-size: 1.25rem; line-height: 1.1; color: var(--mkt-muted); }
.sf-offer__was s { text-decoration-thickness: 1.5px; }
.sf-offer__saving { justify-self: start; margin: 0; padding: 0.15rem 0.55rem; border-radius: var(--mkt-radius-sm); background: var(--mkt-success-soft); color: var(--mkt-success); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; }
.sf-offer .sf-buy__price { margin: 0; }
.sf-offer__terms { margin: 0; display: grid; gap: 0.2rem; font-size: 0.9rem; color: var(--mkt-ink); }
.sf-offer__count { font-weight: 600; }
.sf-offer__gone { margin: 0; padding: 0.55rem 0.75rem; border-radius: var(--mkt-radius); background: var(--mkt-warning-soft, #fff7e6); font-size: 0.88rem; }
.sf-offer.is-gone .sf-offer__terms, .sf-offer.is-gone .sf-buy__price { opacity: 0.55; }
.sf-code { display: grid; gap: 0.35rem; }
.sf-code__row { display: flex; gap: 0.5rem; }
.sf-code__row .mkt-input { flex: 1; min-width: 0; text-transform: uppercase; }
.sf-buybar__offer { font-size: 0.85rem; font-weight: 600; }
.sf-buybar__was { font-weight: 400; color: var(--mkt-muted); }
.sf-buybar__saving { color: var(--mkt-success); }

/* ---- Check a licence (/verify) ---- */
.sf-page--narrow { max-width: 44rem; }
.sf-verify { display: grid; gap: 0.75rem; max-width: 28rem; }
.sf-verify__result { margin-top: 1.5rem; }
.sf-verify__key { margin-top: 2rem; }
.sf-verify__key pre { overflow-x: auto; padding: 0.75rem; border-radius: var(--mkt-radius); background: var(--mkt-paper-2); }

/* ---- abizvo.site — the public site for Abizvo Sites ----------
   The landing pages wear the marketplace's design (the owner's instruction,
   2026-09-24) and are sent these two sheets and nothing of site.css. What
   they need beyond the shared classes is small: a two-column split, a plain
   fact list (mkt-checklist's circles read as a to-do), a monospace inline
   list for the setting types and filters, an FAQ on <details>, and the
   theme cards' button row. Every class is sf- prefixed like the rest. */
.sf-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; }
@media (min-width: 860px) { .sf-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-split .mkt-h3 { margin-top: 1.25rem; }
.sf-split .mkt-h3:first-child { margin-top: 0; }
.sf-facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.7rem; max-width: 74ch; }
.sf-facts li { position: relative; padding-left: 1.6rem; color: var(--mkt-ink-2); font-size: 0.98rem; line-height: 1.6; }
.sf-facts li::before { content: "—"; position: absolute; left: 0; color: var(--mkt-accent); font-weight: 700; }
ol.sf-facts { counter-reset: fact; }
ol.sf-facts li { padding-left: 2.2rem; }
ol.sf-facts li::before { counter-increment: fact; content: counter(fact); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--mkt-ink); color: var(--mkt-paper); font-size: 0.78rem; font-weight: 700; top: 0.15rem; }
.sf-facts strong { color: var(--mkt-ink); }
.sf-mono-list { font-family: var(--mkt-mono); font-size: 0.86rem; line-height: 1.9; color: var(--mkt-ink-2); max-width: 80ch; overflow-wrap: anywhere; }
.sf-landing-lead { margin-bottom: 1.5rem; }
.sf-landing-actions { margin-top: 1.5rem; }
.sf-faq { max-width: 820px; }
.sf-faq details { border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius-sm); background: var(--mkt-card); margin: 0 0 0.6rem; }
.sf-faq summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 650; color: var(--mkt-ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: "+"; color: var(--mkt-muted); font-weight: 500; }
.sf-faq details[open] summary::after { content: "–"; }
.sf-faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--mkt-ink-2); }
.sf-theme-card .mkt-card__body { gap: 0.5rem; }
.sf-theme-card .mkt-card__title small { font-size: 0.8rem; font-weight: 500; color: var(--mkt-muted); margin-left: 0.35rem; }
.sf-theme-card__facts { margin: 0; font-size: 0.88rem; color: var(--mkt-muted); }
.sf-theme-card__facts strong { color: var(--mkt-ink-2); font-weight: 600; }
.sf-theme-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }

/* abizvo.site's search-intent pages (SitesPlatformLanding): a hero with the
   real template captures beside the words, bento feature tiles, and a related
   list. Only sp- rules; everything else is the storefront's own. */
.sp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .sp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; } }
.sp-hero__copy .mkt-breadcrumbs { margin-bottom: 1rem; }
.sp-shot { position: relative; margin: 0; padding-bottom: 2.5rem; }
.sp-shot img { display: block; width: 100%; height: auto; }
.sp-shot__desktop { border-radius: var(--mkt-radius); overflow: hidden; border: 1px solid var(--mkt-line); box-shadow: var(--mkt-shadow-lg, var(--mkt-shadow)); background: var(--mkt-paper-2); aspect-ratio: 16 / 10; }
.sp-shot__desktop img { height: 100%; object-fit: cover; object-position: top center; }
.sp-shot__phone { position: absolute; right: 4%; bottom: 0; width: clamp(92px, 24%, 150px); aspect-ratio: 390 / 844; border-radius: 18px; overflow: hidden; border: 4px solid var(--mkt-ink); background: var(--mkt-paper-2); box-shadow: var(--mkt-shadow-lg, var(--mkt-shadow)); }
.sp-shot__phone img { height: 100%; object-fit: cover; object-position: top center; }
.sp-shot figcaption { margin-top: 0.75rem; max-width: 60%; }
.sp-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 700px) { .sp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sp-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-bento > .sp-tile:first-child { grid-column: span 2; }
  .sp-bento > .sp-tile:first-child .mkt-h3 { font-family: var(--mkt-display); font-size: 1.45rem; }
}
.sp-tile .mkt-h3 { margin: 0 0 0.4rem; }
.sp-related { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.75rem; }
.sp-related li { display: grid; gap: 0.25rem; padding: 1rem 1.1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.sp-related a { font-weight: 650; }
.sp-related span { color: var(--mkt-ink-2); font-size: 0.92rem; }
.sp-intents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
@media (min-width: 761px) { .mkt-footer__grid:has(> :nth-child(5)) { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); } }
