.ba-study-cards,
.ba-study-cards * {
    box-sizing: border-box;
}
.ba-study-cards {
    max-width: 1056px;
    margin: 24px auto;
    overflow: hidden;
    color: #14284e;
    background: #f6f8fd;
    border: 1px solid #d5e0f3;
    border-radius: 18px;
    text-align: start;
}
.ba-study-cards .ba-study-header {
    padding: clamp(18px, 4vw, 30px);
    color: #fff;
    background: linear-gradient(118deg, #152747, #284a97);
}
.ba-study-cards .ba-study-header h2 {
    margin: 0 0 6px;
    color: inherit;
    font-size: clamp(1.35rem, 4vw, 2rem);
    line-height: 1.2;
}
.ba-study-cards .ba-study-header p {
    margin: 0;
    color: #f0f4ff;
}
.ba-study-cards .ba-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    align-items: start;
    gap: 14px;
    padding: clamp(12px, 3vw, 22px);
}
.ba-study-cards .ba-study-card {
    min-width: 0;
    overflow-wrap: anywhere;
    background: #fff;
    border: 1px solid #d5e0f3;
    border-radius: 12px;
}
.ba-study-cards .ba-study-card[open] {
    border-color: #8ca7e8;
}
.ba-study-cards .ba-study-card summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 112px;
    padding: 15px;
    border-radius: inherit;
    list-style: none;
    cursor: pointer;
}
.ba-study-cards summary::-webkit-details-marker {
    display: none;
}
.ba-study-cards summary:focus-visible {
    outline: 3px solid #244bb0;
    outline-offset: -3px;
}
.ba-study-cards summary:hover {
    background: #f5f8ff;
}
.ba-study-cards .ba-study-topic {
    padding: 3px 8px;
    color: #223e87;
    background: #e9effc;
    border-radius: 6px;
    font-size: .83em;
    font-weight: 700;
}
.ba-study-cards .ba-study-question {
    color: #14284e;
    font-weight: 700;
    white-space: pre-line;
}
.ba-study-cards .ba-study-action {
    margin-top: auto;
    color: #244bb0;
    font-size: .9em;
    font-weight: 700;
}
.ba-study-cards .ba-study-hide,
.ba-study-cards details[open] .ba-study-show {
    display: none;
}
.ba-study-cards details[open] .ba-study-hide {
    display: inline;
}
.ba-study-cards .ba-study-answer {
    padding: 14px 15px 15px;
    border-top: 1px solid #d5e0f3;
}
.ba-study-cards .ba-study-answer p {
    margin: 0;
    color: #14284e;
    white-space: pre-wrap;
}
.ba-study-cards .ba-study-answer .ba-study-tip {
    margin-top: 10px;
    padding: 8px 10px;
    color: #563b09;
    background: #fff3d7;
    border-radius: 7px;
}
