/* =======================
   Single Seed Project
   Compact banner + two column body with a sticky related strip
   ======================= */

.seedproject {
  --sp-max: 1440px;
  --sp-side: 340px;
  --sp-border: rgba(0, 159, 227, .14);

  /* The global --gutter scales up to calc(50vw - 50rem) because it is meant to
     centre content on its own. Here it is padding inside .container, which is
     also capped by --sp-max, so the two centring mechanisms stack and the text
     column collapses on wide monitors. Bound it locally. */
  --gutter: clamp(20px, 4vw, 72px);
}

/* --- Banner --- */
.sp-banner {
  background: linear-gradient(135deg, var(--al-navy) 0%, var(--al-indigo) 55%, var(--al-blue) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sp-banner::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 46%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(0, 159, 227, .35) 0%, rgba(0, 159, 227, 0) 65%);
  pointer-events: none;
}

.sp-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--sp-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-block: 44px 52px;
}

.sp-banner__back {
  display: inline-block;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 18px;
  transition: color .2s ease;
}

.sp-banner__back::before {
  content: "\2190";
  margin-right: .45rem;
}

.sp-banner__back:hover {
  color: #fff;
}

.sp-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sp-badge,
.sp-status {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sp-badge {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}

.sp-status--active { background: #10b981; color: #fff; }
.sp-status--planning { background: #f59e0b; color: #fff; }
.sp-status--completed { background: #3b82f6; color: #fff; }
.sp-status--on-hold { background: rgba(255, 255, 255, .22); color: #fff; }

.sp-banner__title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  margin: 0 0 14px;
  color: #fff;
}

.sp-banner__dek {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  margin: 0 0 18px;
  max-width: 56ch;
}

.sp-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
}

.sp-banner__media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(6, 18, 46, .38);
  background: rgba(255, 255, 255, .08);
}

.sp-banner__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --- Two column body --- */
.sp-layout {
  max-width: var(--sp-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sp-side);
  gap: 56px;
  align-items: start;
  padding-block: 48px 8px;
}

.sp-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

/* Without a sidebar there is nothing to balance against, so centre the text */
.sp-layout--full .prose,
.sp-layout--full .sp-chips {
  margin-inline: auto;
}

.sp-main {
  min-width: 0;
}

/* Wide enough to use the space, capped so lines stay readable */
.seedproject .prose {
  max-width: 860px;
}

.seedproject .prose p {
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 1rem 0;
}

.seedproject .prose h2 {
  margin: 2rem 0 1rem;
  color: var(--al-indigo);
  font-size: 1.55rem;
}

.seedproject .prose h3 {
  margin: 1.4rem 0 .6rem;
  color: var(--al-blue);
  font-size: 1.25rem;
}

.seedproject .prose ul,
.seedproject .prose ol {
  padding-left: 1.4rem;
  margin: 1rem 0;
}

.seedproject .prose li {
  margin: .4rem 0;
  line-height: 1.75;
}

.seedproject .prose blockquote {
  border-left: 4px solid var(--al-sky);
  padding: .5rem 1rem;
  background: rgba(0, 159, 227, .06);
  border-radius: 8px;
  margin: 1.5rem 0;
  font-style: italic;
}

.seedproject .prose img {
  border-radius: 14px;
}

/* --- Chips --- */
.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
  max-width: 780px;
}

.sp-chips .chip {
  margin: 0;
}

/* --- Sidebar --- */
.sp-side {
  min-width: 0;
}

.sp-side__sticky {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.sp-card {
  background: var(--al-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  padding: 20px 22px;
}

.sp-card__title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--al-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sp-border);
}

/* Key facts */
.sp-facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.sp-facts dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--al-muted);
}

.sp-facts dd {
  margin: 2px 0 0;
  font-size: .95rem;
  color: var(--al-text);
  word-break: break-word;
}

/* Members: reuse the expert card markup, compact */
.sp-members__list {
  display: grid;
  gap: 4px;
}

.sp-members .expert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 8px;
  margin: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  transition: background .2s ease;
}

.sp-members .expert-card:hover {
  background: rgba(0, 159, 227, .07);
  transform: none;
}

.sp-members .expert-photo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  background: var(--al-bg);
}

.sp-members .expert-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.sp-members .expert-content {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.sp-members .expert-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--al-navy);
  margin: 0;
  line-height: 1.3;
}

.sp-members .expert-keywords {
  font-size: .78rem;
  color: var(--al-muted);
  margin: 2px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Plain team list for people without an expert profile */
.sp-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sp-team li {
  display: flex;
  flex-direction: column;
  font-size: .93rem;
}

.sp-team span {
  font-size: .8rem;
  color: var(--al-muted);
}

/* Events */
.sp-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sp-event__date {
  flex: 0 0 42px;
  text-align: center;
  border-radius: 10px;
  padding: 6px 0;
  background: linear-gradient(135deg, var(--al-navy), var(--al-blue));
  color: #fff;
  line-height: 1;
}

.sp-event__date em {
  display: block;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.sp-event__date b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 2px;
}

.sp-event a {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--al-text);
}

.sp-event a:hover {
  color: var(--al-blue);
}

.sp-event--past .sp-event__date {
  background: #e2e8f0;
  color: var(--al-muted);
}

.sp-event--past a {
  color: var(--al-muted);
}

/* News */
.sp-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.sp-news__item a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sp-news__thumb {
  flex: 0 0 56px;
}

.sp-news__thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.sp-news__text {
  min-width: 0;
}

.sp-news__date {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--al-muted);
  margin-bottom: 2px;
}

.sp-news__title {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--al-text);
}

.sp-news__item a:hover .sp-news__title {
  color: var(--al-blue);
}

/* --- Section titles --- */
.sp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--al-navy);
  margin: 0 0 22px;
}

.sp-section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--al-sky), var(--al-blue));
}

/* --- Partners --- */
.sp-partners {
  max-width: 780px;
  margin-top: 44px;
}

.sp-partners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-partners__list li {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: var(--al-bg);
}

.sp-partners__list span {
  font-size: .85rem;
  color: var(--al-muted);
}

/* --- Outputs --- */
.sp-outputs,
.sp-related {
  max-width: var(--sp-max);
  margin-inline: auto;
  padding-block: 44px;
}

.sp-outputs {
  border-top: 1px solid var(--sp-border);
  margin-top: 32px;
}

.sp-outputs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.sp-output {
  background: var(--al-card);
  border: 1px solid var(--sp-border);
  border-left: 4px solid var(--al-sky);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sp-output:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 24, 40, .1);
}

.sp-output--file {
  border-left-color: var(--al-indigo);
}

.sp-output__type {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--al-blue);
  background: rgba(0, 105, 180, .09);
  padding: 4px 9px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.sp-output__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.sp-output__title a {
  color: var(--al-navy);
}

.sp-output__title a:hover {
  color: var(--al-blue);
}

.sp-output__meta {
  font-size: .85rem;
  color: var(--al-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .sp-layout {
    gap: 40px;
  }

  .seedproject {
    --sp-side: 300px;
  }
}

@media (max-width: 1024px) {
  .sp-banner__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 34px 40px;
  }

  .sp-banner__media {
    order: -1;
  }

  .sp-banner__media img {
    aspect-ratio: 16 / 9;
  }

  .sp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 36px 0;
  }

  .seedproject .prose,
  .sp-chips,
  .sp-partners {
    max-width: 100%;
  }

  .sp-side__sticky {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-banner__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .seedproject .prose p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .sp-side__sticky {
    grid-template-columns: 1fr;
  }

  .sp-outputs__grid {
    grid-template-columns: 1fr;
  }
}
