:root{--mahe-accent:#c0392b;--mahe-green:#5a8a3c;--mahe-green-h:#4a7430;--mahe-text:#1a1a1a;--mahe-text-l:#555;--mahe-text-m:#888;--mahe-border:#e8e8e8;--mahe-bg:#f5f5f5;--mahe-info:#f0f0f0;--mahe-white:#fff;--mahe-r:8px;--mahe-r-sm:4px;--mahe-sh:0 2px 8px rgba(0,0,0,.08);--mahe-sh-h:0 4px 16px rgba(0,0,0,.14)}

/* ---- Archive ---- */
.mahe-archive-wrap,.mahe-events-wrap{max-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.mahe-archive-header{margin-bottom:24px}
.mahe-archive-title{font-size:24px;font-weight:800;color:var(--mahe-text);margin:0 0 10px;display:flex;align-items:center;gap:8px}
.mahe-archive-title small{font-size:16px;font-weight:500;color:var(--mahe-text-l)}
.mahe-archive-intro{color:var(--mahe-text-l);margin-bottom:14px;line-height:1.6}

/* Category filter */
.mahe-cat-filter{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.mahe-filter-btn{display:inline-block;padding:5px 14px;border:2px solid var(--mahe-border);border-radius:20px;font-size:13px;font-weight:600;color:var(--mahe-text-l);text-decoration:none;background:var(--mahe-white);transition:all .2s}
.mahe-filter-btn:hover,.mahe-filter-btn.active{border-color:var(--mahe-accent);color:var(--mahe-accent);background:rgba(192,57,43,.06);text-decoration:none}

/* Month header */
.mahe-month-header{width:100%;margin:22px 0 10px}
.mahe-month-header span{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--mahe-text-m);border-bottom:2px solid var(--mahe-border);padding-bottom:6px}

/* ---- Grid / List rows ---- */
.mahe-events-grid .mahe-events-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.mahe-events-list .mahe-events-row{display:flex;flex-direction:column;gap:16px}

/* ---- Event Card ---- */
.mahe-event-card{background:var(--mahe-white);border-radius:var(--mahe-r);overflow:hidden;box-shadow:var(--mahe-sh);border:1px solid var(--mahe-border);transition:box-shadow .25s,transform .25s;display:flex;flex-direction:column}
.mahe-event-card:hover{box-shadow:var(--mahe-sh-h);transform:translateY(-2px)}
.mahe-event-card.mahe-card-cancelled{opacity:.75}

/* Image */
.mahe-card-img{position:relative;height:200px;background-size:cover;background-position:center;background-color:#e0e0e0;flex-shrink:0}
.mahe-card-no-img{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8e8e8,#d0d0d0)}
.mahe-card-no-img::after{content:'📅';font-size:46px;opacity:.35}

/* Date bubble */
.mahe-date-bubble{position:absolute;top:12px;left:12px;background:var(--mahe-accent);color:#fff;border-radius:6px;padding:5px 10px;text-align:center;min-width:42px;line-height:1}
.mahe-date-day{display:block;font-size:22px;font-weight:800;line-height:1}
.mahe-date-mon{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-top:2px}

/* Status badge */
.mahe-status-badge{position:absolute;top:12px;right:12px;padding:3px 10px;border-radius:var(--mahe-r-sm);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.mahe-badge-cancelled{background:#c0392b;color:#fff}
.mahe-badge-postponed{background:#e67e22;color:#fff}
.mahe-badge-soldout{background:#333;color:#fff}

/* Card body */
.mahe-card-body{display:flex;flex-direction:column;flex:1}
.mahe-card-cats{display:flex;flex-wrap:wrap;gap:5px;padding:10px 14px 0;justify-content:center}
.mahe-cat-tag{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--mahe-accent);border:1px solid var(--mahe-accent);border-radius:3px;padding:2px 7px;text-decoration:none}
.mahe-card-title{font-size:16px;font-weight:800;line-height:1.35;color:var(--mahe-text);margin:0;padding:10px 14px;text-align:center}

/* Grey info block */
.mahe-card-info{background:var(--mahe-info);border-top:1px solid var(--mahe-border);padding:9px 14px;flex:1}
.mahe-info-label{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;color:var(--mahe-text-m);margin-bottom:2px}
.mahe-info-main{font-size:13px;font-weight:700;color:var(--mahe-text);line-height:1.35;margin-bottom:1px}
.mahe-info-divider{height:1px;background:var(--mahe-border);margin:6px 0}
.mahe-info-row{display:flex;align-items:flex-start;gap:6px;margin-bottom:4px;font-size:13px;color:var(--mahe-text-l)}
.mahe-info-row:last-child{margin-bottom:0}
.mahe-info-ico{font-size:13px;flex-shrink:0;margin-top:1px}
.mahe-info-row strong{color:var(--mahe-text);font-weight:600}

/* Admission badge */
.mahe-adm-badge{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:3px}
.mahe-adm-free{background:#e8f5e0;color:#3a6e1a}
.mahe-adm-paid{background:#fff3cd;color:#856404}
.mahe-adm-donation{background:#e3f2fd;color:#1565c0}
.mahe-adm-registration{background:#f3e5f5;color:#6a1b9a}

/* Green button */
.mahe-card-btn{display:block;background:var(--mahe-green);color:#fff!important;text-align:center;padding:13px 14px;font-size:15px;font-weight:700;text-decoration:none!important;border-radius:0 0 var(--mahe-r) var(--mahe-r);transition:background .2s;margin-top:auto}
.mahe-card-btn:hover{background:var(--mahe-green-h);text-decoration:none!important}

/* No events */
.mahe-no-events{padding:36px 20px;text-align:center;background:var(--mahe-bg);border-radius:var(--mahe-r);color:var(--mahe-text-l);font-size:15px}

/* Pagination */
.mahe-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:28px}
.mahe-pagination a,.mahe-pagination span{display:inline-block;padding:7px 13px;border:1px solid var(--mahe-border);border-radius:var(--mahe-r-sm);font-size:14px;font-weight:600;color:var(--mahe-text);text-decoration:none;background:var(--mahe-white);transition:all .2s}
.mahe-pagination .current,.mahe-pagination a:hover{background:var(--mahe-accent);border-color:var(--mahe-accent);color:#fff}

/* ---- Single ---- */
.mahe-single-wrap{max-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:20px 0}
.mahe-single-wrap .container{max-width:1200px;margin:0 auto;padding:0 20px}
.mahe-single-hero{position:relative;border-radius:var(--mahe-r);overflow:hidden;margin-bottom:22px}
.mahe-hero-img{width:100%;height:auto;max-height:460px;object-fit:cover;display:block}
.mahe-badge-large{font-size:14px;padding:7px 16px}
.mahe-single-title{font-size:26px;font-weight:900;line-height:1.25;margin:0 0 18px;color:var(--mahe-text)}
.mahe-single-content{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}
.mahe-single-description{font-size:16px;line-height:1.7;color:var(--mahe-text)}

/* Info box sidebar */
.mahe-info-box{background:var(--mahe-info);border-radius:var(--mahe-r);border:1px solid var(--mahe-border);overflow:hidden}
.mahe-info-box-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--mahe-text-m);margin:0;padding:10px 14px;background:var(--mahe-bg);border-bottom:1px solid var(--mahe-border)}
.mahe-info-row{display:flex;gap:10px;padding:8px 14px;border-bottom:1px solid var(--mahe-border)}
.mahe-info-row:last-of-type{border-bottom:none}
.mahe-info-ico{font-size:15px;flex-shrink:0;width:20px;text-align:center;margin-top:2px}
.mahe-info-text{display:flex;flex-direction:column;gap:1px}
.mahe-info-text strong{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--mahe-text-m)}
.mahe-info-text span,.mahe-info-text a{font-size:14px;font-weight:600;color:var(--mahe-text);line-height:1.35}
.mahe-info-text a{color:var(--mahe-accent);text-decoration:none}
.mahe-info-text a:hover{text-decoration:underline}
.mahe-maps-link{display:inline-block;margin-top:2px;font-size:11px!important;font-weight:600!important;color:var(--mahe-accent)!important}
.mahe-admission-detail{font-size:14px!important;font-weight:700!important}
.mahe-admission-detail.mahe-free{color:#3a6e1a!important}
.mahe-admission-detail.mahe-paid{color:#856404!important}

/* Status banners single */
.mahe-single-status-banner{padding:12px 16px;border-radius:var(--mahe-r-sm);font-size:14px;margin-bottom:18px}
.mahe-banner-cancelled{background:#fde8e8;color:#c0392b;border-left:4px solid #c0392b}
.mahe-banner-postponed{background:#fef3e2;color:#e67e22;border-left:4px solid #e67e22}
.mahe-banner-soldout{background:#f0f0f0;color:#333;border-left:4px solid #333}

/* CTA */
.mahe-cta-wrap{padding:12px 16px;border-top:1px solid var(--mahe-border)}
.mahe-btn-ticket{display:block;text-align:center;padding:12px 14px;border-radius:var(--mahe-r-sm);font-size:15px;font-weight:700;text-decoration:none!important;background:var(--mahe-green);color:#fff!important;transition:background .2s}
.mahe-btn-ticket:hover{background:var(--mahe-green-h)}

/* Calendar add */
.mahe-calendar-add{padding:8px 14px;border-top:1px solid var(--mahe-border);display:flex;flex-direction:column;gap:5px}
.mahe-cal-heading{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--mahe-text-m);margin:0 0 3px}
.mahe-btn-cal{display:block;text-align:center;padding:9px 12px;border-radius:var(--mahe-r-sm);font-size:13px;font-weight:700;text-decoration:none!important;background:#4285F4;color:#fff!important;transition:background .2s}
.mahe-btn-cal:hover{background:#3367d6}
.mahe-btn-ical{display:block;text-align:center;padding:9px 12px;border-radius:var(--mahe-r-sm);font-size:13px;font-weight:700;text-decoration:none!important;background:#555;color:#fff!important;transition:background .2s}
.mahe-btn-ical:hover{background:#333}
.mahe-back-link{margin-top:32px;padding-top:18px;border-top:1px solid var(--mahe-border)}
.mahe-back-link a{color:var(--mahe-text-l);font-size:14px;text-decoration:none;font-weight:600}
.mahe-back-link a:hover{color:var(--mahe-accent)}

/* ---- Widget ---- */
.mahe-widget-list{list-style:none;margin:0;padding:0}
.mahe-widget-item{border-bottom:1px solid var(--mahe-border)}
.mahe-widget-item:last-child{border-bottom:none}
.mahe-widget-link{display:flex;gap:10px;align-items:flex-start;padding:10px 0;text-decoration:none;color:inherit;transition:opacity .2s}
.mahe-widget-link:hover{opacity:.75;text-decoration:none}
.mahe-widget-datebox{background:var(--mahe-accent);color:#fff;border-radius:5px;padding:5px 8px;text-align:center;min-width:38px;flex-shrink:0}
.mahe-wdb-day{display:block;font-size:17px;font-weight:800;line-height:1}
.mahe-wdb-mon{display:block;font-size:9px;font-weight:700;text-transform:uppercase;margin-top:2px}
.mahe-widget-thumb{width:52px;height:52px;border-radius:5px;background-size:cover;background-position:center;flex-shrink:0}
.mahe-widget-info{display:flex;flex-direction:column;gap:2px;flex:1}
.mahe-widget-title{font-size:13px;font-weight:700;color:var(--mahe-text);line-height:1.4}
.mahe-widget-date{font-size:12px;color:var(--mahe-accent);font-weight:600}
.mahe-widget-venue{font-size:11px;color:var(--mahe-text-m)}
.mahe-widget-more{display:block;text-align:center;margin-top:10px;padding:8px;background:var(--mahe-bg);border-radius:var(--mahe-r-sm);font-size:13px;font-weight:700;color:var(--mahe-accent)!important;text-decoration:none;border:1px solid var(--mahe-border);transition:background .2s}
.mahe-widget-more:hover{background:var(--mahe-border);text-decoration:none}
.mahe-widget-empty{font-size:13px;color:var(--mahe-text-m);margin:0;padding:8px 0}

/* ---- Responsive ---- */
@media(max-width:900px){.mahe-single-content{grid-template-columns:1fr}.mahe-single-sidebar{order:-1}}
@media(max-width:600px){.mahe-events-grid .mahe-events-row{grid-template-columns:1fr}.mahe-single-title{font-size:20px}.mahe-archive-title{font-size:18px}}
