:root{
  --jtc-bg:#0b0f14; --jtc-surface:#111827; --jtc-text:#e5e7eb; --jtc-muted:#9ca3af;
  --jtc-primary:#7c3aed; --jtc-accent:#22d3ee;
  --jtc-header-bg:#0b0f14; --jtc-header-text:#f8fafc;
  --jtc-festival:#f59e0b; --jtc-ritual:#10b981; --jtc-today:#3b82f6;
  --jtc-border:#1f2937;
}
.jtc-cal{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--jtc-text);background:var(--jtc-bg)}
.jtc-cal .header{width:100%;background:var(--jtc-header-bg);color:var(--jtc-header-text);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;text-align:center}
.jtc-cal .header h1{font-size:clamp(1.2rem,3.6vw,2rem);margin:0;font-weight:800;letter-spacing:.3px}
.jtc-cal .header h2{margin:2px 0 0;font-size:clamp(1rem,3.2vw,1.2rem);font-weight:700;color:var(--jtc-accent)}
.jtc-cal .header h3{margin:4px 0 0;font-size:clamp(.85rem,2.8vw,1rem);font-weight:400;color:var(--jtc-muted)}
.jtc-cal .wrap{max-width:980px;margin:12px auto 20px;padding:0 12px}
.jtc-cal .nav{display:flex;gap:8px;justify-content:center;margin-bottom:10px;flex-wrap:wrap}
.jtc-cal .nav button{background:var(--jtc-primary);color:#fff;border:none;padding:8px 12px;border-radius:999px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.25);font-size:13px}
.jtc-cal .calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.jtc-cal .day{font-weight:700;background:#111827;color:#cbd5e1;border-radius:8px;padding:6px;text-align:center;font-size:12px;border:1px solid var(--jtc-border)}
.jtc-cal .date{position:relative}
.jtc-cal .date button{
  width:100%; display:flex; align-items:center; justify-content:center;
  border-radius:8px; border:1px solid var(--jtc-border);
  background:#0f172a; cursor:pointer; transition:.15s;
  padding:6px; min-height:32px; font-size:13px; font-weight:600;
  white-space:nowrap; line-height:1; color:#e5e7eb;
}
.jtc-cal .date button:hover{ filter:brightness(1.12); }
.jtc-cal .date.festival button{ background: linear-gradient(135deg, rgba(245,158,11,.9), rgba(234,88,12,.85)); color:#fff; }
.jtc-cal .date.ritual button{ background: linear-gradient(135deg, rgba(16,185,129,.9), rgba(6,95,70,.85)); color:#fff; }
.jtc-cal .date.today button{ box-shadow:0 0 0 2px var(--jtc-today) inset; }

/* Mobile tweaks: tighter spacing, smaller buttons, avoid overlap */
@media (max-width:420px){
  .jtc-cal .calendar{gap:2px}
  .jtc-cal .day{padding:4px;font-size:11px}
  .jtc-cal .date button{padding:4px; min-height:28px; font-size:12px; border-radius:6px}
}
.jtc-cal .modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);justify-content:center;align-items:center;z-index:1000;padding:16px}
.jtc-cal .modal-content{background:var(--jtc-surface);color:var(--jtc-text);padding:14px;border-radius:12px;width:100%;max-width:560px;box-shadow:0 20px 45px rgba(0,0,0,.35);border:1px solid var(--jtc-border)}
.jtc-cal .modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.jtc-cal .modal-header h3{margin:0;font-size:16px}
.jtc-cal .close-btn{padding:6px 10px;background:#ef4444;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:12px}
.jtc-cal .fest-list{margin:6px 0 0;padding:0;list-style:none}
.jtc-cal .fest-list li{padding:8px 0;border-bottom:1px dashed var(--jtc-border)}
.jtc-cal .fest-title{font-weight:700}
.jtc-cal .fest-desc{margin:2px 0 0;color:var(--jtc-muted)}
