/* Study / tool cards: studies.html (Hyperprop) and tools.html (TradingView + ATAS). Uses the tokens in site.css. */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.st { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; background: var(--ink-2); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.st:hover, .st:focus-visible { border-color: rgba(110, 235, 255,.6); transform: translateY(-2px); outline: none; }
.st-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line); }
.st-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.st:hover .st-img img { transform: scale(1.03); }
.st-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); flex: 1; }
.st-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; margin: 0; }
.st-body h2 em { font-style: normal; color: #38dfff; text-shadow: 0 0 8px rgba(56, 223, 255, .9), 0 0 20px rgba(56, 223, 255, .45); }
.st-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.st-body ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.st-body li { font-size: 13.5px; color: var(--ivory); padding-left: 16px; position: relative; }
.st-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--gold); }
.st-go { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold); }
.st-tl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; margin-top: 40px; padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(110, 235, 255,.45); border-radius: 2px; background: radial-gradient(700px 260px at 0% 0%, rgba(110, 235, 255,.12), transparent 70%), var(--ink-2); }
.st-tl h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; margin: 12px 0 0; }
.st-tl h2 em { font-style: normal; color: #38dfff; text-shadow: 0 0 8px rgba(56, 223, 255, .9), 0 0 20px rgba(56, 223, 255, .45); }
.st-tl p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.st-tl .act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--line); counter-reset: s; }
.st-steps div { background: var(--ink); padding: 18px 20px; display: grid; gap: 6px; }
.st-steps b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.st-steps b::before { counter-increment: s; content: counter(s) " · "; font-family: var(--mono); font-size: 12px; color: var(--gold); vertical-align: 3px; }
.st-steps span { font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .st-grid { grid-template-columns: 1fr; } .st-tl { grid-template-columns: 1fr; } .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .st-steps { grid-template-columns: 1fr; } }
.st-plat { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-plat .pill { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; border: 1px solid rgba(110, 235, 255,.45); color: var(--gold-soft); white-space: nowrap; }
.st-note { font-size: 12.5px !important; color: var(--faint) !important; }
.st-free { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--up); }
.st-filter { margin-bottom: 22px; }
.code-chip { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--gold-soft); border: 1px dashed rgba(110, 235, 255,.6); border-radius: 2px; padding: 9px 16px; background: none; cursor: pointer; white-space: nowrap; }
.code-chip:hover { border-style: solid; }
