.study {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}
.study *, .study *::before, .study *::after { box-sizing: border-box; }
.study h1, .study h2, .study h3, .study h4, .study p { margin: 0; }
.study h1 { line-height: 1.35; font-size: clamp(1.55rem, 4vw, 2.22rem); letter-spacing: -.035em; }
.study h2 { font-size: 1.2rem; line-height: 1.5; }
.study h3 { font-size: 1.04rem; line-height: 1.5; }
.study button, .study select, .study input, .study textarea {
  font: inherit; color: inherit;
}
.study button, .study select, .study input:not([type=radio]) { min-height: 44px; }
.study button { cursor: pointer; }
.study button:disabled { cursor: default; opacity: .48; }
.study :is(button, input, textarea, select, a):focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.study .st-link { background: transparent; border: 0; padding: 0 .3rem; color: var(--blue); }
.st-head { margin: .3rem 0 1rem; }
.st-head .st-meta { margin-bottom: .35rem; }
.st-meta { color: var(--muted); font-size: .87rem; font-weight: 600; }
.st-nav, .st-actions, .st-fields, .st-headline {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
}
.st-nav { padding: .35rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.st-nav button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: .4rem .95rem; color: var(--muted); font-weight: 650; }
.st-nav button[aria-current=page] { border-color: var(--blue); color: var(--blue); }
.st-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 2.6vw, 1.6rem); margin-bottom: 1rem; min-width: 0; }
.st-panel > * + *, .st-stack > * + * { margin-top: .85rem; }
.st-cols { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.st-cols > * { min-width: 0; }
.st-example { border-left: 3px solid var(--blue); padding: .1rem .9rem; }
.st-code { list-style: none; margin: .7rem 0; padding: .4rem 0; border-radius: 10px; overflow: auto; max-height: 34rem; background: #132540; color: #e9f1fb; }
.st-code li { padding: .38rem .8rem; min-width: max-content; border-left: 3px solid transparent; display:flex; align-items:baseline; gap:.75rem; }
.st-code li[aria-current=step] { border-color: #8fd9fc; background: #254369; }
.st-code li[aria-current=step] .st-no { color: white; font-weight: 800; }
.st-code code, .st-vars dd, .st-table, .st-mono { font-family: 'Consolas','SFMono-Regular',monospace; }
.st-code code { white-space: pre; font-size: .91rem; color: inherit; background: none; padding: 0; }
.st-no { font-size: .8rem; color: #b3c6df; text-align:right; min-width: 1.3em; }
.st-vars { display:flex; flex-wrap:wrap; gap:.5rem; margin:.7rem 0; }
.st-vars div { background: var(--soft); border-radius:8px; padding: .4rem .75rem; }
.st-vars dt { font-size:.82rem; color:var(--muted); }
.st-vars dd { margin:0; font-size:1.08rem; font-weight:650; overflow-wrap:anywhere; }
.st-scroll { overflow:auto; max-height:26rem; }
.st-table { width:100%; font-size:.88rem; border-collapse:collapse; }
.st-table td, .st-table th { padding:.44rem .65rem; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
.st-table th { background:var(--soft); position:sticky; top:0; }
.st-table tr[aria-current=step] { font-weight:700; background:var(--soft); }
.st-manual input { min-width:5rem; width:6.2rem; }
.study :is(select, textarea, input:not([type=radio])) { border:1px solid var(--line); background:var(--panel); border-radius:7px; padding:.4rem .65rem; max-width:100%; }
.study textarea { width:100%; min-height:8rem; line-height:1.6; }
.study .st-field { display:grid; gap:.25rem; min-width:0; }
.st-field > span, .st-fields label > span { font-size:.85rem; font-weight:650; }
.st-fields { align-items:end; }
.st-actions > button, .st-btn { border:1px solid var(--line); background:var(--panel); border-radius:8px; font-weight:650; padding:.42rem .88rem; }
.study .st-main { background:var(--blue); border-color:var(--blue); color:white; }
:root[data-dark=true] .study .st-main { color:#102140; }
.st-jump { display:none; }
.st-note { padding:.75rem 1rem; background:var(--soft); border-radius:8px; overflow-wrap:anywhere; }
.st-status { font-weight:650; }
.st-options { border:0; padding:0; margin:.75rem 0; }
.st-options label { display:flex; gap:.6rem; align-items:center; border:1px solid var(--line); border-radius:8px; padding:.55rem .8rem; margin:.4rem 0; min-height:44px; cursor:pointer; }
.study input[type=radio] { accent-color: var(--blue); }
.st-compact { max-width: 12rem; }
.study details > summary { cursor:pointer; padding:.5rem 0; min-height:44px; font-weight:650; }
.study .st-pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.st-sub { font-size:.9rem; color:var(--muted); }
@media(max-width:760px) {
  .st-jump { display:flex; gap:.35rem; flex-wrap:wrap; margin:.4rem 0 .75rem; }
  .st-jump button { border:1px solid var(--line); background:var(--panel); border-radius:7px; padding:.3rem .7rem; }
  .st-cols { grid-template-columns:1fr; gap:0; }
  .st-nav { gap:0; }
  .st-nav button { padding:.4rem .68rem; }
  .st-code { max-height:21rem; }
}
