/* The 021 grid logo in place of the snapshot's Lev logo (header, mobile bar, footer, conversion pages).
   The Lev <svg> stays in the DOM, so React hydration is untouched: its paths are hidden and the box is painted
   with the logo as a mask over currentColor. currentColor is the theme's logo colour (theme.py _logo_rules), so
   the light and dark copies of the logo follow the Tema panel on their own.
   021-grid-logo-ui.svg is the logo tuned for header size: strokes keep the digits, ZERO·TO·ONE and the grid visible.
   Built by scripts/brand_logo.py. runtime.js renames the aria-labels, so the selector keys on the Lev viewBox. */
svg[viewBox="0 0 74 24"][role="img"] {
  height: 44px;
  width: 75px;
  background: currentColor;
  -webkit-mask: url(brand/021-grid-logo-ui.svg) left center / contain no-repeat;
  mask: url(brand/021-grid-logo-ui.svg) left center / contain no-repeat;
}
svg[viewBox="0 0 74 24"][role="img"] > * { visibility: hidden }
footer.site-footer svg[viewBox="0 0 74 24"][role="img"] { height: 64px; width: 109px }

/* Footer: the columns take their natural width and share the free space, a list longer than six links folds into
   a second column, so no column towers over the rest. Headings speak the mega menu's mono label. Mobile keeps the
   stock two-column stack; the fold keys on the link count, so links added in the Menü panel keep working. */
footer.site-footer .Footer-module__yg9ahW__heading {
  margin-bottom: 1.125rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
footer.site-footer .Footer-module__yg9ahW__closingBar { margin-top: 4rem }
footer.site-footer .Footer-module__yg9ahW__brandLogo { display: flex; flex-direction: column; align-items: flex-start }
/* Closing bar (owner, 2026-11-30): the logo on the left, © + legal links on the right; no tagline, no city line. */
footer.site-footer .z21-foot-line,
footer.site-footer .Footer-module__yg9ahW__contact { display: none }
@media (min-width: 1024px) {
  footer.site-footer .Footer-module__yg9ahW__legalAndCopyright { margin-left: auto }
}
@media (min-width: 560px) and (max-width: 1023px) {
  footer.site-footer .Footer-module__yg9ahW__legalAndCopyright { justify-self: end }
}
@media (max-width: 559px) {
  footer.site-footer .Footer-module__yg9ahW__legalAndCopyright { margin-top: .875rem }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  footer.site-footer .Footer-module__yg9ahW__desktopNavigation { grid-template-columns: repeat(5, minmax(0, 1fr)) }
}
@media (min-width: 1240px) {
  footer.site-footer .Footer-module__yg9ahW__desktopNavigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
  }
  footer.site-footer .Footer-module__yg9ahW__desktopNavigation .Footer-module__yg9ahW__link { white-space: nowrap }
  footer.site-footer .Footer-module__yg9ahW__desktopNavigation .Footer-module__yg9ahW__linkList:has(> li:nth-child(7)) {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-rows: repeat(6, auto);
    column-gap: 2.5rem;
  }
}

/* Blog infographics (cms/server/infographic.py): every colour is var(--z21-ig-*, <ZT dark value>). A Tema palette
   sets them from its own colours (theme.py _ig_vars, more specific than these rules). Without one (the original
   Lev theme) they follow the site's tokens in either mode, with ZT's greys at the same lightness steps; the
   literal values are only for a page that has no tokens. Light is .theme-marketing without .dark (as in theme.py). */
html.theme-marketing.dark {
  --z21-ig-bg: var(--background, #000);
  --z21-ig-grid: color-mix(in oklab, var(--background, #000) 78%, var(--foreground, #fff));
  --z21-ig-frame: color-mix(in oklab, var(--background, #000) 67%, var(--foreground, #fff));
  --z21-ig-ink: var(--foreground, #fff);
  --z21-ig-muted: var(--muted-foreground, #8a8a8a);
  --z21-ig-soft: color-mix(in oklab, var(--muted-foreground, #8a8a8a) 55%, var(--foreground, #fff));
  --z21-ig-accent: var(--primary, #3449ee);
}
html.theme-marketing:not(.dark) {
  --z21-ig-bg: var(--background, #fff);
  --z21-ig-grid: color-mix(in oklab, var(--background, #fff) 94%, var(--foreground, #0a0a0a));
  --z21-ig-frame: color-mix(in oklab, var(--background, #fff) 83%, var(--foreground, #0a0a0a));
  --z21-ig-ink: var(--foreground, #0a0a0a);
  --z21-ig-muted: var(--muted-foreground, #6b6b6b);
  --z21-ig-soft: color-mix(in oklab, var(--muted-foreground, #6b6b6b) 55%, var(--foreground, #0a0a0a));
  --z21-ig-accent: var(--primary, #3449ee);
}

/* 021 studio plates in the /source template's image slots (posters from runtime.js, live scenes from scenes/live.js).
   Tab cards: the slot keeps the plate's 515:340 at the column's full width, instead of whatever height the card's
   text leaves over (it ranged 285–394px on desktop and 171px on a phone, shrinking the drawing and its labels).
   Phones: the hero and tab stages show the whole plate (no side crop) unless the page has a phone plate for that
   slot ('<id>@m' in the studio; live.js lists them on <html data-z21-m>), which is drawn for the slot's own shape. */
/* The loan-servicing template's story demos set an inline `visibility: visible` on their window (its reduced-motion
   path), which beats the slot's `>*{visibility:hidden}` and would draw Lev's demo over the poster. */
[data-cms-slot^="e_slot_"] [style*="visibility"]:not([data-z21-live]) { visibility: hidden !important; }
[class*="__bento"] > [data-cms-slot^="e_slot_k"] { flex: none !important; aspect-ratio: 515 / 340; height: auto !important; min-height: 0 !important; }
[class*="__bento"]:has(> [data-cms-slot^="e_slot_k"]) { height: auto !important; }
@media (max-width: 767.98px) {
  html:not([data-z21-m~="hero"]) [class*="lev-originate-hero-module"][data-cms-slot="e_slot_hero"] { aspect-ratio: 1376 / 764; height: auto !important; min-height: 0 !important; overflow: hidden; }
  html:not([data-z21-m~="s1"]) .workflow-story-demo-band[data-cms-slot="e_slot_s1"], html:not([data-z21-m~="s2"]) .workflow-story-demo-band[data-cms-slot="e_slot_s2"],
  html:not([data-z21-m~="s3"]) .workflow-story-demo-band[data-cms-slot="e_slot_s3"], html:not([data-z21-m~="s4"]) .workflow-story-demo-band[data-cms-slot="e_slot_s4"] {
    aspect-ratio: 1030 / 653; height: auto !important; min-height: 0 !important;
  }
}

/* EN | TR switch (runtime.js, I18N.md §5): a pill beside the header CTA in the CTA's own measure (36px, 13px, the
   input border), the mobile menu's footer row, and a fixed control on pages without the site header (/book-a-call).
   The current language is the foreground colour and aria-current; the other one is a plain link. The control on a
   page without the header sits in its top corner and scrolls away with it (it would cover the scheduler on a phone). */
.zto-lang { display: inline-flex; align-items: center; gap: .125rem; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap }
.zto-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .25rem; border-radius: 9999px;
  color: var(--muted-foreground); text-decoration: none; letter-spacing: .02em; transition: color .15s }
.zto-lang a:hover, .zto-lang a[aria-current] { color: var(--foreground) }
.zto-lang a:focus-visible { outline: 2px solid var(--cta, currentColor); outline-offset: 2px }
.zto-lang > span { color: var(--border); user-select: none }
.zto-lang--head { height: 2.25rem; padding: 0 .375rem; border: 1px solid var(--input, var(--border)); border-radius: 9999px }
.zto-lang--sheet { margin-left: auto; font-size: 15px }
.zto-lang--sheet a { min-width: 2.75rem; height: 2.75rem }
.zto-lang--fixed { position: absolute; top: 1rem; right: 1rem; z-index: 50; height: 2.25rem; padding: 0 .375rem; border: 1px solid var(--input, var(--border));
  border-radius: 9999px; background: var(--background) }
@media (prefers-reduced-motion: reduce) { .zto-lang a { transition: none } }
