/* Reserved placements for Google AdSense Auto Ads. */
.google-ad-space {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border: 1px dashed rgba(108, 117, 125, 0.28);
  border-radius: 12px;
  background: rgba(108, 117, 125, 0.035);
  color: rgba(108, 117, 125, 0.7);
}
.google-ad-space__label {
  font: 500 10px/1.2 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.google-ad-space--horizontal {
  width: min(970px, 100%);
  min-height: 110px;
  margin-inline: auto;
}
.google-ad-space--vertical {
  width: 100%;
  min-width: 120px;
  min-height: 600px;
}
.editor-ad-layout,
.download-ad-layout {
  width: 100%;
}
.editor-ad-layout {
  display: grid;
  gap: 16px;
}
.editor-ad-grid,
.download-ad-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 180px);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  margin-inline: auto;
}
/* Keep the editor in the center track when an ad blocker hides either side ad. */
.editor-ad-grid > [data-ad-position="left-of-editor"] { grid-column: 1; }
.editor-ad-grid > .app-inline-shell { grid-column: 2; }
.editor-ad-grid > [data-ad-position="right-of-editor"] { grid-column: 3; }

/* Keep download content centered when an ad blocker hides either side ad. */
.download-ad-grid > [data-ad-position="left-of-download"] { grid-column: 1; }
.download-ad-grid > .download-content { grid-column: 2; }
.download-ad-grid > [data-ad-position="right-of-download"] { grid-column: 3; }

.downloadMain {
  display: block !important;
  overflow: auto;
}
.download-ad-layout {
  display: grid;
  gap: 16px;
  padding: 24px 12px 48px;
}
.download-content {
  width: 100%;
  max-width: 980px;
  min-width: 0 !important;
  margin: 0 auto;
  padding: 0 16px 36px;
}
.download-card {
  width: min(860px, 100%);
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.download-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  text-decoration: none;
}
.download-back svg { flex: 0 0 auto; }
.download-preview {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-preview__image {
  width: min(820px, 100%);
  height: auto;
  max-height: min(76vh, 860px);
  object-fit: contain;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(233, 238, 247, 0.12);
}
.download-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.download-action {
  min-height: 44px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .editor-ad-grid,
  .download-ad-grid {
    grid-template-columns: minmax(100px, 140px) minmax(0, 1fr) minmax(100px, 140px);
    gap: 12px;
  }
  .google-ad-space--vertical { min-width: 100px; }
}
@media (max-width: 991px) {
  .editor-ad-grid,
  .download-ad-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-ad-grid > .app-inline-shell { grid-column: 1; }
  .download-ad-grid > .download-content { grid-column: 1; }
  .google-ad-space--vertical { display: none; }
  .google-ad-space--horizontal { min-height: 90px; }
  .download-ad-layout { padding-inline: 0; }
}
