/* ================= ЛК-4 · СТРАТЕГИИ ================= */
/* Built strictly on tokens.css + app.css primitives (FR-443). */

/* list of strategy cards */
.strat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .strat-list { grid-template-columns: 1fr; } }
.strat-card { display: flex; flex-direction: column; gap: 10px; }
.strat-card-top { display: flex; align-items: center; gap: 8px; }
.strat-name { font-size: 19px; letter-spacing: -.01em; }
.strat-tag { margin: 0; font-size: 13.5px; }
.strat-mini { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 2px; }
.mini-stat { display: flex; flex-direction: column; gap: 2px; }
.mini-stat .label { color: var(--muted); font-size: 12px; }
.mini-stat .value { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.mini-stat .value.pos { color: var(--pos); }
.mini-stat .value.neg { color: var(--neg); }
.strat-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.strat-card-foot .muted { font-size: 13px; }

/* detail toolbar: back / level toggle / factsheet */
.strat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strat-toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.strat-back { cursor: pointer; }
.level-ctl { display: inline-flex; align-items: center; gap: 8px; }
.level-ctl .muted { font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--surface); }
.seg-btn { background: transparent; border: none; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.seg-btn.on { background: var(--accent-soft); color: var(--ink); }

/* detail hero */
.strat-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.strat-hero-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.strat-hero-main .strat-name { font-size: 24px; }
.strat-hero-limit { text-align: right; flex: none; }
.strat-hero-limit .tag { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.strat-hero-limit b { font-family: var(--head); font-size: 26px; }

/* metrics row */
.metrics-row { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics-row { grid-template-columns: 1fr 1fr; } }
.statcard .value.pos { color: var(--pos); }
.statcard .value.neg { color: var(--neg); }
.statcard .tile-note { color: var(--muted); font-size: 12px; }

/* current structure (target vs actual) */
.struct-item { cursor: default; }
.struct-item:hover { color: inherit; }
.struct-ta { margin-left: auto; display: flex; gap: 12px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.struct-ta b { color: var(--ink); }

/* growth chart subtitle */
.growth-sub { margin: 0 0 10px; font-size: 13px; }

/* annual returns bars */
.annual { display: flex; flex-direction: column; gap: 10px; }
.annual-row { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 12px; }
.annual-year { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.annual-track { height: 12px; background: var(--bg); border-radius: 100px; overflow: hidden; }
.annual-bar { height: 100%; border-radius: 100px; }
.annual-bar.pos { background: var(--pos); }
.annual-bar.neg { background: var(--neg); }
.annual-val { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }
.annual-val.pos { color: var(--pos); }
.annual-val.neg { color: var(--neg); }

/* prose blocks (logic / why-now) */
.prose { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* factor explanations */
.factors { display: flex; flex-direction: column; }
.factor-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.factor-row:last-child { border-bottom: none; }
.factor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.factor-label { font-weight: 600; font-size: 14.5px; }
.factor-text { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; }

.mode-text { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; }

/* disclaimer */
.disclaimer {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  background: rgba(192,138,62,.07); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.disclaimer b { color: var(--accent); }

/* mobile: vertical cards, full-width charts, toolbar wraps */
@media (max-width: 680px) {
  .strat-hero { flex-direction: column; }
  .strat-hero-limit { text-align: left; }
  .strat-toolbar-right { width: 100%; justify-content: space-between; }
  .chart-svg { height: 220px; }
  .struct-ta { flex-direction: column; gap: 2px; text-align: right; }
}
