/* Download-first sample: ready files before the optional editor. */
.ready-downloads { padding-block: 28px 48px; }
.ready-downloads h2 { margin: 0 0 10px; font-size: 28px; }
.ready-downloads > p { max-width: 68ch; color: var(--text-ink, #3a3a3a); line-height: 1.6; }
.ready-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.ready-download { min-width: 0; }
.ready-download-preview { display: flex; justify-content: center; align-items: center; height: 300px; padding: 20px; background: #eceeef; border-radius: 12px; }
.ready-download-preview img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; }
.ready-download-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 14px; }
.ready-download-meta { min-width: 0; }
.ready-download h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.ready-download p { margin: 0; color: var(--text-ink, #3a3a3a); font-size: 12px; line-height: 1.5; }
.ready-download-action { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #bbb; border-radius: 5px; background: #fff; color: #222; font-size: 12px; line-height: 1.5; text-decoration: none; }
.ready-download-action:hover { border-color: #222; background: #f0f0f0; }
.ready-download-action:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.ready-customise-link { display: inline-block; margin-top: 24px; text-decoration: underline; text-underline-offset: 4px; }
#practice .style-studio { margin-bottom: 28px; }
@media (max-width: 620px) {
  .ready-download-grid { grid-template-columns: 1fr; gap: 32px; }
  .ready-download-preview { height: 280px; }
  .ready-downloads h2 { font-size: 24px; }
}

.hero:has(+ .ready-downloads) { padding-bottom: 12px; }

@media (min-width: 1041px) {
  .ready-download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ready-connections-title { margin: 36px 0 0; font-size: 20px; font-weight: 500; }

/* Keep the sample's introduction to a compact title and case switch. */
.hero:has(+ .ready-downloads) { padding-top: 24px; padding-bottom: 0; }
.hero:has(+ .ready-downloads) .hero-heading { align-items: center; gap: 16px; margin-bottom: 0; }
.hero:has(+ .ready-downloads) #pageTitle { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.hero:has(+ .ready-downloads) #letterIndex,
.hero:has(+ .ready-downloads) #pageIntro,
.hero:has(+ .ready-downloads) .letter-profile { display: none; }
.hero:has(+ .ready-downloads) .case-switch { margin: 0; }
@media (max-width: 700px) {
  .hero:has(+ .ready-downloads) .hero-heading { align-items: flex-start; gap: 10px; }
  .hero:has(+ .ready-downloads) #pageTitle { font-size: 24px; }
  .hero:has(+ .ready-downloads) .case-switch { width: auto; }
}

/* Letter artwork near the end of the page, also the page's main image for image search. */
.search-hero-figures { display: flex; gap: 16px; margin: 0 0 28px; }
#alphabet .search-hero-figures { margin-top: 24px; }
.search-hero-figures img { display: block; flex: 1 1 0; min-width: 0; width: 100%; max-width: 400px; height: auto; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; }

.ready-downloads #readyDownloadsTitle { font-size: 18px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }

.letter-section-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.letter-section-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-ink, #3a3a3a); text-decoration: underline; text-decoration-color: #bbb; text-underline-offset: 5px; }
.letter-section-nav a:hover { color: #000; text-decoration-color: currentColor; }
.letter-section-nav a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
#readyDownloads, #practice, #connections { scroll-margin-top: 24px; }
