/*
 * Custom pages (/{slug}) — widget styles. Markup: includes/custom_pages/render.php.
 *
 * Loaded two ways:
 *   - themed sites: automatically for page "custom_page" (themes/_base/layout.php);
 *   - legacy sites: linked by views/custom_page.php, with the derived template's --z-* tokens
 *     printed on .zcp (not :root) so the classic header/footer are untouched.
 *
 * RULES (same as every theme stylesheet): colours, fonts, radii and shadows ONLY from --z-*
 * tokens, so a widget follows the market's template and Light/Dark/Auto by itself; no
 * [data-zin-mode] or prefers-color-scheme; grids use minmax(0, 1fr). Template refinements are
 * scoped by the wrapper class .zcp--{theme} (it is on the wrapper, not <body>, so they also
 * apply on legacy sites).
 */

/* ---------------------------------------------------------------- base
   Element rules are zero-specificity (:where on both sides), like base.css, so every component
   class — .zt-btn--primary's text colour, .zt-title — wins over them. */
.zcp {
    --zcp-pad: 64px;
    background: var(--z-bg);
    color: var(--z-text);
    font-family: var(--z-font-body);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
:where(.zcp) :where(h1, h2, h3, h4) {
    font-family: var(--z-font-display);
    color: var(--z-text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}
:where(.zcp) :where(p) { margin: 0; }
:where(.zcp) :where(img) { max-width: 100%; height: auto; }
:where(.zcp) :where(a) { color: var(--z-accent-text); }
:where(.zcp) :where(:focus-visible) { outline: 3px solid var(--z-focus); outline-offset: 2px; }
.zcp .zt-heading { margin-bottom: 36px; }
.zcp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------ section frame */
.zcp-w { position: relative; padding: var(--zcp-pad) 0; }
.zcp-sp--compact  { --zcp-pad: 36px; }
.zcp-sp--normal   { --zcp-pad: 56px; }
.zcp-sp--spacious { --zcp-pad: 88px; }
@media (min-width: 768px) {
    .zcp-sp--compact  { --zcp-pad: 44px; }
    .zcp-sp--normal   { --zcp-pad: 80px; }
    .zcp-sp--spacious { --zcp-pad: 120px; }
}
.zcp-bg--tint    { background: var(--z-surface-2); border-top: 1px solid var(--z-border); border-bottom: 1px solid var(--z-border); }
.zcp-bg--surface { background: var(--z-surface); border-top: 1px solid var(--z-border); border-bottom: 1px solid var(--z-border); }
.zcp-bg--brand,
.zcp-bg--inverse { color: var(--z-hero-ink); background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to)); }
.zcp-bg--inverse { background: var(--z-text); color: var(--z-bg); }
.zcp-bg--brand :is(h2, h3, p, .zt-title, .zt-subtitle, .zt-eyebrow, .zt-prose, .zt-prose *),
.zcp-bg--inverse :is(h2, h3, p, .zt-title, .zt-subtitle, .zt-eyebrow) { color: inherit; }
.zcp-bg--brand .zt-subtitle, .zcp-bg--inverse .zt-subtitle { opacity: .88; }
.zcp-bg--brand .zt-btn--primary { background: var(--z-hero-ink); color: var(--z-hero-from); }
.zcp-bg--brand .zt-btn--secondary { background: transparent; color: inherit; border-color: currentColor; }
.zcp-bg--brand .zcp-feat :is(.zcp-feat__title, .zcp-feat__text) { color: inherit; }
.zcp-bg--brand .zcp-feat--plain .zcp-feat { color: inherit; }
.zcp-bg--brand .zcp-feat--plain .zcp-feat__icon { background: rgba(255, 255, 255, .16); color: inherit; }

.zcp-center { text-align: center; }

/* ---------------------------------------------------------------- buttons */
.zcp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.zcp-actions--start { justify-content: flex-start; }
.zcp-btn { max-width: 100%; text-align: center; }

/* ---------------------------------------------------------------- page-title band (page_hero) */
.zcp .zcp-title-band { padding: 64px 0 56px; }
@media (min-width: 768px) { .zcp .zcp-title-band { padding: 88px 0 72px; } }

/* ---------------------------------------------------------------- banner */
.zcp-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center;
    color: var(--z-hero-ink);
    background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to));
    text-align: center;
}
.zcp-hero :is(h1, h2, p) { color: inherit; }
.zcp-hero--compact { min-height: 0; padding: 64px 0 56px; }
.zcp-hero--medium  { min-height: clamp(340px, 52vh, 540px); padding: 72px 0; }
.zcp-hero--tall    { min-height: clamp(440px, 72vh, 760px); padding: 88px 0; }
.zcp-hero--full    { min-height: calc(100svh - 72px); padding: 96px 0; }
.zcp-hero--photo   { color: #ffffff; }
.zcp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.zcp-hero__shade { position: absolute; inset: 0; z-index: -1; background: #000000; }
.zcp-hero__inner { position: relative; width: 100%; }
.zcp-hero__eyebrow {
    display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.zcp-hero__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); font-weight: 800; overflow-wrap: anywhere; max-width: 18ch; margin: 0 auto; }
.zcp-hero__sub { font-size: clamp(1.02rem, .95rem + .45vw, 1.3rem); opacity: .92; max-width: 680px; margin: 18px auto 0; line-height: 1.6; }
.zcp-hero--left { text-align: left; }
.zcp-hero--left .zcp-hero__title,
.zcp-hero--left .zcp-hero__sub { margin-left: 0; }
.zcp-hero--left .zcp-actions { justify-content: flex-start; }
.zcp-hero .zt-btn--ghost { color: inherit; }

/* ---------------------------------------------------------------- prose / text */
.zcp-prose { margin-top: 0; }
.zcp-center .zcp-prose :where(ul, ol) { text-align: left; display: inline-block; }
.zcp-bg--brand .zcp-prose :where(a) { color: inherit; }

/* ---------------------------------------------------------------- image & text */
.zcp-split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) {
    .zcp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
    .zcp-split--right .zcp-split__media { order: 2; }
    .zcp-split--noimg { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}
.zcp-split__media { margin: 0; border-radius: var(--z-radius-lg); overflow: hidden; box-shadow: var(--z-shadow-lg); background: var(--z-surface-2); }
.zcp-split__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zcp-split__copy .zt-heading { margin-bottom: 18px; text-align: left; margin-left: 0; }

/* ---------------------------------------------------------------- grids */
.zcp-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
/* One item (one event, one card, one photo): a readable width, centred — not a full-width slab. */
.zcp-grid.zcp-cols-1 { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) {
    .zcp-grid.zcp-cols-2, .zcp-grid.zcp-cols-3, .zcp-grid.zcp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .zcp-grid.zcp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zcp-grid.zcp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- icon cards */
.zcp-feat {
    display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 26px 24px; border-radius: var(--z-radius-lg);
    background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
    color: var(--z-text); text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.zcp-feat:hover { transform: translateY(-3px); box-shadow: var(--z-shadow-lg); border-color: var(--z-accent); text-decoration: none; }
.zcp-feat--plain .zcp-feat { background: transparent; border-color: transparent; box-shadow: none; padding: 8px 4px; }
.zcp-feat__icon {
    width: 52px; height: 52px; border-radius: var(--z-radius); flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
    background: var(--z-accent-soft); color: var(--z-accent-text);
}
.zcp-feat__title { font-size: 1.15rem; font-weight: 700; }
.zcp-feat__text { color: var(--z-muted); line-height: 1.65; }

/* ---------------------------------------------------------------- numbers */
.zcp-stats { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .zcp-stats--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zcp-stats--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .zcp-stats--n1 { grid-template-columns: minmax(0, 1fr); }
}
.zcp-stats--n1 { grid-template-columns: minmax(0, 1fr); }
.zcp-stat { text-align: center; padding: 22px 12px; border-radius: var(--z-radius-lg); min-width: 0; }
.zcp-stats--band .zcp-stat { background: rgba(var(--z-bg-rgb), .07); }
.zcp-stats--cards .zcp-stat { background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow); }
.zcp-stat__num { font-family: var(--z-font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); line-height: 1.1; overflow-wrap: anywhere; }
.zcp-stats--cards .zcp-stat__num { color: var(--z-accent-text); }
.zcp-stat__label { margin-top: 6px; opacity: .82; font-weight: 500; }

/* ---------------------------------------------------------------- gallery */
.zcp-photo { position: relative; margin: 0; border-radius: var(--z-radius-lg); overflow: hidden; background: var(--z-surface-2); min-width: 0; }
.zcp-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.zcp-photo:hover img { transform: scale(1.03); }
.zcp-photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #ffffff; font-weight: 600; font-size: .95rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
}
.zcp-strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 10px;
    scrollbar-width: thin;
}
.zcp-strip .zcp-photo { scroll-snap-align: start; }
@media (min-width: 640px) { .zcp-strip { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) {
    .zcp-strip.zcp-cols-3 { grid-auto-columns: calc((100% - 32px) / 3); }
    .zcp-strip.zcp-cols-4 { grid-auto-columns: calc((100% - 48px) / 4); }
}

/* ---------------------------------------------------------------- testimonial carousel */
.zcp-tcar { position: relative; }
.zcp-tcar__track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 18px;
}
.zcp-tcar__track::-webkit-scrollbar { display: none; }
.zcp-tcard {
    flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin: 0;
    display: flex; flex-direction: column; gap: 16px;
    padding: 28px 26px; border-radius: var(--z-radius-lg);
    background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
    color: var(--z-text);
}
@media (min-width: 768px) {
    .zcp-tcar--per2 .zcp-tcard, .zcp-tcar--per3 .zcp-tcard { flex-basis: calc((100% - 20px) / 2); }
}
@media (min-width: 1100px) {
    .zcp-tcar--per3 .zcp-tcard { flex-basis: calc((100% - 40px) / 3); }
}
.zcp-tcar--per1 .zcp-tcard { align-items: center; text-align: center; padding: 40px 28px; }
@media (min-width: 768px) { .zcp-tcar--per1 .zcp-tcard { padding: 56px 72px; } }
.zcp-tcard__quote { margin: 0; flex: 1 1 auto; }
.zcp-tcard__quote p { font-size: 1.04rem; line-height: 1.7; }
.zcp-tcar--per1 .zcp-tcard__quote p { font-family: var(--z-font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.5; max-width: 760px; }
.zcp-tcard__quote p::before { content: "\201C"; }
.zcp-tcard__quote p::after { content: "\201D"; }
.zcp-stars { display: flex; gap: 3px; color: #f5a524; font-size: .95rem; }
.zcp-star--off { opacity: .25; }
.zcp-tcard__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zcp-tcard__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.zcp-tcard__ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--z-accent-soft); color: var(--z-accent-text); }
.zcp-tcard__meta { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.zcp-tcard__meta strong { font-weight: 700; overflow-wrap: anywhere; }
.zcp-tcard__meta small { color: var(--z-muted); font-size: .88rem; overflow-wrap: anywhere; }
.zcp-tcar__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.zcp-tcar__btn {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--z-surface); color: var(--z-text); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.zcp-tcar__btn:hover:not(:disabled) { background: var(--z-accent); color: var(--z-accent-ink); border-color: transparent; }
.zcp-tcar__btn:disabled { opacity: .4; cursor: default; }
.zcp-tcar__dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.zcp-tcar__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--z-border); border: 0; padding: 0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.zcp-tcar__dot.is-on { width: 24px; background: var(--z-accent); }
.zcp-bg--brand .zcp-tcard :is(p, strong) { color: var(--z-text); }

/* ---------------------------------------------------------------- social embeds */
.zcp-social { align-items: start; }
.zcp-social.zcp-cols-1 { max-width: 640px; margin: 0 auto; }
.zcp-embed { position: relative; width: 100%; margin: 0 auto; border-radius: var(--z-radius-lg); overflow: hidden; background: var(--z-surface-2); border: 1px solid var(--z-border); }
.zcp-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.zcp-embed--video { aspect-ratio: 16 / 9; }
.zcp-embed--vertical { aspect-ratio: 9 / 16; max-width: 380px; }
.zcp-embed--post { height: var(--zcp-embed-h, 600px); max-width: 540px; background: var(--z-surface); }
.zcp-embed--spotify { border: 0; background: transparent; }
.zcp-embed-link {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 20px;
    border-radius: var(--z-radius-lg); border: 1px dashed var(--z-border); background: var(--z-surface);
    color: var(--z-accent-text); font-weight: 600; overflow-wrap: anywhere; text-align: center;
}

/* ---------------------------------------------------------------- panels (soft CTA, newsletter) */
.zcp-panel {
    border-radius: var(--z-radius-lg); padding: 40px 22px;
    background: var(--z-surface-2); border: 1px solid var(--z-border);
}
@media (min-width: 768px) { .zcp-panel { padding: 56px 48px; } }
.zcp-panel--center { text-align: center; }
.zcp-panel__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; }
.zcp-panel__text { color: var(--z-muted); font-size: 1.06rem; line-height: 1.65; max-width: 620px; margin: 12px auto 0; }
.zcp-panel--brand { background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to)); color: var(--z-hero-ink); border-color: transparent; }
.zcp-panel--brand :is(.zcp-panel__title, .zcp-panel__text, .zcp-news__note, .zcp-news__status) { color: inherit; }
.zcp-panel--brand .zcp-panel__text { opacity: .9; }

/* ---------------------------------------------------------------- newsletter */
.zcp-news__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 26px auto 0; }
.zcp-news__input {
    flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 1rem;
    color: var(--z-text); background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 999px;
}
.zcp-news__input::placeholder { color: var(--z-muted); opacity: .8; }
.zcp-news__input:focus { outline: none; border-color: var(--z-accent-text); box-shadow: 0 0 0 3px var(--z-accent-soft); }
.zcp-news__form .zt-btn { flex: 0 0 auto; min-height: 48px; }
@media (max-width: 479px) { .zcp-news__form .zt-btn { flex: 1 1 100%; } }
.zcp-news__status { min-height: 1.4em; margin-top: 12px; font-weight: 600; }
.zcp-news__status.is-ok { color: var(--z-accent-text); }
.zcp-panel--brand .zcp-news__status.is-ok { color: inherit; }
.zcp-news__note { color: var(--z-muted); font-size: .88rem; margin-top: 8px; }

/* ---------------------------------------------------------------- FAQ */
.zcp-faq { display: flex; flex-direction: column; gap: 12px; }
.zcp-faq__item { border-radius: var(--z-radius); background: var(--z-surface); border: 1px solid var(--z-border); overflow: hidden; }
.zcp-faq__q {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; font-weight: 700; font-size: 1.04rem; color: var(--z-text);
}
.zcp-faq__q::-webkit-details-marker { display: none; }
.zcp-faq__q span { min-width: 0; overflow-wrap: anywhere; }
.zcp-faq__icon { flex: 0 0 auto; color: var(--z-accent-text); transition: transform .2s ease; }
.zcp-faq__item[open] .zcp-faq__icon { transform: rotate(45deg); }
.zcp-faq__a { padding: 0 20px 20px; color: var(--z-muted); line-height: 1.7; overflow-wrap: anywhere; }
.zcp-faq__a a { color: var(--z-accent-text); text-decoration: underline; }

/* ---------------------------------------------------------------- steps */
.zcp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .zcp-steps:not(.zcp-steps--n1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .zcp-steps.zcp-steps--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zcp-steps.zcp-steps--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zcp-step { position: relative; min-width: 0; padding: 26px 22px; border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow); }
.zcp-step__num {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    margin-bottom: 14px; font-weight: 800; font-family: var(--z-font-display);
    background: var(--z-accent); color: var(--z-accent-ink);
}
.zcp-step__title { font-size: 1.12rem; font-weight: 700; }
.zcp-step__text { color: var(--z-muted); line-height: 1.65; margin-top: 8px; }

/* ---------------------------------------------------------------- team */
/* Fewer people than columns: keep the cards a sensible width and centred. */
.zcp-team.zcp-cols-1 { max-width: 400px; margin-left: auto; margin-right: auto; }
.zcp-team.zcp-cols-2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.zcp-person { text-align: center; min-width: 0; padding: 26px 20px; border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow); }
.zcp-person__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; border: 4px solid var(--z-surface-2); }
.zcp-person__ini { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; background: var(--z-accent-soft); color: var(--z-accent-text); }
.zcp-person__name { font-size: 1.15rem; font-weight: 700; }
.zcp-person__name a { color: inherit; text-decoration: none; }
.zcp-person__name a:hover { color: var(--z-accent-text); }
.zcp-person__role { color: var(--z-accent-text); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.zcp-person__bio { color: var(--z-muted); line-height: 1.6; margin-top: 10px; font-size: .95rem; }

/* ---------------------------------------------------------------- events */
.zcp-event {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-decoration: none; color: var(--z-text);
    border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.zcp-event:hover { transform: translateY(-3px); box-shadow: var(--z-shadow-lg); text-decoration: none; }
.zcp-event__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--z-accent-soft); color: var(--z-accent-text); font-size: 2rem; overflow: hidden; }
.zcp-event__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zcp-event__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.zcp-event__when { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--z-accent-text); }
.zcp-event__name { font-family: var(--z-font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.zcp-event__where { color: var(--z-muted); font-size: .92rem; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- vendors */
.zcp-vendors { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .zcp-vendors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .zcp-vendors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zcp-vendor {
    display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 20px 14px; text-align: center;
    text-decoration: none; color: var(--z-text); border-radius: var(--z-radius-lg);
    background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
    transition: transform .18s ease, border-color .18s ease;
}
.zcp-vendor:hover { transform: translateY(-2px); border-color: var(--z-accent); text-decoration: none; }
.zcp-vendor__logo { width: 84px; height: 84px; border-radius: var(--z-radius); background: var(--z-chip); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zcp-vendor__logo img { width: 100%; height: 100%; object-fit: contain; }
.zcp-vendor__ini { font-size: 2rem; font-weight: 800; background: var(--z-accent-soft); color: var(--z-accent-text); }
.zcp-vendor__name { font-weight: 700; overflow-wrap: anywhere; }
.zcp-vendor__cat { font-size: .82rem; color: var(--z-muted); }

/* ---------------------------------------------------------------- sponsors */
.zcp-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.zcp-logo { width: 160px; max-width: calc(50% - 8px); height: 92px; padding: 14px; }
.zcp-logo a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.zcp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------------------------------------------------------------- map */
.zcp-map { border-radius: var(--z-radius-lg); overflow: hidden; border: 1px solid var(--z-border); background: var(--z-surface-2); height: var(--zcp-map-h, 400px); }
.zcp-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.zcp-map__addr { margin-top: 14px; text-align: center; color: var(--z-muted); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- custom code / spacer */
.zcp-code { overflow-x: auto; }
.zcp-code--full { width: 100%; }
.zcp-spacer--sm { height: 24px; }
.zcp-spacer--md { height: 56px; }
.zcp-spacer--lg { height: 104px; }
.zcp-spacer { display: flex; align-items: center; }
.zcp-spacer .zt-container { width: 100%; }
.zcp-rule { border: 0; border-top: 1px solid var(--z-border); margin: 0; }

/* ---------------------------------------------------------------- CTA band spacing (the template's cta component) */
.zcp .zcp-w--cta { padding: 0; }
.zcp .zcp-w--cta > .zt-cta { padding: calc(var(--zcp-pad) / 2) 0; }

/* ---------------------------------------------------------------- builder preview (staff, ?zcp_edit=1) */
[data-zcp-edit] [data-zcp-uid] { cursor: pointer; }
[data-zcp-edit] [data-zcp-uid]:hover { outline: 2px dashed var(--z-focus); outline-offset: -4px; }
[data-zcp-edit] [data-zcp-uid].zcp-is-flash { outline: 3px solid var(--z-focus); outline-offset: -4px; }
.zcp-empty-note { padding: 64px 16px; }

/* ---------------------------------------------------------------- template refinements */
/* Market Day: serif display type, italic quotes, warm rounded tiles. */
.zcp--market_day .zcp-hero__eyebrow { font-family: var(--z-font-body); letter-spacing: .14em; }
.zcp--market_day .zcp-tcard__quote p { font-family: var(--z-font-display); font-style: italic; font-size: 1.12rem; }
.zcp--market_day .zcp-feat__icon,
.zcp--market_day .zcp-step__num { border-radius: 50%; }
.zcp--market_day .zcp-event__when { letter-spacing: .1em; }
/* Modern: tight display type, uppercase micro-labels, crisp outlines. */
.zcp--modern .zcp-hero__title,
.zcp--modern .zcp-panel__title { letter-spacing: -0.03em; }
.zcp--modern .zcp-hero__eyebrow { border-radius: var(--z-radius); letter-spacing: .14em; }
.zcp--modern .zcp-feat, .zcp--modern .zcp-tcard, .zcp--modern .zcp-step { box-shadow: none; }
.zcp--modern a.zcp-feat:hover { box-shadow: var(--z-shadow); }
/* Member: squarer cards and an accent rule on quotes. */
.zcp--member .zcp-tcard { border-top: 3px solid var(--z-accent); }
.zcp--member .zcp-step__num { border-radius: var(--z-radius); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    .zcp-feat, .zcp-event, .zcp-vendor, .zcp-photo img, .zcp-faq__icon, .zcp-tcar__dot, .zcp-tcar__btn { transition: none; }
    a.zcp-feat:hover, .zcp-event:hover, .zcp-vendor:hover { transform: none; }
    .zcp-photo:hover img { transform: none; }
    .zcp-tcar__track { scroll-behavior: auto; }
}
