/**
 * Talk to Launch — full wordmark logo (TALK mark + To Launch by Programmads).
 */

body.theme-ttl .ttl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

body.theme-ttl .ttl-logo__full,
body.theme-ttl img.ttl-logo__full {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  margin-inline: auto;
}

/* Sidebar header — slightly larger than default, centered in panel */
body.theme-tokyo .sidebar-brand .ttl-logo {
  justify-content: center;
  width: 100%;
}

body.theme-tokyo .sidebar-brand .ttl-logo__full,
body.theme-tokyo .sidebar-brand img.ttl-logo__full {
  width: auto;
  height: 52px;
  min-height: 0;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
}

body.theme-ttl .ttl-logo--auth {
  justify-content: center;
}

body.theme-ttl .ttl-logo--auth .ttl-logo__full,
body.theme-ttl .ttl-logo--auth img.ttl-logo__full {
  height: 60px;
}

/* Legacy composed logo (mark + copy) — keep sizing if any page still uses it */
body.theme-ttl .ttl-logo__mark,
body.theme-ttl img.ttl-logo__mark {
  flex-shrink: 0;
  display: block;
  height: 40px;
  width: auto;
}

body.theme-ttl .ttl-logo__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  width: fit-content;
  max-width: calc(100% - 52px);
}

body.theme-ttl .ttl-logo__title {
  font-family: var(--font, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-bright, #f0f4f8);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.theme-ttl .ttl-logo__by {
  font-family: var(--font, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-muted, #8899a8);
  letter-spacing: 0.01em;
  white-space: nowrap;
  align-self: flex-end;
}

body.theme-ttl .sidebar-brand--tokyo .brand-row {
  display: none;
}

@media (max-width: 860px) {
  body.theme-ttl .sidebar-brand .brand-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 10px 8px;
  }
}

body.theme-tokyo .ttl-logo-panel--tokyo {
  margin: 2px 4px 0;
  padding: 4px 6px 3px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(74, 168, 255, .05);
  position: relative;
  display: flex;
  justify-content: center;
}

/* Sidebar: compact inset panel */
body.theme-tokyo .sidebar-brand .ttl-logo-panel--tokyo {
  margin: 4px 4px 2px;
  padding: 1px 2px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: inset 0 0 16px rgba(74, 168, 255, .04);
  box-sizing: border-box;
  justify-content: center;
}

body.theme-tokyo .sidebar-brand .ttl-logo-panel--tokyo::after {
  left: 8px;
  right: 8px;
}

body.theme-tokyo .ttl-logo-panel--tokyo::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: .45;
}

body.theme-tokyo .auth-brand-zone .ttl-logo-panel--tokyo {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: center;
}

body.theme-tokyo .auth-brand-zone .ttl-logo-panel--tokyo::after {
  display: none;
}

body.theme-tokyo .auth-brand-zone .ttl-logo--auth .ttl-logo__full,
body.theme-tokyo .auth-brand-zone .ttl-logo--auth img.ttl-logo__full {
  margin: 0 auto;
}

/* Tokyo — wordmark sizing */
body.theme-tokyo .ttl-logo-panel--tokyo {
  align-items: center;
}

body.theme-tokyo .ttl-logo.ttl-logo--tokyo {
  width: auto;
  max-width: 100%;
  align-self: center;
}

body.theme-tokyo .ttl-logo.ttl-logo--tokyo .ttl-logo__full,
body.theme-tokyo .ttl-logo.ttl-logo--tokyo img.ttl-logo__full {
  width: auto;
  height: 60px;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
}

body.theme-tokyo .sidebar-brand .ttl-logo.ttl-logo--tokyo {
  width: 100%;
  max-width: 100%;
}

body.theme-tokyo .sidebar-brand .ttl-logo.ttl-logo--tokyo .ttl-logo__full,
body.theme-tokyo .sidebar-brand .ttl-logo.ttl-logo--tokyo img.ttl-logo__full {
  width: 100%;
  height: 60px;
  max-width: 100%;
  margin-inline: 0;
}

body.theme-tokyo .ttl-logo.ttl-logo--auth.ttl-logo--tokyo .ttl-logo__full,
body.theme-tokyo .ttl-logo.ttl-logo--auth.ttl-logo--tokyo img.ttl-logo__full {
  width: auto;
  height: 72px;
  max-width: 420px;
}
