.study-grid,.study-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1rem}
.study-week{min-width:0;border:1px solid #a5afd1;border-top:5px solid #5d3791;border-radius:.7rem;background:#f5efff;color:#162241;padding:1rem;scroll-margin-top:1rem}
.study-week:nth-child(3n+2),.study-profiles article:nth-child(2){border-color:#338090;background:#ecf8fb}
.study-week:nth-child(3n+3),.study-profiles article:nth-child(3){border-color:#45815e;background:#edf8f1}
.study-week h3{margin-top:0}
.study-week:target{outline:3px solid #6d28d9}
.study-weeks-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.study-weeks-nav a{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:.5rem;background:#172852;color:#fff;text-decoration:none;font-weight:800}
.study-page summary{cursor:pointer;font-weight:750}
.study-page details{padding:.45rem .6rem;border:1px solid #8d9bc0;border-radius:.45rem;background:#fff}
.study-page details p{margin-bottom:0}
.study-page .py-visual-card{max-width:42rem}
.study-timeline{padding-left:1.5rem}
.study-timeline li{padding:.5rem .8rem;margin-bottom:.6rem;background:#eef3ff;border-left:4px solid #6442a1;border-radius:.4rem}
.study-timeline li:nth-child(2){background:#edf8fc;border-color:#2b7082}
.study-timeline li:nth-child(3){background:#edf8f0;border-color:#296847}
#study-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.7rem;background:#eff4ff;border:1px solid #93a7c5;border-radius:.65rem;padding:1rem}
#study-form[hidden]{display:none}
#study-form label{display:grid;gap:.3rem;font-weight:750;min-width:0}
#study-form input,#study-form select,#study-form button{min-height:44px;min-width:0;max-width:100%;padding:.45rem .65rem;font:inherit;background:#fff;color:#142343;border:1px solid #64748b;border-radius:.4rem}
#study-form button{cursor:pointer}
#study-form button:disabled{opacity:.65;cursor:default}
#study-form .py-actions{grid-column:1/-1;margin:0}
#study-result:not(:empty){margin-top:1rem;padding:1rem;background:#edf8f1;border:1px solid #70927c;border-radius:.6rem}
#study-result dt{font-weight:800}
#study-result dd{margin:0 0 .5rem}
#planificador .py-cta{margin-top:.5rem}
@media print{
 .study-page > :not(main),.study-page main > :not(#planificador),#planificador > :not(h2,#study-result){display:none!important}
 .study-page main{width:100%;color:black}
 #study-result{background:white!important;color:black!important;border-color:#555!important}
}
