.bdpcards{
    --bdpcards-border:#e4e7ec;
    --bdpcards-muted:#6b7280;
    --bdpcards-blue:#275df5;
    --bdpcards-yes:#0d8a45;
    --bdpcards-yes-bg:#e7f7ee;
    --bdpcards-no:#e22020;
    --bdpcards-no-bg:#feecec;
    width:100%;
    font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#111827;
    box-sizing:border-box;
}
.bdpcards *{box-sizing:border-box;font-family:inherit}
.bdpcards-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.bdpcards .bdpcards-head h2{margin:0;font-size:24px;line-height:1.25;font-weight:500!important;color:#111827}
.bdpcards-count{font-size:14px;font-weight:500;color:#6b727b}
.bdpcards-grid{display:grid;grid-template-columns:repeat(var(--bdpcards-columns,4),minmax(0,1fr));gap:12px}
.bdpcards-card{position:relative;border:1px solid var(--bdpcards-border);border-radius:14px;background:#fff;padding:13px;min-width:0;min-height:175px;display:flex;flex-direction:column;gap:12px;cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease}
.bdpcards-card:hover{border-color:#cfd5df;box-shadow:0 5px 18px rgba(16,24,40,.05);transform:translateY(-1px)}
.bdpcards-card:focus-visible{outline:2px solid rgba(39,93,245,.35);outline-offset:2px}
.bdpcards-card-head{display:flex;gap:9px;align-items:flex-start;min-height:42px}
.bdpcards-image{width:38px;height:38px;border-radius:9px;object-fit:cover;border:1px solid var(--bdpcards-border);flex:0 0 auto}
.bdpcards-title{margin:0;flex:1 1 auto;min-width:0;font-size:14px;line-height:1.28;font-weight:600;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bdpcards-title a,.bdpcards-title a:visited{color:inherit!important;text-decoration:none!important}
.bdpcards-card:hover .bdpcards-title a{text-decoration:underline!important;text-underline-offset:2px}
.bdpcards-body{flex:1;display:flex;flex-direction:column;justify-content:center}
.bdpcards-binary{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
.bdpcards-pill{min-height:42px;border-radius:7px;padding:7px 8px;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:500;text-decoration:none!important;transition:background-color .16s ease,color .16s ease}
.bdpcards-pill.yes,.bdpcards-group-action.yes{background:var(--bdpcards-yes-bg);color:var(--bdpcards-yes)!important}
.bdpcards-pill.no,.bdpcards-group-action.no{background:var(--bdpcards-no-bg);color:var(--bdpcards-no)!important}
.bdpcards-pill.yes:hover,.bdpcards-group-action.yes:hover{background:#0d8a45;color:#fff!important}
.bdpcards-pill.no:hover,.bdpcards-group-action.no:hover{background:#f01717;color:#fff!important}
.bdpcards-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 0;font-size:14px;font-weight:440}
.bdpcards-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdpcards-option strong{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.bdpcards-group-list{width:100%;display:flex;flex-direction:column;gap:4px}
.bdpcards-group-row{display:grid;grid-template-columns:minmax(0,1fr) auto 38px 38px;gap:7px;align-items:center;min-height:34px}
.bdpcards-group-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit!important;text-decoration:none!important;font-size:14px;font-weight:440}
.bdpcards-group-label:hover{text-decoration:underline!important;text-underline-offset:2px}
.bdpcards-group-prob{font-size:15px;font-weight:600;color:#454a52;font-variant-numeric:tabular-nums}
.bdpcards-group-action{display:flex;align-items:center;justify-content:center;min-height:28px;border-radius:7px;font-size:12px;font-weight:500;text-decoration:none!important;transition:background-color .16s ease,color .16s ease}
.bdpcards-gauge{position:relative;flex:0 0 64px;width:64px;height:52px;margin-left:auto;text-align:center;transform:translateY(-6px)}
.bdpcards-gauge svg{position:absolute;inset:0 0 auto 0;width:64px;height:38px;overflow:visible}
.bdpcards-gauge path{fill:none;stroke-width:5;stroke-linecap:round}
.bdpcards-gauge-bg{stroke:#e3e6eb}.bdpcards-gauge-fill{stroke:#ef4444}
.bdpcards-gauge-text{position:absolute;left:0;right:0;top:15px;display:flex;flex-direction:column;align-items:center;line-height:1.05}
.bdpcards-gauge-text strong{font-size:15px;font-weight:600;color:#454a52}.bdpcards-gauge-text span{margin-top:2px;font-size:11px;font-weight:400;color:#6b727b}
.bdpcards-foot{border-top:1px solid #f0f1f3;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:490;color:var(--bdpcards-muted)}
.bdpcards-foot a{color:var(--bdpcards-blue)!important;font-weight:700;text-decoration:none!important;white-space:nowrap}
.bdpcards-message{padding:18px;border:1px solid var(--bdpcards-border,#e4e7ec);border-radius:14px;background:#f8fafc;font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
@media(max-width:1100px){.bdpcards-grid{grid-template-columns:repeat(min(3,var(--bdpcards-columns,4)),minmax(0,1fr))}}
@media(max-width:820px){.bdpcards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.bdpcards-grid{grid-template-columns:1fr}.bdpcards-head{align-items:flex-start}.bdpcards .bdpcards-head h2{font-size:22px}}

/* v0.2.3 · formato Polymarket para mercados binarios */
.bdpcards-card.is-binary .bdpcards-card-head{align-items:flex-start}
.bdpcards-card.is-binary .bdpcards-body{display:flex;align-items:center}
.bdpcards-card.is-binary .bdpcards-binary{width:100%;margin:0}
.bdpcards-card.is-binary .bdpcards-pill{min-height:42px;font-size:14px;font-weight:500}
.bdpcards-bookmark{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7b8794!important;text-decoration:none!important}
.bdpcards-bookmark svg{width:22px;height:22px;display:block}


/* v0.2.6 · mostrar probabilidad correspondiente al pasar sobre Sí / No */
.bdpcards-pill[data-hover]:hover,
.bdpcards-group-action[data-hover]:hover{
    font-size:0;
}
.bdpcards-pill[data-hover]:hover::after{
    content:attr(data-hover);
    font-size:14px;
    font-weight:600;
}
.bdpcards-group-action[data-hover]:hover::after{
    content:attr(data-hover);
    font-size:12px;
    font-weight:600;
}


/* v0.2.7 · vista compacta opcional */
.bdpcards-more-wrap{display:flex;justify-content:center;margin-top:16px}
.bdpcards-more{appearance:none;border:1px solid #d7dce3;background:#fff;color:#111827;border-radius:8px;min-height:40px;padding:9px 18px;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.bdpcards-more:hover{background:#f8fafc;border-color:#c7ced8;box-shadow:0 2px 8px rgba(16,24,40,.05)}
.bdpcards-more:focus-visible{outline:2px solid rgba(39,93,245,.35);outline-offset:2px}


/* v0.2.9 · botones de expansión */
.bdpcards-more-wrap,.bdpcards-explore-wrap{display:flex;justify-content:center;margin-top:16px}
.bdpcards-explore-wrap[hidden]{display:none!important}
.bdpcards-more{border:1px solid #cfd6e0!important;background:#fff!important;color:#111827!important;box-shadow:none!important}
.bdpcards-more:hover{background:#f5f7fa!important;border-color:#b9c2cf!important;color:#111827!important;box-shadow:0 2px 8px rgba(16,24,40,.06)!important}
.bdpcards-more:active{background:#eef2f6!important;color:#111827!important}
.bdpcards-explore{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 18px;border:1px solid #275df5;border-radius:8px;background:#275df5;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:600;line-height:1.2;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.bdpcards-explore:hover{background:#1f4fe0;border-color:#1f4fe0;color:#fff!important;box-shadow:0 2px 8px rgba(39,93,245,.18)}
.bdpcards-explore:focus-visible{outline:2px solid rgba(39,93,245,.35);outline-offset:2px}




/* v0.2.12 · ancho responsive independiente del contenedor de la página */
@media(max-width:1199px){
    .bdpcards{
        width:calc(100vw - 50px);
        max-width:none;
        position:relative;
        left:50%;
        transform:translateX(-50%);
        padding-left:0;
        padding-right:0;
    }
}

/* v0.2.13 · separación inferior del bloque shortcode */
.bdpcards{
    margin-bottom:32px;
}
