/* Scoped additions: preserve the geometry and appearance of every existing project card. */
.projects-page .portal-projects { border-top: 1px solid var(--pj-line); }
.projects-page .portal-project-grid .app-head { flex-wrap: wrap; }
.projects-page .portal-project-grid .app-icon {
  box-sizing: border-box;
  padding: 11px;
  border: 1px solid #f1dcc4;
  background: #fff3e5;
}
.projects-page .portal-project-grid .product-status { white-space: normal; }
.projects-page .portal-project-grid .product-note { padding-bottom: 14px; }
.projects-page .portal-project-grid .app-foot { padding-top: 12px; border-top: 1px solid var(--pj-line); }
.projects-page .portal-project-grid .product-link { min-width: 44px; }

.portal-detail .projects-hero h1 { max-width: 19ch; font-size: clamp(38px, 5vw, 68px); }
.portal-detail .projects-hero .projects-lead { max-width: 65ch; }
.portal-detail .portal-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 24px; font-size: 14px; line-height: 1.5; color: #d5deea; }
.portal-detail .portal-breadcrumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: #f8ba85 !important; text-decoration: underline; text-underline-offset: 4px; }
.portal-detail .portal-project-name { margin-bottom: 12px; color: #ffffff; font-size: 18px; font-weight: 600; }
.portal-detail .portal-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; color: #e6edf7; font-size: 15px; line-height: 1.5; }
.portal-detail .portal-date { margin-top: 14px; font-size: 13.5px; color: #c9d4e3; }
.portal-detail :is(.portal-current, .portal-next, .portal-method, .portal-related) { padding-block: 40px; }
.portal-detail .portal-features { display: grid; gap: 12px; }
.portal-detail .portal-feature { padding: 22px; border: 1px solid var(--pj-line); border-radius: 20px; }
.portal-detail :is(.portal-feature, .portal-stack) h3 { margin-bottom: 12px; color: var(--pj-ink); font-size: 22px; line-height: 1.3; }
.portal-detail :is(.portal-feature, .portal-prose) p { font-size: 16.5px; line-height: 1.7; }
.portal-detail .portal-next { background: var(--pj-soft); border-block: 1px solid var(--pj-line); }
.portal-detail .portal-two-col { display: grid; gap: 24px; }
.portal-detail .portal-two-col .projects-section-head { margin-bottom: 0; }
.portal-detail .portal-next-summary { align-self: center; margin: 0; font-size: 16.5px; line-height: 1.7; }
.portal-detail .portal-roadmap { display: grid; gap: 18px; }
.portal-detail .portal-roadmap li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.65; }
.portal-detail .portal-roadmap li::before { content: ''; position: absolute; top: 10px; left: 0; width: 8px; height: 8px; background: var(--pj-amber-ink); border-radius: 2px; }
.portal-detail .portal-prose > p + p { margin-top: 18px; }
.portal-detail .portal-stack { border-top: 1px solid var(--pj-line); margin-top: 28px; padding-top: 24px; }
.portal-detail .portal-stack p { font-size: 15px; }
.portal-detail .portal-related { background: var(--pj-soft); }
.portal-detail .portal-related .container { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.portal-detail .portal-related .container > div { flex: 1 1 100%; }
.portal-detail .portal-related h2 { font-family: var(--pj-serif); color: var(--pj-ink); font-size: 34px; font-weight: 400; line-height: 1.15; }

@media (min-width: 768px) {
  .projects-page .portal-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-detail .portal-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .portal-detail :is(.portal-current, .portal-next, .portal-method, .portal-related) { padding-block: 64px; }
  .portal-detail .portal-method .portal-two-col,
  .portal-detail .portal-next .portal-two-col {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
  }
  .portal-detail .portal-related .container > div { flex: 1; }
}
