/* Learning cards: readable descriptions and quiet, consistently placed actions. */
.knowledge-map-home .km-path-grid {
    grid-template-rows: minmax(300px, auto) auto;
    gap: 18px;
}
.knowledge-map-home .km-path-card {
    border-color: #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgb(28 49 78 / 4%);
}
html[data-home-theme="red"] .knowledge-map-home .km-path-card { border-color: #eedfe0; }
.knowledge-map-home .km-path-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}
.knowledge-map-home .km-path-body > .km-path-outcome {
    margin: 10px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #526078;
}
.knowledge-map-home .km-path-tags {
    margin-top: 14px;
    gap: 6px;
}
.knowledge-map-home .km-path-tags span {
    padding: 5px 8px;
    background: #f2f5f9;
    color: #526078;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}
html[data-home-theme="red"] .knowledge-map-home .km-path-tags span { background: #f8f2f2; color: #725e63; }
.knowledge-map-home .km-path-enter,
.knowledge-map-home .km-path-card-start .km-path-enter {
    position: static;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--km-blue);
    opacity: 1;
}
.knowledge-map-home .km-path-enter::before { display: none; content: none; }
.knowledge-map-home .km-path-enter::after { content: '→'; font-size: 16px; }
.knowledge-map-home .km-path-card-start {
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr);
    min-height: 0;
    padding: 26px;
    border-color: var(--km-polish-line);
}
.knowledge-map-home .km-path-card-start .km-path-body {
    padding: 0;
    align-self: center;
}
.knowledge-map-home .km-path-card-start .km-path-body h3 { margin-top: 18px; font-size: 30px; }
.knowledge-map-home .km-path-badge { align-self: flex-start; }
.knowledge-map-home .km-path-card-start .km-path-art {
    min-height: 0;
    height: 250px;
    padding: 0;
    object-fit: contain;
    align-self: center;
}
.knowledge-map-home .km-path-card-top {
    grid-template-rows: 92px minmax(0,1fr);
    gap: 14px;
    padding: 22px;
}
.knowledge-map-home .km-path-card-top .km-path-art { width: 100%; height: 92px; object-fit: contain; }
.knowledge-map-home .km-path-card-top .km-path-body h3 { font-size: 24px; }
.knowledge-map-home .km-path-card-small {
    grid-template-columns: 64px minmax(0,1fr);
    align-items: start;
    gap: 14px;
    padding: 24px 20px;
}
.knowledge-map-home .km-path-card-small .km-path-art { width: 64px; height: 76px; object-fit: contain; }
.knowledge-map-home .km-path-card-small .km-path-body { display: flex; padding: 0; height: 100%; }
.knowledge-map-home .km-path-card-small .km-path-body h3 { font-size: 20px; line-height: 1.4; }
.knowledge-map-home .km-path-card-small .km-path-tags { margin-top: 14px; padding: 0; gap: 6px; }
.knowledge-map-home .km-path-card-small .km-path-tags span { padding: 5px 7px; font-size: 11px; }
@media (hover: hover) and (pointer: fine) {
    .knowledge-map-home .km-path-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(28 49 78 / 9%); border-color: var(--km-polish-line); }
    .knowledge-map-home .km-path-card:hover .km-path-enter { transform: none; }
    .knowledge-map-home .km-path-card:hover .km-path-enter::after { transform: translateX(3px); }
}
@media (max-width: 1180px) {
    .knowledge-map-home .km-path-grid { grid-template-rows: auto; }
}
@media (max-width: 620px) {
    .knowledge-map-home .km-path-grid { gap: 14px; }
    .knowledge-map-home .km-path-card { border-radius: 16px; }
    .knowledge-map-home .km-path-card-start { grid-template-columns: minmax(0,1fr) 98px; padding: 20px; gap: 6px; }
    .knowledge-map-home .km-path-card-start .km-path-body h3 { font-size: 24px; margin-top: 14px; }
    .knowledge-map-home .km-path-card-start .km-path-body { padding: 0; }
    .knowledge-map-home .km-path-card-start .km-path-art { width: 98px; height: 154px; }
    .knowledge-map-home .km-path-card-top,
    .knowledge-map-home .km-path-card-small { grid-template-columns: 60px minmax(0,1fr); grid-template-rows: auto; padding: 20px 16px; gap: 14px; align-items: start; }
    .knowledge-map-home .km-path-card-top .km-path-art,
    .knowledge-map-home .km-path-card-small .km-path-art { width: 60px; height: 72px; }
    .knowledge-map-home .km-path-card-top .km-path-body h3,
    .knowledge-map-home .km-path-card-small .km-path-body h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .knowledge-map-home .km-path-card:hover,
    .knowledge-map-home .km-path-card:hover .km-path-enter::after { transform: none; }
}
@media (max-width: 620px) {
    /* The seedling artwork has wider transparent margins than the other icons. */
    .knowledge-map-home .km-path-card-advanced .km-path-art { transform: scale(1.5); }
}
