/*
 * YOYONAUTAS — fonte única para o tamanho e a proporção do logo público.
 * Os layouts definem apenas onde o logo aparece; este arquivo controla sua escala.
 */
:root {
  --yoyonautas-shell-width: 1480px;
  --yoyonautas-shell-sidebar: 330px;
  --yoyonautas-shell-gap: clamp(42px, 5vw, 76px);
  --yoyonautas-logo-desktop-width: 252px;
  --yoyonautas-logo-desktop-height: 104px;
  --yoyonautas-logo-tablet-width: 228px;
  --yoyonautas-logo-tablet-height: 94px;
  --yoyonautas-logo-mobile-width: min(78vw, 280px);
  --yoyonautas-logo-mobile-height: 76px;
}

html body.page-internal .imt-layout,
html body.page-internal.imt-standard-site .imt-layout,
html body.page-home-editorial .editorial-layout {
  width: min(var(--yoyonautas-shell-width), calc(100% - 48px)) !important;
  grid-template-columns: var(--yoyonautas-shell-sidebar) minmax(0, 1fr) !important;
  gap: var(--yoyonautas-shell-gap) !important;
}

html body .yoyonautas-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: var(--yoyonautas-logo-desktop-width) !important;
  height: var(--yoyonautas-logo-desktop-height) !important;
  min-width: 0 !important;
  max-width: var(--yoyonautas-logo-desktop-width) !important;
  min-height: var(--yoyonautas-logo-desktop-height) !important;
  max-height: var(--yoyonautas-logo-desktop-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-decoration: none;
}

html body .yoyonautas-brand img,
html body .yoyonautas-brand > .logo-shine-overlay {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

html body .yoyonautas-brand--mobile {
  margin-inline: auto !important;
  justify-content: center !important;
}

@media (max-width: 1120px) and (min-width: 861px) {
  html body.page-internal .imt-layout,
  html body.page-internal.imt-standard-site .imt-layout,
  html body.page-home-editorial .editorial-layout {
    width: min(var(--yoyonautas-shell-width), calc(100% - 48px)) !important;
    grid-template-columns: 276px minmax(0, 1fr) !important;
    gap: 42px !important;
  }

  html body .yoyonautas-brand {
    width: var(--yoyonautas-logo-tablet-width) !important;
    height: var(--yoyonautas-logo-tablet-height) !important;
    max-width: var(--yoyonautas-logo-tablet-width) !important;
    min-height: var(--yoyonautas-logo-tablet-height) !important;
    max-height: var(--yoyonautas-logo-tablet-height) !important;
  }
}

@media (max-width: 860px) {
  html body.page-internal .imt-layout,
  html body.page-internal.imt-standard-site .imt-layout,
  html body.page-home-editorial .editorial-layout {
    display: block !important;
    width: min(calc(100% - 28px), 720px) !important;
    margin-inline: auto !important;
    padding-top: 0 !important;
  }

  html body .yoyonautas-brand {
    width: var(--yoyonautas-logo-mobile-width) !important;
    height: var(--yoyonautas-logo-mobile-height) !important;
    max-width: var(--yoyonautas-logo-mobile-width) !important;
    min-height: var(--yoyonautas-logo-mobile-height) !important;
    max-height: var(--yoyonautas-logo-mobile-height) !important;
    margin-inline: auto !important;
    justify-content: center !important;
  }

  html body .yoyonautas-brand img,
  html body .yoyonautas-brand > .logo-shine-overlay {
    margin-inline: auto !important;
    object-position: center !important;
  }

  .page-internal .imt-mobile-brand-row {
    justify-content: center;
  }

  .page-internal .imt-mobile-brand-row > span {
    display: none;
  }
}
