#opensource {
    scroll-margin-top: 75px;
    color: #172838;
}

#opensource .oss-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

#opensource h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    word-break: normal;
}

#opensource .oss-all {
    flex-shrink: 0;
    padding-bottom: 3px;
    color: #263b67;
    font-size: 14px;
    font-weight: 600;
}

#opensource .oss-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

#opensource .oss-card {
    --oss-color: #235d97;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe4ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(24, 43, 73, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#opensource .oss-stars {
    --oss-color: #80551a;
}

#opensource .oss-citations {
    --oss-color: #226b5b;
}

#opensource .oss-card:hover,
#opensource .oss-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--oss-color);
    box-shadow: 0 12px 28px rgba(24, 43, 73, .12);
}

#opensource .oss-project {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

#opensource a:focus-visible {
    outline: 3px solid var(--oss-color, #263b67);
    outline-offset: -4px;
    border-radius: 8px;
}

#opensource .oss-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e6ebef;
}

#opensource .oss-art img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

#opensource .oss-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 18px;
}

#opensource h4 {
    margin: 0 0 12px;
    color: #172838;
    font-size: 22px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#opensource .oss-body p {
    margin: 0;
    color: #526475;
    font-size: 14px;
    line-height: 1.7;
}

#opensource .oss-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 22px;
    padding: 16px 0;
    border-top: 1px solid #e6ebef;
    color: #526475;
    font-size: 12px;
}

#opensource .oss-footer iframe {
    display: block;
    width: 120px;
    height: 20px;
    border: 0;
}

#opensource .oss-paper {
    margin-left: auto;
    color: var(--oss-color);
}

@media (max-width: 991px) and (min-width: 750px) {
    #opensource .oss-grid { gap: 14px; }
    #opensource .oss-body { padding: 18px 16px; }
    #opensource h4 { font-size: 19px; }
    #opensource .oss-footer { margin: 0 16px; }
}

@media (max-width: 749px) {
    #opensource .oss-heading { display: block; margin-bottom: 20px; }
    #opensource .oss-all { display: inline-block; margin-top: 14px; }
    #opensource h3 { font-size: 25px; }
    #opensource .oss-grid { grid-template-columns: 1fr; gap: 18px; }
    #opensource .oss-art { height: auto; min-height: 180px; }
    #opensource .oss-art img { height: auto; max-height: 240px; object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
    #opensource .oss-card { transition: none; }
    #opensource .oss-card:hover,
    #opensource .oss-card:focus-within { transform: none; }
}
