/* "Related training" block on solution pages. Inserted by scripts/add-course-links.py */
.km-trn { padding: clamp(2.6rem, 5vw, 4rem) 0; background: #f7f7ff; border-top: 1px solid #e4e7f0; font-family: 'Inter', sans-serif; }
.km-trn__wrap { width: min(100% - 2rem, 1160px); margin: 0 auto; }
.km-trn__kicker { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #583e94; }
.km-trn h2 { margin: 0; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; color: #0b1026; }
.km-trn__intro { margin: .6rem 0 1.4rem; color: #5b6678; max-width: 44rem; }
.km-trn__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.km-trn__item { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: 14px; background: #fff; border: 1px solid #e4e7f0; box-shadow: 0 1px 2px rgba(11,16,38,.05); text-decoration: none; color: #1e293b; transition: border-color .2s, transform .2s; }
.km-trn__item:hover { border-color: #7a5ba8; transform: translateY(-2px); }
.km-trn__item small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #583e94; }
.km-trn__item b { font-size: 1rem; line-height: 1.3; }
.km-trn__item span { font-size: .84rem; color: #5b6678; }
.km-trn__all { margin: 1.2rem 0 0; }
.km-trn__all a { color: #583e94; font-weight: 600; text-decoration: none; }
.km-trn__all a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .km-trn__item { transition: none; } }
.km-trn__read { margin: .7rem 0 0; font-size: .92rem; color: #5b6678; }
.km-trn__read span { font-weight: 700; color: #1e293b; }
.km-trn__read a { color: #583e94; text-decoration: none; }
.km-trn__read a:hover { text-decoration: underline; }
.km-trn__item--acad { border-top: 3px solid #13a4a4; }
.km-trn__item--acad small { color: #0e7c7c; }
.km-trn__all a + a { margin-left: 1.2rem; }
/* Guide variant: a callout inside the guide article, before the FAQ */
.km-trn--guide { margin: 2.6rem 0; padding: 1.6rem 1.5rem; border: 1px solid #e4e7f0; border-radius: 16px; }
.km-trn--guide h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.km-trn--guide .km-trn__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.km-trn--guide a.km-trn__item { color: #1e293b; }
