/* ==========================================================================
   af-entry-price — "We invest by entry price, not by layer" (components/af-entry-price.html)
   --------------------------------------------------------------------------
   The LP deck's slide 29 as a figure. Five layers as columns. Rows line up
   across columns with subgrid: giants (dark), the entry line, what a seed
   cheque buys (First Light, the one accent), and the layer names at the foot.
   A vertical axis on the left says what height means. Square corners.
   Below 760px each layer is a card: layer, giants, then the seed companies.
   ========================================================================== */

.af-entry .ep{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px}

/* the axis: capital needed rises upward */
.af-entry .ep-y{position:relative;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--muted-2)}
.af-entry .ep-y::before{content:"";position:absolute;left:-4px;top:0;width:7px;height:7px;
  border-left:1px solid var(--muted-2);border-top:1px solid var(--muted-2);transform:rotate(45deg)}
.af-entry .ep-y span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;margin-left:12px;
  font-family:var(--font-mono);font-size:13px;line-height:18px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

.af-entry .ep-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:auto auto auto 1fr auto;border:1px solid var(--border)}

.af-entry .ep-band-top{grid-column:1/-1;grid-row:1;padding:12px 14px 4px;background:#0a0908;
  font-family:var(--font-mono);font-size:10px;line-height:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2)}

.af-entry .ep-col{grid-row:2/span 4;display:grid;grid-template-rows:subgrid;min-width:0}
/* Placed explicitly: left to auto-placement, the columns dodge the full-width
   entry line and spill into implicit columns. */
.af-entry .ep-col:nth-child(3){grid-column:1}
.af-entry .ep-col:nth-child(4){grid-column:2}
.af-entry .ep-col:nth-child(5){grid-column:3}
.af-entry .ep-col:nth-child(6){grid-column:4}
.af-entry .ep-col:nth-child(7){grid-column:5}

.af-entry ul{list-style:none;margin:0;padding:0}
.af-entry ul li{margin:0;padding:0}
.lf-body .af-entry ul > li::before,.lf-body .af-entry ul > li::marker{content:none;display:none}
.lf-body .af-entry ul > li{position:static;padding:0;margin:0}

.af-entry .ep-giants{grid-row:1;padding:10px 14px 18px;background:#0a0908}
.af-entry .ep-giants li{font-size:13px;line-height:20px;font-weight:600;color:var(--text)}

/* the entry line: a label sitting on the seam between dark and First Light */
.af-entry .ep-entry{grid-column:1/-1;grid-row:3;position:relative;z-index:1;display:flex;justify-content:center;
  background:linear-gradient(180deg,#0a0908 50%,var(--accent) 50%)}
.af-entry .ep-entry span{display:inline-block;padding:7px 14px;background:#0a0908;border:1px solid var(--text);
  font-family:var(--font-mono);font-size:10px;line-height:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--text)}

.af-entry .ep-seed{grid-row:3;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;
  padding:16px 14px 18px;background:var(--accent);color:#1a1613}
.af-entry .ep-seed li{display:flex;flex-direction:column}
.af-entry .ep-seed b{font-size:13px;line-height:18px;font-weight:700}
.lf-body .af-entry .ep-seed b,.lf-body .af-entry .ep-seed b a{color:#1a1613}
.lf-body .af-entry .ep-seed b a{text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(26,22,19,.45)}
.lf-body .af-entry .ep-seed b a:hover{text-decoration-color:#1a1613}
/* no hairline between the columns inside the yellow band */
.af-entry .ep-col + .ep-col .ep-seed{box-shadow:-1px 0 0 var(--accent)}
.af-entry .ep-seed span{font-size:12px;line-height:17px;color:rgba(26,22,19,.78)}

.af-entry .ep-layer{grid-row:4;padding:14px;background:rgba(255,255,255,.04);border-top:1px solid var(--border);
  display:flex;flex-direction:column;gap:4px}
.af-entry .ep-layer b{font-size:13px;line-height:18px;font-weight:600;color:var(--text)}
.af-entry .ep-layer > span:last-child{font-size:12px;line-height:17px;color:var(--muted-2)}
.af-entry .ep-ic{display:block;width:20px;height:20px;margin-bottom:4px;color:var(--muted)}
.af-entry .ep-ic svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}

/* ---------- phone and narrow tablet: one card per layer ---------- */
@media (max-width:759px){
  .af-entry .ep{display:block}
  .af-entry .ep-y,.af-entry .ep-band-top{display:none}
  .af-entry .ep-grid{display:block;border:0}
  .af-entry .ep-entry{display:block;background:none;margin:0 0 12px}
  .af-entry .ep-entry span{display:block;text-align:center}
  .af-entry .ep-col{display:flex;flex-direction:column;border:1px solid var(--border);margin-bottom:12px}
  .af-entry .ep-layer{order:-1;border-top:0;border-bottom:1px solid var(--border)}
  .af-entry .ep-giants{padding:12px 14px}
  .af-entry .ep-giants::before{content:"Beyond a seed cheque";display:block;margin-bottom:6px;
    font-family:var(--font-mono);font-size:10px;line-height:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2)}
  .lf-body .af-entry .ep-giants{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0}
  .af-entry .ep-giants::before{flex-basis:100%}
  .lf-body .af-entry .ep-giants > li{font-weight:600;margin-right:.35em}
  .lf-body .af-entry .ep-giants > li:not(:last-child)::after{content:",";position:static;display:inline;
    width:auto;height:auto;background:none;border:0;margin:0}
  .af-entry .ep-seed{padding:14px}
  .af-entry .ep-seed:empty{display:none}
}

/* Linked to by #entry-price: land below the fixed site header. */
.af-entry{scroll-margin-top:96px}
