/* Wizbang Partner Studio (marketing/storefront.js drawStudio, 615_partner_studio.sql).
   A partner's own web design studio: body.studio.d-<design>, their color --acc with readable text --on-acc, their
   heading font --display. Eight designs, each with its own ground, type treatment and hero:
     agency      white, a tall color panel holding the logo, tight oversized headline
     mainstreet  pale sage paper, an awning stripe in their color, friendly rounded cards
     bold        the hero is their color, edge to edge, with heavy type
     minimal     one narrow centered column, small calm type, hairlines only
     creative    lavender paper, big soft corners, cards set at a slight tilt
     service     navy and steel, square corners, a sturdy rule under every heading
     night       ink-dark with their color glowing behind the logo
     classic     framed page, serif feel, centered crest
   Light or dark is a separate choice for the designs that support it (night is always dark). */
body.studio { --radius: 16px; --radius-sm: 10px; --bg: #FFFFFF; --bg2: #F4F5F7; --card: #FFFFFF; --ink: #121520; --ink2: #4A5064; --ink3: #6E7488; --line: #E3E5EA;
  --hero-bg: var(--bg); --hero-ink: var(--ink); --hero-ink2: var(--ink2); }
body.studio .sf-go { color: var(--on-acc); }
body.studio .sf-btn, body.studio .sf-form, body.studio .sf-card, body.studio .sf-how-list li { border-radius: var(--radius); }
body.studio .sf-btn { border-radius: var(--radius-sm); }
body.studio .sf-n { background: var(--acc); color: var(--on-acc); }

/* header */
.st-head .sf-head-in { min-height: 72px; }
.st-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.st-brand-name { font: 700 19px/1.15 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.st-logo { width: 44px; height: 44px; object-fit: contain; flex: none; border-radius: 8px; }
.st-mono { display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font: 700 18px var(--display); border-radius: 10px; }
.st-nav a { color: var(--ink2); }
.st-topnote { font-size: 13px; }

/* the shield: always a button that opens the certificate from wizbangsites.com */
.st-shield { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 13.5px/1.25 var(--body); cursor: pointer; text-align: left; }
.st-shield img { width: 34px; height: 34px; flex: none; }
.st-shield:hover { border-color: var(--acc); }
.st-shield:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }
.st-shield-big { padding: 10px 18px 10px 10px; border-radius: 18px; }
.st-shield-big img { width: 64px; height: 64px; }
.st-shield-big b { display: block; font-size: 15.5px; }
.st-shield-big small { display: block; font-weight: 500; color: var(--ink3); font-size: 13px; margin-top: 2px; }

/* hero */
.st-hero { padding: 72px 0 64px; background: var(--hero-bg); color: var(--hero-ink); }
.st-hero-in { display: grid; gap: 40px; align-items: center; }
.st-hero h1 { font-size: clamp(38px, 7.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; margin-bottom: 20px; }
.st-lead { font-size: clamp(17.5px, 2.2vw, 20px); color: var(--hero-ink2); max-width: 36em; }
.st-hero-art { display: none; }
.st-hero-card { display: grid; place-items: center; gap: 18px; text-align: center; }
.st-hero-logo { width: min(200px, 60%); height: auto; aspect-ratio: 1; object-fit: contain; }
.st-hero-logo.st-mono { width: 140px; height: 140px; font-size: 54px; border-radius: 28px; }
.st-hero-name { font: 700 22px/1.2 var(--display); }
@media (min-width: 900px) {
  .st-hero-in { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .st-hero-art { display: block; }
}

/* sections */
.st-sec { padding: 72px 0; }
.st-sec-head { max-width: 680px; margin-bottom: 32px; }
.st-sec h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
.st-sec-sub { margin-top: 12px; color: var(--ink2); font-size: 17.5px; }
.st-sites { background: var(--bg2); }
.st-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.st-steps li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.st-steps .st-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-weight: 700; margin-bottom: 10px; }
.st-steps b { display: block; font: 700 18px var(--display); margin-bottom: 4px; }
.st-steps p { color: var(--ink2); font-size: 15.5px; }
.st-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 28px; }
.st-fine { color: var(--ink3); font-size: 14.5px; max-width: 34em; }

/* the custom design portfolio (custom_portfolio_public) */
.st-folio:empty { display: none; }
.st-folio-h { font-weight: 600; color: var(--ink3); font-size: 14.5px; margin-bottom: 14px; }
.st-folio-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.st-folio-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.st-folio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.st-folio-txt { display: grid; gap: 4px; padding: 14px 16px 16px; }
.st-folio-txt b { font: 700 18px var(--display); }
.st-folio-txt span { color: var(--ink2); font-size: 15px; }
a.st-folio-card:hover { border-color: var(--acc); }

/* Our work */
.st-work-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.st-work-card { --w: var(--acc); display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; }
.st-work-card:hover { border-color: var(--w); }
.st-work-mark { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--w); color: #fff; display: grid; place-items: center; font: 700 20px var(--display); overflow: hidden; }
.st-work-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.st-work-txt { display: grid; min-width: 0; }
.st-work-txt b { font-size: 17px; }
.st-work-txt span { color: var(--ink3); font-size: 14px; }
.st-work-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* about */
.st-about-in { display: grid; gap: 32px; align-items: start; }
.st-about-who { text-align: center; }
.st-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: grid; place-items: center; }
.st-photo.sf-mono { font-size: 54px; background: var(--acc); color: var(--on-acc); }
.st-who-name { font: 700 20px var(--display); }
.st-who-role { color: var(--ink3); font-size: 14.5px; }
.st-story { margin-top: 16px; font-size: 18px; color: var(--ink2); white-space: pre-line; max-width: 38em; }
.st-about-fine { margin-top: 14px; color: var(--ink3); font-size: 15px; }
@media (min-width: 820px) { .st-about-in { grid-template-columns: 240px 1fr; gap: 56px; } }

/* footer */
.st-foot-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.st-foot-top .st-shield { margin-top: 0; }
.st-builtby { font-weight: 700; color: var(--ink); margin-bottom: 8px; }

/* the certificate dialog */
.st-verify { width: min(560px, calc(100vw - 24px)); background: var(--card); color: var(--ink); border-radius: 18px; overflow: hidden; }
.st-verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: #0E1430; color: #fff; font: 600 14px var(--body); }
.st-verify-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-verify-bar .sf-btn { min-height: 36px; padding: 6px 12px; }
.st-verify iframe { display: block; width: 100%; height: min(560px, 70vh); border: 0; background: #fff; }
.st-verify-pre, .st-verify-note { padding: 14px 16px; font-size: 14px; color: var(--ink2); }
.st-verify-note { border-top: 1px solid var(--line); }
.st-verify-note a { color: inherit; font-weight: 600; }

/* ---------- agency ---------- */
body.studio.d-agency { --radius: 6px; --radius-sm: 6px; }
.d-agency .st-hero { padding: 56px 0; }
.d-agency .st-hero-art { align-self: stretch; }
.d-agency .st-hero-card { height: 100%; min-height: 380px; background: var(--acc); color: var(--on-acc); border-radius: 6px; padding: 36px; }
.d-agency .st-hero-logo:not(.st-mono) { background: #fff; border-radius: 6px; padding: 18px; }
.d-agency .st-hero-logo.st-mono { background: var(--on-acc); color: var(--acc); }
.d-agency .sf-card { box-shadow: none; }
.d-agency .st-sec h2 { letter-spacing: -0.04em; }

/* ---------- main street ---------- */
body.studio.d-mainstreet { --bg: #EFF4F2; --bg2: #FFFFFF; --card: #FFFFFF; --line: #D5DFDA; --ink: #17241F; --ink2: #44544D; --ink3: #66766F; --radius: 18px; --radius-sm: 999px; }
.d-mainstreet .st-head { border-bottom: 0; }
/* The awning: stripes in their color with a scalloped edge, hanging under the header. */
.d-mainstreet .st-head::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--acc) 0 28px, #fff 28px 56px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, radial-gradient(circle 14px at 14px 12px, #000 97%, transparent 100%) 0 0 / 28px 26px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, radial-gradient(circle 14px at 14px 12px, #000 97%, transparent 100%) 0 0 / 28px 26px repeat-x;
  filter: drop-shadow(0 4px 6px rgba(23,36,31,.12)); }
.d-mainstreet .st-hero { padding-top: 96px; }
.d-mainstreet .st-hero h1 { font-weight: 700; letter-spacing: -0.02em; }
.d-mainstreet .st-hero-card { background: #fff; border-radius: 28px; padding: 40px 32px; border: 1px solid var(--line); }
.d-mainstreet .sf-card { box-shadow: 0 18px 40px -30px rgba(23,36,31,.45); }

/* ---------- bold ---------- */
body.studio.d-bold { --radius: 4px; --radius-sm: 4px; }
.d-bold .st-hero { --hero-bg: var(--acc); --hero-ink: var(--on-acc); --hero-ink2: color-mix(in srgb, var(--on-acc) 82%, var(--acc)); padding: 88px 0; }
.d-bold .st-hero h1 { font-size: clamp(42px, 7.6vw, 92px); font-weight: 900; max-width: 15ch; }
.d-bold .st-hero .sf-go { background: var(--on-acc); border-color: var(--on-acc); color: var(--acc); box-shadow: none; }
.d-bold .st-hero .st-ghost { background: transparent; border-color: color-mix(in srgb, var(--on-acc) 55%, transparent); color: var(--on-acc); }
.d-bold .st-hero .st-shield { background: transparent; border-color: color-mix(in srgb, var(--on-acc) 40%, transparent); color: var(--on-acc); }
.d-bold .st-hero-logo:not(.st-mono) { background: #fff; border-radius: 4px; padding: 18px; }
.d-bold .st-hero-logo.st-mono { background: var(--on-acc); color: var(--acc); }
.d-bold .st-sec h2 { font-weight: 900; letter-spacing: -0.04em; }
.d-bold .sf-card { box-shadow: none; border-width: 2px; border-color: var(--ink); }

/* ---------- minimal ---------- */
body.studio.d-minimal { --bg2: #FFFFFF; --radius: 2px; --radius-sm: 2px; }
.d-minimal .sf-wrap { width: min(860px, 100% - 32px); }
.d-minimal .st-hero { padding: 96px 0 72px; text-align: center; }
.d-minimal .st-hero-in { grid-template-columns: 1fr; }
.d-minimal .st-hero-art { display: none; }
.d-minimal .st-hero h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 600; letter-spacing: -0.03em; margin-inline: auto; max-width: 18ch; }
.d-minimal .st-lead { margin-inline: auto; }
.d-minimal .sf-hero-acts { justify-content: center; }
.d-minimal .st-sec { border-top: 1px solid var(--line); }
.d-minimal .st-sec h2 { font-weight: 600; font-size: clamp(26px, 3.8vw, 34px); }
.d-minimal .sf-card, .d-minimal .st-steps li, .d-minimal .sf-how-list li { box-shadow: none; }
.d-minimal .sf-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ---------- creative ---------- */
body.studio.d-creative { --bg: #F5F2FF; --bg2: #FFFFFF; --card: #FFFFFF; --line: #E2DBFA; --ink: #1D1638; --ink2: #4D4670; --ink3: #726B93; --radius: 28px; --radius-sm: 999px; }
.d-creative .st-hero h1 { font-weight: 800; }
.d-creative .st-hero-art { position: relative; }
.d-creative .st-hero-art::before { content: ''; position: absolute; inset: -14% -6% -16% 10%; background: var(--acc); border-radius: 46% 54% 38% 62% / 52% 38% 62% 48%; transform: rotate(-6deg); opacity: .9; }
.d-creative .st-hero-card { position: relative; background: #fff; border-radius: 32px; padding: 40px 28px; transform: rotate(2.5deg); box-shadow: 0 30px 60px -30px rgba(29,22,56,.5); }
.d-creative .sf-grid > .sf-card:nth-child(odd) { transform: rotate(-.6deg); }
.d-creative .sf-grid > .sf-card:nth-child(even) { transform: rotate(.6deg); }
.d-creative .sf-card { box-shadow: 0 20px 40px -30px rgba(29,22,56,.55); }

/* ---------- service ---------- */
body.studio.d-service { --bg: #F3F5F8; --bg2: #FFFFFF; --card: #FFFFFF; --line: #CDD4DF; --ink: #142036; --ink2: #3D4A63; --ink3: #5F6B82; --radius: 4px; --radius-sm: 4px; }
.d-service .st-head { background: #142036; border-bottom: 0; }
.d-service .st-head .st-brand, .d-service .st-head .st-nav a { color: #fff; }
.d-service .st-hero { --hero-bg: #1B2A45; --hero-ink: #fff; --hero-ink2: #C3CCDC; border-bottom: 6px solid var(--acc); }
.d-service .st-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.d-service .st-hero .st-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.d-service .st-hero .st-shield { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #fff; }
.d-service .st-hero-card { border: 2px solid rgba(255,255,255,.18); padding: 40px 28px; background: rgba(255,255,255,.04); }
.d-service .st-hero-logo:not(.st-mono) { background: #fff; padding: 16px; border-radius: 4px; }
.d-service .st-sec h2 { display: inline-block; padding-bottom: 10px; border-bottom: 4px solid var(--acc); }
.d-service .sf-card { box-shadow: none; border-top: 4px solid var(--acc); }

/* ---------- night (always dark) ---------- */
body.studio.d-night { --bg: #0D1016; --bg2: #121620; --card: #171C28; --ink: #EEF0F5; --ink2: #B7BDCC; --ink3: #8C93A6; --line: #262D3D; --radius: 14px; --radius-sm: 10px; }
.d-night .st-head { background: color-mix(in srgb, #0D1016 90%, transparent); }
.d-night .st-hero { background: radial-gradient(600px 420px at 78% 40%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%), var(--bg); }
.d-night .st-hero-logo { filter: drop-shadow(0 20px 50px color-mix(in srgb, var(--acc) 60%, transparent)); }
.d-night .st-hero-logo:not(.st-mono) { background: #fff; border-radius: 22px; padding: 18px; }
.d-night .sf-topnote { background: #05070B; }
.d-night .sf-card { box-shadow: none; }
.d-night .sf-quote { background: color-mix(in srgb, var(--acc) 12%, var(--card)); }

/* ---------- classic ---------- */
body.studio.d-classic { --bg: #FFFFFF; --bg2: #F6F4F1; --card: #FFFFFF; --line: #DAD5CC; --ink: #201C17; --ink2: #514A40; --ink3: #776E62; --radius: 2px; --radius-sm: 2px; }
.d-classic main { border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 5px; margin: 14px; }
.d-classic .st-hero { text-align: center; padding: 72px 0; }
.d-classic .st-hero-in { grid-template-columns: 1fr; }
.d-classic .st-hero-art { display: block; order: -1; }
.d-classic .st-hero-card { gap: 10px; }
.d-classic .st-hero-logo { width: 120px; }
.d-classic .st-hero-logo.st-mono { width: 96px; height: 96px; font-size: 38px; border-radius: 50%; }
.d-classic .st-hero-name { display: none; }
.d-classic .st-hero h1 { font-weight: 600; letter-spacing: -0.01em; margin-inline: auto; max-width: 18ch; }
.d-classic .st-lead { margin-inline: auto; }
.d-classic .sf-hero-acts { justify-content: center; }
.d-classic .st-sec-head { margin-inline: auto; text-align: center; }
.d-classic .st-sec h2 { font-weight: 600; letter-spacing: -0.01em; }
.d-classic .sf-card { box-shadow: none; }

/* ---------- dark (the designs that offer it) ---------- */
.studio.th-dark:not(.d-night) { --bg: #10131B; --bg2: #151924; --card: #1A1F2C; --ink: #EEF0F5; --ink2: #B7BDCC; --ink3: #8C93A6; --line: #2A3142; }
.studio.th-dark.d-mainstreet { --bg: #101814; --bg2: #16201B; --card: #1B2620; --line: #2A3A32; }
.studio.th-dark.d-creative { --bg: #15112A; --bg2: #1B1636; --card: #211B40; --line: #352D5C; }
.studio.th-dark.d-creative .st-hero-card { background: var(--card); }
.studio.th-dark.d-mainstreet .st-hero-card { background: var(--card); }
.studio.th-dark .sf-topnote { background: #05070B; }
.studio.th-dark .st-head { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.studio.th-dark.d-service .st-head { background: #0B1222; }

@media (max-width: 640px) {
  .st-hero { padding: 48px 0 44px; }
  .d-classic main { margin: 6px; outline: 0; }
  .st-brand-name { font-size: 17px; }
  .st-shield { font-size: 12.5px; }
  .d-creative .sf-grid > .sf-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .d-creative .sf-grid > .sf-card, .d-creative .st-hero-card { transform: none; } }

/* The sample studio (supabase/demo/demo_studio.sql): says plainly that it isn't a real business. */
.st-sample { background: #FFC93C; color: #141A2B; font-size: 14.5px; line-height: 1.45; padding: 10px 0; }
.st-sample a { color: #141A2B; font-weight: 700; }
