/* ═══════════════════════════════════════════════════════════
   Cymela — MultiThink Page Styles
   Architecture, gate ladder, honest status
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Header ─── */
.multithink-header {
  position: relative;
  overflow: hidden;
}

.multithink-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* no fill color here on purpose — .page-header is deliberately
     transparent everywhere on the site so the fixed .site-aura shows
     through it; object-fit:cover already fills this box completely, so
     a backing color would only sit as an opaque block behind the image
     for no reason and cut the aura off hard at the header's edge. */
  opacity: 0.4;
  pointer-events: none;
}

.multithink-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* the render is symmetric and centered, so mask from the left — keeps the
   lit hemisphere visible while the title column stays fully legible */
.multithink-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--surface-000) 0%,
    rgba(3, 3, 3, 0.82) 34%,
    rgba(3, 3, 3, 0.35) 62%,
    transparent 100%
  );
}

.multithink-header .page-header__content {
  position: relative;
  z-index: 1;
}


/* ─── Prose ─── */
.multithink-prose {
  max-width: 68ch;
}

.multithink-prose p {
  font-size: var(--text-lg);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.multithink-prose strong {
  color: var(--text-90);
  font-weight: 500;
}

.multithink-prose em {
  color: var(--text-70);
  font-style: italic;
}

.multithink-note {
  font-family: var(--font-mono);
  font-size: var(--text-sm) !important;
  color: var(--text-70) !important;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-4);
  margin-top: var(--space-6);
}


/* ─── Role cards (how it works) ─── */
.multithink-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.multithink-role {
  background: var(--surface-100);
  padding: var(--space-6);
  transition: background var(--transition-base);
}

.multithink-role:hover {
  background: var(--surface-200);
}

.multithink-role__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.multithink-role h3 {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-100);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.multithink-role p {
  font-size: var(--text-sm);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
}

.multithink-role em {
  color: var(--text-70);
  font-style: italic;
}


/* ─── Pointer to the research log ─── */
.multithink-findings-link {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 68ch;
}

.multithink-findings-link p {
  font-size: var(--text-base);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
}


/* ─── Gate ladder ─── */
.multithink-gates {
  list-style: none;
  border: 1px solid var(--border);
  margin-top: var(--space-8);
}

.multithink-gate {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.multithink-gate:last-child {
  border-bottom: none;
}

.multithink-gate:hover {
  background: var(--surface-200);
}

.multithink-gate__id {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-25);
  line-height: 1;
}

.multithink-gate--critical {
  background: var(--accent-dim);
}

.multithink-gate--critical:hover {
  background: var(--accent-dim);
}

.multithink-gate--critical .multithink-gate__id {
  color: var(--accent);
}

.multithink-gate__body h3 {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-100);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.multithink-gate__body h3 em {
  font-style: italic;
  color: var(--accent);
}

.multithink-gate__body p {
  font-size: var(--text-sm);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
  max-width: 68ch;
}

.multithink-gate__body p strong {
  color: var(--text-90);
  font-weight: 500;
}

.multithink-gate__body p em {
  color: var(--text-70);
  font-style: italic;
}

.multithink-gate__tag {
  display: inline-block;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--surface-000);
  background: var(--accent);
  padding: 2px var(--space-2);
  margin-left: var(--space-2);
  vertical-align: middle;
}


/* ─── Status columns ─── */
.multithink-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-top: var(--space-8);
}

.multithink-status__head {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.multithink-status__head--done {
  color: var(--status-contained);
}

.multithink-status__head--todo {
  color: var(--text-25);
}

.multithink-status__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.multithink-status__col li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
}

.multithink-status__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--text-25);
}

.multithink-status__col em {
  color: var(--text-70);
  font-style: italic;
}

.multithink-status__col strong {
  color: var(--text-90);
  font-weight: 500;
}


/* ─── Bridge note ─── */
.multithink-bridge-note {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.multithink-bridge-note__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-25);
}

.multithink-bridge-note h2 {
  font-size: clamp(var(--text-xl), 2.4vw, var(--text-3xl));
  font-weight: 500;
  color: var(--text-100);
  line-height: var(--leading-tight);
}

.multithink-bridge-note p {
  font-size: var(--text-base);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
}

.multithink-bridge-note em {
  color: var(--accent);
  font-style: italic;
}

.multithink-bridge-note .btn {
  margin-top: var(--space-2);
}


/* ─── References ─── */
.multithink-refs {
  list-style: none;
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  max-width: 82ch;
}

.multithink-refs li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.multithink-refs a {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-90);
  transition: color var(--transition-fast);
}

.multithink-refs a:hover {
  color: var(--accent);
}

.multithink-refs span {
  font-size: var(--text-sm);
  color: var(--text-50);
  line-height: var(--leading-relaxed);
}


/* ─── Responsive ─── */
@media (max-width: 900px) {
  .multithink-roles {
    grid-template-columns: 1fr;
  }

  .multithink-status {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .multithink-gate {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .multithink-header__bg::after {
    background: linear-gradient(
      to bottom,
      rgba(3, 3, 3, 0.55) 0%,
      rgba(3, 3, 3, 0.88) 100%
    );
  }
}


/* ─── Inline code inside the status columns ─── */
.multithink-status__col code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-90);
  background: var(--surface-000);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
}


/* ─── "The idea": prose left, brain right, vertically centred ─── */
.multithink-idea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items: center;
}

.multithink-idea .multithink-prose {
  max-width: 62ch;
}

.multithink-idea .multithink-prose p:last-child {
  margin-bottom: 0;
}

.multithink-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.multithink-figure img {
  width: 100%;
  max-width: 26rem;
  height: auto;
}

@media (max-width: 900px) {
  .multithink-idea {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .multithink-figure img {
    max-width: 15rem;
  }
}
