/* ================= PORTFOLIO ROW PAGE ================= */
/* Relies on variables from styles.css */

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 56px 0 56px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--warm-white);
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 {
  color: var(--warm-white);
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
  max-width: 640px;
}
.page-hero p.sub {
  color: rgba(250, 250, 248, 0.65);
  font-size: 16px;
  margin-top: 16px;
  max-width: 560px;
}

/* ---------- QUICK-JUMP CONTENTS (Submenu) ---------- */
.toc {
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
  position: sticky; 
  top: 78px; 
  z-index: 90;
}
.toc .wrap {
  display: flex; gap: 28px; flex-wrap: wrap; 
  padding: 16px 32px; justify-content: center;
}
.toc a {
  font-family: 'Manrope', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--charcoal-soft);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.toc a:hover, .toc a.active { color: var(--gold); }

/* ---------- SECTION LABELING ---------- */
  .section-num{
    font-family:'Manrope'; font-weight:800; font-size:13px;
    color:var(--gold); letter-spacing:0.08em; margin-bottom:8px; display:block;
  }

/* ---------- ROW LAYOUT ---------- */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portfolio-row {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 200px;
  gap: 32px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(13, 27, 61, 0.12);
  border-color: var(--gold);
}

/* Row Components */
.row-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.row-info p {
  color: var(--charcoal-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}
.risk-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.row-stats {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.row-stats .stat-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.row-stats .stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* Dynamic Performance Graph */
.row-graph {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.graph-title {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.bar-wrap {
  margin-bottom: 10px;
}
.bar-wrap:last-child {
  margin-bottom: 0;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-bottom: 4px;
}
.bar-label strong {
  color: var(--navy);
  font-family: 'Manrope', sans-serif;
}
.bar-track {
  width: 100%;
  height: 6px;
  background: var(--ivory);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}
.bar-fill.model { background: var(--gold); }
.bar-fill.bench { background: var(--pale-blue); }

.row-action {
  text-align: right;
}
.row-action .btn {
  width: 100%;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .portfolio-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "info info"
      "stats action"
      "graph graph";
  }
  .row-info { grid-area: info; }
  .row-stats { grid-area: stats; padding-left: 0; border-left: none; }
  .row-graph { grid-area: graph; padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid var(--line); }
  .row-action { grid-area: action; align-self: end; }
}

@media (max-width: 768px) {
  .toc .wrap {
    padding: 14px 32px; gap: 18px; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .toc .wrap::-webkit-scrollbar { display: none; }
  
  .portfolio-row {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "info"
      "stats"
      "graph"
      "action";
    gap: 20px;
    padding: 24px;
  }
  .row-stats { padding-top: 16px; border-top: 1px solid var(--line); }
  .row-action { margin-top: 12px; }
}
