/* PyAutoLens-only docs layer. The shared brand file `pyauto.css` is byte-identical
   across PyAutoFit / PyAutoGalaxy / PyAutoLens, so repo-specific rules live here
   instead of diverging it. The natural-language prompt block below is copied
   from PyAutoFit's `pyautofit.css` so prompts look the same in all three docs. */

/* Natural-language prompt blocks. A prompt is written as a blockquote wrapped in
   `:::{container} nl-prompt`, which gives it two things a plain blockquote has
   not got: a label saying what the block is, and a copy button so the prompt can
   be pasted straight into an AI coding agent. The label text lives here in
   `content:` so every prompt on every overview page picks it up simply by being
   wrapped in the same container — nothing is repeated in the Markdown.

   The container is the positioning context for the copy button, which
   sphinx-copybutton inserts as a sibling of the blockquote (see
   `copybutton_selector` in conf.py). */
.nl-prompt {
  position: relative;
  margin: 1.2rem 0;
}

.nl-prompt::before {
  content: "Example Natural Language Prompt for Claude Code, Codex or other AI coding agent";
  display: block;
  /* Keeps the label clear of the copy button when it wraps on narrow screens. */
  padding-right: 2.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--color-foreground-muted);
}

/* sphinx-copybutton's own stylesheet positions the button against `.highlight`
   code blocks and hard-codes GitHub's light-mode colours; both are re-stated
   here in Furo's theme variables so the button sits in the prompt container and
   follows light/dark mode. Idle at low opacity (like a code block's button),
   full opacity on hover or after a successful copy. */
.nl-prompt button.copybtn {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.35;
  border: 1px solid var(--color-background-border);
  background-color: var(--color-background-secondary);
  color: var(--color-foreground-muted);
}

.nl-prompt:hover button.copybtn,
.nl-prompt button.copybtn:focus-visible,
.nl-prompt button.copybtn.success {
  opacity: 1;
}

.nl-prompt button.copybtn:hover {
  background-color: var(--color-background-hover);
  color: var(--color-brand-content);
}

/* Feature overview: compact gallery and readable capability rows. */
.feature-gallery { width: 100%; table-layout: fixed; border-collapse: collapse; }
.feature-gallery td { padding: 8px; vertical-align: top; font-size: .9rem; }
.feature-gallery img { width: 100%; height: 145px; object-fit: contain; background: #071322; border-radius: 5px; }
.feature-entry { padding: 12px 0; border-bottom: 1px solid #dce5ec; }
.feature-entry h3 { font-size: 1.1rem; margin: 0 0 6px; }
.feature-entry p { margin: 0 0 8px; }
.feature-more-images { margin: 12px 0 24px; }
.feature-more-images summary, .directory summary { cursor: pointer; padding: 8px 0; }
.directory { padding: 15px 20px; border: 1px solid #dce5ec; border-radius: 6px; }
@media (max-width: 600px) { .feature-gallery tr { display: flex; flex-wrap: wrap; } .feature-gallery td { width: 50%; } .feature-gallery img { height: 110px; } }

/* Features page: tiled cards grouped by section */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 30px; }
.feature-grid .feature-entry { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--color-background-border, #dce5ec); border-radius: 8px; background: var(--color-background-secondary, #f8f9fb); scroll-margin-top: 4rem; }
.feature-grid .feature-entry:target { border-color: var(--color-brand-primary); box-shadow: 0 0 0 2px var(--color-brand-primary); }
.feature-grid .feature-thumb { display: block; margin: -4px -4px 10px; }
.feature-grid .feature-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 5px; background: #071322; }
.feature-grid .feature-entry h3 { font-size: 1rem; margin: 0 0 6px; }
.feature-grid .feature-entry p { font-size: .88rem; line-height: 1.45; margin: 0 0 8px; }
.feature-grid .feature-entry p:last-child { margin-top: auto; margin-bottom: 0; }
