/* Approved project banners: no fixed/floating UI and no reduced article width. */
.project-banner-slot[hidden], .project-banner-group[hidden] { display: none !important; }
.project-banner-slot { width: 100%; max-width: 480px; margin: 24px auto; }
.project-banner-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.project-banner-group .project-banner-slot { min-width: 0; margin: 0; }
.project-banner-link { display: block; overflow: hidden; border: 1px solid rgba(128,128,128,.3); border-radius: 10px; text-decoration: none; color: inherit; background: rgba(128,128,128,.06); }
.project-banner-link:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 4px; }
.project-banner-link picture, .project-banner-link img { display: block; width: 100%; }
.project-banner-link img { height: auto; }
.project-banner-caption { display: block; padding: 10px 14px; line-height: 1.5; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
/* App information is outside the work's hero, purchase controls and samples. */
.project-promo-section { margin: 36px 0 24px; padding-top: 20px; border-top: 1px solid var(--line, #ddd); }
.project-promo-heading { margin: 0 0 8px; font-size: 18px; }
.project-promo-note { margin: 0; color: var(--muted, #666); font-size: 14px; }
.project-promo-section .project-banner-group { margin: 16px 0 0; }
.project-promo-single .project-banner-slot { margin: 16px 0 0; }
.project-reader-note { margin: 28px 0 12px; padding: 16px 0; border-top: 1px solid var(--line, #ddd); font-size: 13px; color: var(--muted, #666); }
.project-reader-note p { margin: 6px 0; line-height: 1.65; }
.project-reader-note .project-reader-label { font-weight: 600; }
.project-reader-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .project-banner-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .project-banner-group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .project-banner-slot { max-width: 240px; margin: 20px auto; }
  .project-banner-group .project-banner-slot, .project-promo-single .project-banner-slot { margin-left: auto; margin-right: auto; }
}


.project-context-label { margin: 0 0 8px; color: var(--muted, #666); font-size: 13px; line-height: 1.5; }

/* Keep the product cover at its own height, independent of purchase-copy length. */
.title-page:not(.research-page) .detail-hero > .cover-frame { align-self: start; }

/* Requested top placement: shallow strips on desktop, clear text links on phones. */
.project-promo-top { margin: 0 0 16px; padding: 0; border: 0; }
.project-promo-top .project-banner-group { margin: 0; gap: 12px; }
.project-promo-top .project-banner-slot { max-width: none; }
.project-promo-top .project-banner-caption { padding: 7px 12px; font-size: 13px; }
@media (max-width: 1023px) {
  .project-promo-top .project-banner-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-promo-top .project-banner-slot { width: 100%; max-width: none; }
  .project-promo-top picture { display: block; }
  .project-promo-top .project-banner-link { height: 100%; }
  .project-promo-top .project-banner-caption { padding: 8px 12px; font-size: 14px; line-height: 1.5; }
}

/* Common outer column preserves the existing 932px desktop content. */
.project-layout-content { min-width: 0; }
.project-common-rail[hidden] { display: none !important; }
.project-common-rail { margin: 24px 0; }
.project-layout-shell--rail { display: grid; grid-template-columns: 932px 140px; gap: 20px; width: 1140px; padding: 24px; }
.project-layout-shell--rail > .site-footer { grid-column: 1; }
.project-layout-shell--rail .project-common-rail { display: grid; grid-template-columns: 140px; align-content: start; gap: 20px; margin: 0; padding-top: var(--project-common-offset, 0px); }
.project-layout-shell--rail .project-common-rail .project-banner-slot { width: 140px; max-width: 140px; }
.project-layout-shell--rail .project-common-rail .project-banner-link { border: 0; }
.project-layout-shell--rail .project-common-rail .project-banner-caption { padding: 8px 0; font-size: 13px; line-height: 1.5; }

@media (max-width: 600px) {
  .project-promo-top .project-banner-group { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
