/* Word fill-in demo page (/fillin_demo, #2491). The generator shell uses the
   shared maze_demo / wordsearch / crossword styles; this file only holds what
   is specific to the fill-in page. */

/* The 17x17 Jumbo grid plus its word bank renders a tall PNG. Cap the
   preview image height (not the PNG itself) so it never pushes the rest of
   the page out of reach at 1366x768; the image keeps its aspect ratio. */
#fillin-preview img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--mg-border);
  background: var(--mg-surface);
}

@media (max-width: 767.98px) {
  #fillin-preview img {
    max-height: none;
    width: 100%;
  }
}

/* ── SEO landing copy (#2493) ──
   Sits inside the scrolling preview column, below the generator. Same shape
   as the train tracks block (#2328); design tokens only. */
.fillin-seo {
  max-width: 820px;
  width: 100%;
  margin: 2rem auto 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mg-border);
  color: var(--mg-text);
  line-height: 1.6;
}

.fillin-seo .fillin-seo-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mg-text);
  margin: 1.5rem 0 0.75rem;
}

.fillin-seo .fillin-seo-heading:first-child {
  margin-top: 0;
}

.fillin-seo p {
  color: var(--mg-text);
}

.fillin-seo-faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mg-text);
  margin-bottom: 0.5rem;
}

.fillin-seo-faq-item p {
  color: var(--mg-text-muted);
  margin-bottom: 0;
}

.fillin-seo-faq-item + .fillin-seo-faq-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mg-border);
}

/* ── Print ── */
@media print {
  .fillin-seo {
    display: none !important;
  }
}
