.entry-content .science-example {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0 0.75rem;
}

.science-example > p,
.science-example figure {
  margin: 0;
}

.science-example img {
  display: block;
  width: 100%;
  height: auto;
}

.science-request {
  min-width: 0;
  border: 1px solid #dce1e6;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8fa;
}

.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #dce1e6;
  background: #eef1f4;
  color: #39434e;
  font: 600 13px/1.5 Montserrat, sans-serif;
}

.prompt-toolbar .copy-prompt {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  min-height: 36px;
  border: 1px solid #b9c3ce;
  border-radius: 4px;
  background: #fff;
  color: #33465b;
  font: 600 12px/1.4 Montserrat, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.copy-prompt[hidden] {
  display: none;
}

.prompt-toolbar .copy-prompt:hover {
  border-color: #28618b;
  background: #e6eff7;
  color: #173e5d;
}

.prompt-toolbar .copy-prompt:focus-visible,
.science-request pre:focus-visible {
  outline: 2px solid #28618b;
  outline-offset: -3px;
}

.entry-content .science-request pre {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: #26313c;
  font: 14px/1.65 Inconsolata, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  tab-size: 2;
}

.entry-content .science-request code {
  padding: 0;
  background: none;
  font: inherit;
}

.entry-content .image-credit {
  margin-bottom: 2rem;
  font-size: 0.75em;
  color: #555;
}

@media (max-width: 700px) {
  .entry-content .science-example {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .science-example > p,
  .science-example figure {
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }

  .prompt-toolbar .copy-prompt {
    min-height: 44px;
    min-width: 60px;
  }
}
