/* ============================================================
   MIDIOS VENTURES — DIVISION-LOCAL COMPONENTS
   ------------------------------------------------------------
   Loaded after tokens.css. Adds only what the house system does
   not already carry: the venture lifecycle, thesis cards, the
   portfolio register, pathway tiles, and labelled placeholders.
   It overrides no house constant — no lockup, type scale,
   credit grid, or colophon rules appear here.
   ============================================================ */

/* wide band: components that need more than the credit column */
.band--wide { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); border-bottom: 1px solid var(--line); }
.band--wide.band--last { border-bottom: 0; }
.wide-head { max-width: 78rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.wide-head h2 { margin-bottom: .75rem; }
.rail-label {
  font-size: var(--step--1); letter-spacing: .14em; text-indent: .14em;
  color: var(--type-3); margin: 0 0 .85rem;
}

/* ---------- operating sequence ---------- */
.sequence {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .25rem;
  counter-reset: seq;
}
.sequence li {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .55rem .9rem .55rem 0;
  border-top: 1px solid var(--line);
  flex: 1 1 8.5rem;
}
.sequence .seq-n { font-size: var(--step--1); color: var(--type-3); letter-spacing: .08em; }
.sequence .seq-l { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }

/* ============================================================
   THE VENTURE LIFECYCLE — signature interaction
   ============================================================ */
.lifecycle { max-width: 78rem; margin: 0 auto; }
.lc-intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lc-intro h2 { margin-bottom: .75rem; }

.lc-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lc-step {
  position: relative;
  appearance: none;
  display: flex; flex-direction: column; gap: .3rem;
  text-align: left;
  padding: 1.1rem 1rem 1.2rem;
  background: var(--ground);
  border: 0;
  border-top: 3px solid transparent;
  font-family: var(--ui);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.lc-step:hover { background: var(--ground-raised); }
.lc-num { font-size: var(--step--1); color: var(--type-3); letter-spacing: .1em; }
.lc-name {
  font-size: clamp(.66rem, 1vw, .76rem); font-weight: 600;
  letter-spacing: .2em; text-indent: .2em; color: var(--type-2);
  transition: color .2s ease;
}
.lc-sub { font-size: var(--step--1); color: var(--type-3); }
.lc-step[aria-selected="true"] {
  background: var(--ground-raised);
  border-top-color: var(--accent);
}
.lc-step[aria-selected="true"] .lc-name { color: var(--type); }
.lc-step[aria-selected="true"] .lc-num { color: var(--accent); }

.lc-panels { border: 1px solid var(--line); border-top: 0; background: var(--ground-raised); }
.lc-panel { padding: clamp(1.75rem, 4vw, 3rem); }
@media (prefers-reduced-motion: no-preference) {
  .lc-panel { animation: lcFade 320ms cubic-bezier(.2,.7,.3,1) both; }
  @keyframes lcFade { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
}
.lc-panel-head { max-width: 52rem; }
.lc-panel-num {
  display: block; font-size: var(--step--1); letter-spacing: .18em;
  color: var(--accent); margin-bottom: .5rem;
}
.lc-panel h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.lc-what { color: var(--type); font-size: var(--step-1); line-height: 1.5; margin: 0; }

.lc-gate { margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lc-gate h4 {
  font-family: var(--ui); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .14em; text-indent: .14em; color: var(--type-3);
  margin: 0 0 1rem; text-transform: uppercase;
}
.lc-gate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; max-width: 62rem; }
.lc-gate-list li { position: relative; padding-left: 1.6rem; color: var(--type-2); max-width: var(--measure); }
.lc-gate-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border: 1px solid var(--accent);
}
.lc-fail {
  margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--type-3); max-width: 62rem;
}
.lc-fail span {
  display: inline-block; letter-spacing: .12em; text-transform: uppercase;
  color: var(--type-2); margin-right: .5rem;
}
.lc-foot { margin-top: 1.25rem; }

@media (max-width: 860px) {
  .lc-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lc-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-step { padding: .85rem .75rem 1rem; }
}

/* ============================================================
   THESIS CARDS
   ============================================================ */
.thesis-grid {
  max-width: 78rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.thesis { background: var(--ground); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.thesis-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.thesis-head h3 { max-width: 20ch; margin-bottom: .55rem; }
.thesis-stage {
  margin: 0; font-size: var(--step--1); letter-spacing: .1em;
  text-transform: uppercase; color: var(--type-3);
  display: flex; align-items: center; gap: .5rem;
}
.thesis-stage .dot { width: .45rem; height: .45rem; background: var(--accent); flex: 0 0 auto; }

.thesis-body { margin: 0; }
.thesis-body dt {
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--type-3); margin-top: 1.1rem;
}
.thesis-body dt:first-child { margin-top: 0; }
.thesis-body dd { margin: .35rem 0 0; color: var(--type-2); font-size: .95rem; line-height: 1.6; }
.untested {
  display: inline-block; margin-left: .45rem; padding: .05rem .4rem;
  border: 1px solid var(--accent-dim); color: var(--accent);
  letter-spacing: .06em; font-size: .62rem; text-transform: uppercase;
}
.thesis-seek { margin-top: auto; padding-top: 1.5rem; }
.thesis-seek h4 {
  font-family: var(--ui); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--type-3); margin: 0;
}

/* ============================================================
   PORTFOLIO REGISTER
   ============================================================ */
.pf { max-width: 78rem; margin: 0 auto; }
.legend {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem 2rem;
}
.legend li { display: flex; flex-direction: column; gap: .35rem; }
.legend-def { font-size: var(--step--1); color: var(--type-3); line-height: 1.5; }

.badge {
  align-self: flex-start;
  display: inline-block; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .6rem; border: 1px solid var(--line); color: var(--type-2);
  white-space: nowrap;
}
.badge--operating { border-color: var(--accent); color: var(--accent); }
.badge--incubation { border-color: var(--accent-dim); color: var(--type); }
.badge--pilot { border-color: var(--accent-dim); color: var(--type-2); }
.badge--research { border-color: var(--line); color: var(--type-3); }
.badge--jv { border-color: var(--accent-dim); color: var(--type); }
.badge--exited { border-color: var(--line); color: var(--type-3); text-decoration: line-through; }
.badge--paused { border-color: var(--line); color: var(--type-3); border-style: dashed; }

.pf-table { width: 100%; border-collapse: collapse; }
.pf-table caption { text-align: left; color: var(--type-2); padding-bottom: 1rem; font-size: .95rem; }
.pf-table th, .pf-table td {
  text-align: left; vertical-align: top; font-weight: 400;
  padding: 1.15rem 1.25rem 1.15rem 0; border-bottom: 1px solid var(--line);
}
.pf-table thead th {
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--type-3); border-bottom-color: var(--type-3); padding-bottom: .6rem;
}
.pf-name { display: block; font-family: var(--display); font-size: var(--step-1); color: var(--type); }
.pf-sector { display: block; font-size: var(--step--1); color: var(--type-3); margin-top: .2rem; }
.pf-note { color: var(--type-2); font-size: .95rem; max-width: 40rem; }

@media (max-width: 720px) {
  .pf-table thead { position: absolute; left: -9999px; }
  .pf-table tr { display: block; border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
  .pf-table th, .pf-table td { display: block; border: 0; padding: 0 0 .5rem; }
}

/* ============================================================
   PATHWAY TILES
   ============================================================ */
.path-grid {
  max-width: 78rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.path {
  position: relative; display: block; text-decoration: none;
  background: var(--ground); padding: clamp(1.4rem, 3vw, 2rem);
  padding-right: 3rem;
  transition: background-color .2s ease;
}
.path:hover { background: var(--ground-raised); }
.path h3 { font-size: var(--step-1); margin-bottom: .5rem; max-width: 18ch; }
.path p { margin: 0; color: var(--type-2); font-size: .95rem; line-height: 1.6; }
.path-go {
  position: absolute; top: clamp(1.4rem, 3vw, 2rem); right: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--accent-dim); transition: transform .2s ease, color .2s ease;
}
.path:hover .path-go { color: var(--accent); transform: translateX(.25rem); }

/* ============================================================
   LABELLED PLACEHOLDER — used wherever facts are not yet approved
   ============================================================ */
.placeholder {
  border: 1px dashed var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 46rem;
}
.placeholder-tag {
  margin: 0 0 .6rem; font-size: var(--step--1); letter-spacing: .14em;
  text-transform: uppercase; color: var(--type-3);
}
.placeholder p:last-child { margin-bottom: 0; }

/* ---------- form submission status ---------- */
.formstatus { margin-top: 1.25rem; padding: .9rem 1.1rem; border-left: 2px solid var(--accent); background: var(--ground-raised); }
.formstatus[hidden] { display: none; }
.formstatus--error { border-left-color: #D9795A; }
