/* MathB Events presentation layer – card layout based on the previously customised Ledenbeheer views. */
.lbec-activities-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin:1rem 0 2rem}
.lbec-activity-card{border:1px solid #e4e7eb;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.06);display:flex;flex-direction:column;min-width:0}
.lbec-activity-card-image{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#eef1f4}
.lbec-activity-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.lbec-activity-card-image-wrap{background:#fff}
.lbec-activity-card-content{padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.lbec-activity-card-title{margin:0 0 .2rem;font-size:1.08rem;line-height:1.25;color:var(--mbelb-secondary,#0f3f73);font-weight:700}
.lbec-activity-card-date,.lbec-activity-card-age,.lbec-activity-card-location{font-size:.94rem;line-height:1.45;color:#3f4650}
.lbec-activity-card-button{margin-top:auto;padding-top:.45rem}
.lbec-age-badge{position:absolute;right:.7rem;top:.7rem;background:#05c85a;color:#fff;border-radius:999px;padding:.3rem .65rem;font-size:.78rem;line-height:1;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.ddlbv-no-image-age{min-height:55px;padding:.7rem;position:relative}
.lbec-activity-card .button{display:inline-block;width:100%;box-sizing:border-box;text-align:center;background:transparent;color:#008fd5!important;padding:9px 15px;border-radius:6px;text-decoration:none;border:2px solid #008fd5;font-weight:700;line-height:1.2}
.lbec-activity-card .button:hover{background:#008fd5;color:#fff!important}
.lbec-table{width:100%}
.lbec-table th,.lbec-table td{padding:.55rem 1rem .55rem 0;text-align:left}
.lbec-table tr:not(:last-child){border-bottom:1px solid #eee}
.lbec-table-responsive{overflow-x:auto}
.lbec-timeline{position:relative;margin:2rem 0}
.lbec-timeline-item{display:grid;grid-template-columns:100px 24px 1fr;gap:1rem;align-items:start;margin-bottom:1.5rem}
.lbec-timeline-date{font-weight:700;text-align:right}
.lbec-timeline-dot{width:12px;height:12px;border-radius:50%;background:#1683c7;margin:.4rem auto;position:relative}
.lbec-timeline-dot:after{content:"";position:absolute;top:12px;left:5px;width:2px;height:calc(100% + 1.5rem);min-height:45px;background:#dce4ea}
.lbec-timeline-item:last-child .lbec-timeline-dot:after{display:none}
.lbec-timeline-content{display:flex;gap:1rem}
.lbec-timeline-image{width:220px;min-width:220px;aspect-ratio:16/9;position:relative;border-radius:10px;overflow:hidden}
.lbec-timeline-image img{width:100%;height:100%;object-fit:cover;display:block}
.lbec-timeline-text{flex:1}
.lbec-timeline-title{margin:.1rem 0 .5rem}
.mbelb-notice{padding:12px;border-left:4px solid #d63638;background:#fff5f5}
.mbelb-schedule{max-width:100%}
.mbelb-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.mbelb-schedule-head button{border:0;background:var(--mbelb-secondary,#0f3f73);color:#fff;border-radius:6px;padding:8px 13px;font-size:20px}
.mbelb-schedule-list{display:flex;flex-direction:column;gap:8px}
.mbelb-schedule-item{position:relative;display:grid;grid-template-columns:120px 1fr auto;gap:16px;align-items:center;border-left:5px solid var(--mbelb-primary,#1d5fa7);padding:12px 16px;background:#f7f9fb;border-radius:6px}
.mbelb-schedule-item.is-current{border-left-color:var(--mbelb-current,#2e9d55);background:#f3f9fd}
.mbelb-schedule-item.is-next{border-left-color:var(--mbelb-next,#f0a202)}
.mbelb-time{font-weight:700}
.mbelb-schedule-main{display:flex;flex-direction:column;gap:3px}
.mbelb-schedule-main span{font-size:.9em;opacity:.75}
.mbelb-status{font-size:.75em;font-weight:700;padding:5px 8px;border-radius:4px;background:var(--mbelb-next,#f0a202);color:#fff}
.is-current .mbelb-status{background:var(--mbelb-current,#2e9d55)}
.mbelb-detail-image{max-width:100%;height:auto}
.mbelb-content{margin-top:20px}
@media(max-width:700px){
 .lbec-activities-grid{grid-template-columns:1fr;gap:1rem}
 .lbec-timeline-item{grid-template-columns:70px 16px 1fr;gap:.5rem}
 .lbec-timeline-content{display:block}
 .lbec-timeline-image{width:100%;min-width:0;margin-bottom:.75rem}
 .mbelb-schedule-item{grid-template-columns:1fr}
}
/* Temporary 1.2.7-beta2 diagnostics. Visible only to admins when debug="1" is used. */
.mbelb-debug{margin-top:.8rem;padding:.6rem .7rem;background:#fff3cd;border:1px solid #e0b100;border-radius:6px;color:#222;font-size:.72rem;line-height:1.35}
.mbelb-debug summary{cursor:pointer;font-weight:800;color:#7a5200}
.mbelb-debug-grid{display:grid;grid-template-columns:1fr;gap:.45rem;margin-top:.55rem}
.mbelb-debug-grid>div{padding:.35rem;background:#fff;border:1px solid #e5e5e5;overflow-wrap:anywhere}
.mbelb-debug code{font-size:.68rem;white-space:pre-wrap;word-break:break-word}
.mbelb-debug-keys{grid-column:1/-1}
