/* Screenshots: a subtle frame so UI captures read as figures rather than as
   part of the page chrome, plus a caption style for the accompanying <figcaption>. */
.md-typeset figure img {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
}

.md-typeset figure figcaption {
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  max-width: 40rem;
}

/* Home page cards. */
.md-typeset .home-cards > ul > li {
  border-radius: 0.3rem;
}

/* Placeholder for a screenshot that still needs capturing. Deliberately loud:
   it should be obvious in review that the page is not finished, and
   `grep -r screenshot-todo docs` lists everything still outstanding. */
.md-typeset .screenshot-todo {
  border: 1px dashed var(--md-accent-fg-color);
  border-radius: 0.3rem;
  padding: 0.8rem 1rem;
  margin: 1em 0;
  font-size: 0.75rem;
  background: var(--md-code-bg-color);
}

.md-typeset .screenshot-todo::before {
  content: "Screenshot needed";
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--md-accent-fg-color);
  margin-bottom: 0.3rem;
}

/* ---------------------------------------------------------------------------
   Under-construction banner (see overrides/main.html)

   Hazard stripes rather than a flat colour, so it reads as scaffolding and is
   obviously temporary — this whole block goes away with the banner itself.
   --------------------------------------------------------------------------- */

.md-banner {
  background: repeating-linear-gradient(
    45deg,
    #2b2b2b,
    #2b2b2b 1rem,
    #e8b923 1rem,
    #e8b923 2rem
  );
  color: #fff;
}

.wip-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.35rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: 0.2rem;
  background: rgba(0, 0, 0, 0.82);
  font-size: 0.7rem;
  line-height: 1.5;
}

.wip-banner__icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.wip-banner__text strong {
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wip-banner a {
  color: #ffd23f;
  text-decoration: underline;
}

.wip-banner a:hover {
  color: #fff;
}

/* On narrow screens the banner would otherwise eat half the viewport. */
@media screen and (max-width: 44.984375em) {
  .wip-banner {
    font-size: 0.62rem;
    padding: 0.5rem 0.6rem;
  }
}
