/* A tested strategy's page by plan (includes/public-strategies-plan.php, lib/StrategyPlan.php): the locks every visitor
   sees with their figures, and the parts Pro and Max open in their place. Built on the page's own parts: the hero's fix
   lines, the "Make it pay more" card, the gallery card's verdict and account line. Light only, as the public pages. */

/* The fix's lock in the strategy page head's card (public-strategies.css .ps-ap-fix), on the head's roles (Igor 20 Nov «прогони»):
   the padlock on the line's row, the line a section title, its note body, its button a pill like the head's others */
.ps-hero-fix.is-locked { padding: 0; }
.ps-hero-fix.is-locked .ui-lock { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 0; border: 0; color: var(--ps-ink); font: 400 14px/22px var(--lr-font); }
.ps-hero-fix.is-locked .ui-lock-icon { width: 20px; height: 20px; margin: 4px 0 0; color: var(--ps-accent-text); } /* on the line's first row (craft rule 2) */
.ps-hero-fix.is-locked .ui-lock-go { align-self: center; }
.ps-hero-fix.is-locked .ui-lock-line { margin: 0; color: var(--ps-ink); font: 600 20px/28px var(--lr-font); text-wrap: balance; }
.ps-hero-fix.is-locked .ui-lock-sub { margin: 4px 0 0; color: var(--ps-ink-3); font: 400 14px/22px var(--lr-font); }
.ps-hero-fix.is-locked .ui-lock-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 20px 0 24px; border: 1.5px solid var(--ps-button-line); border-radius: 999px; background: transparent; color: var(--ps-ink); font: 600 16px/24px var(--lr-font); text-decoration: none; white-space: nowrap; }
.ps-hero-fix.is-locked .ui-lock-go svg { width: 16px; height: 16px; }
.ps-hero-fix.is-locked .ui-lock-go:hover { border-color: var(--ps-ink); background: var(--ps-hover); }
.ps-hero-fix.is-locked .ui-lock-go:focus-visible { outline-color: var(--ps-accent-text); }
/* a tablet and a phone: the button under the words, on their left edge */
@media (max-width: 1099px) {
    .ps-hero-fix.is-locked .ui-lock { grid-template-columns: 20px minmax(0, 1fr); }
    .ps-hero-fix.is-locked .ui-lock-go { grid-column: 2; justify-self: start; margin-top: 12px; }
}

/* Locks on the light page: the tune card's and Max's rows */
.ps-tune.is-locked .ui-lock, .ps-max .ui-lock { gap: 12px; padding: 16px 0; border-top: 1px solid var(--lr-line); color: var(--lr-ink); font: 400 14px/20px var(--lr-font); }
.ps-tune.is-locked .ui-lock { margin-top: 12px; padding: 0; border-top: 0; } /* where the open card's lead sits, no hairline of its own */
.ps-tune.is-locked .ui-lock-icon, .ps-max .ui-lock-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--lr-muted); }
.ps-tune.is-locked .ui-lock-line, .ps-max .ui-lock-line { margin: 0; color: var(--lr-ink); font: 500 16px/24px var(--lr-font); }
.ps-tune.is-locked .ui-lock-sub, .ps-max .ui-lock-sub { margin: 4px 0 0; color: var(--lr-muted); font: 400 14px/20px var(--lr-font); text-wrap: balance; }
.ps-tune.is-locked .ui-lock-go, .ps-max .ui-lock-go { margin-left: auto; color: var(--lr-accent); font: 500 16px/24px var(--lr-font); white-space: nowrap; }
.ps-max .ui-lock:last-child { padding-bottom: 0; }

/* Max's tests, open: a section of the page with one sheet of three cells, as "Will it work for you?" and Every trade (Igor 20 Nov
   «да это вообще пиздец уродство»): what it tests, its answer large, the few lines behind it; one note of how they ran */
.ps-max { margin: 48px 0 0; padding: 28px; border: 1px solid var(--lr-line); border-radius: var(--lr-radius-card); background: #fff; }
.ps-max .ps-h2 { margin: 0; text-wrap: balance; }
.ps-max.is-locked .ps-h2 + .ui-lock { margin-top: 20px; }
.ps-max.is-open { padding: 32px 0 0; border: 0; border-top: 1px solid var(--lr-line); border-radius: 0; background: none; }
.ps-tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-block: 1px solid var(--lr-line); }
.ps-test { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 24px; scroll-margin-top: 96px; }
.ps-test + .ps-test { border-left: 1px solid var(--lr-line); }
/* the sheet's text on the page's own left and right edges (Igor 20 Nov «слева зачем отступ?»): no tint here to pad */
.ps-test:first-child { padding-left: 0; } .ps-test:last-child { padding-right: 0; }
.ps-test-label { margin: 0; font: 500 14px/20px var(--lr-font); color: var(--lr-muted); }
.ps-test-answer { margin: 0; font: 600 24px/32px var(--lr-font); letter-spacing: -0.01em; color: var(--lr-ink); text-wrap: balance; }
.ps-test-answer[data-tone="gain"] { color: #2f7d54; } .ps-test-answer[data-tone="loss"] { color: #c4342d; }
.ps-test-detail { margin: 0; font: 400 14px/20px var(--lr-font); color: var(--lr-muted); text-wrap: pretty; }
.ps-test-rows { margin: 8px 0 0; padding: 0; list-style: none; }
.ps-test-rows li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--lr-line); font: 400 14px/20px var(--lr-font); color: var(--lr-ink); }
.ps-test-rows li > span { flex: 1; min-width: 0; text-wrap: pretty; }
.ps-test-rows small { font-size: 14px; color: var(--lr-muted); }
.ps-test-rows b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lr-ink); }
.ps-test-rows b[data-tone="gain"] { color: #2f7d54; } .ps-test-rows b[data-tone="loss"] { color: #c4342d; }
/* a chart's row: its candles and result on the left, its account line on the right */
.ps-test-rows.is-charts li { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 16px; }
.ps-test-rows.is-charts li > span { display: grid; gap: 2px; }
.ps-spark { display: block; width: 96px; height: 32px; overflow: visible; }
.ps-spark polyline { fill: none; stroke: #9a9aa3; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ps-spark[data-tone="gain"] polyline { stroke: #449a6b; } .ps-spark[data-tone="loss"] polyline { stroke: #c4342d; }
.ps-spark-zero { stroke: var(--lr-line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
/* the prop starts, a dot a month */
.ps-test-dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ps-test-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9dbe3; }
.ps-test-dots i[data-o="pass"] { background: #449a6b; } .ps-test-dots i[data-o="fail"] { background: #c4342d; opacity: .85; }
.ps-test-save { font: 600 14px/20px var(--lr-font); color: var(--lr-accent); text-decoration: none; white-space: nowrap; }
.ps-test-save:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-max-note { max-width: 720px; margin: 12px 0 0; font: 400 12px/20px var(--lr-font); color: var(--lr-muted); text-wrap: pretty; }
@media (max-width: 1099px) { .ps-tests { grid-template-columns: minmax(0, 1fr); } .ps-test { padding-inline: 0; } .ps-test + .ps-test { border-left: 0; border-top: 1px solid var(--lr-line); } }
@media (max-width: 559px) { .ps-test { padding-block: 20px; } }

@media (max-width: 700px) {
    .ps-tune.is-locked .ui-lock, .ps-max .ui-lock { flex-wrap: wrap; }
    .ps-tune.is-locked .ui-lock-go, .ps-max .ui-lock-go { margin-left: 30px; }
}
