/* V10.17.75: original Bhakthi Tharangini calendar enhancements */
@media(max-width:600px){
.bt-cal-wrap{padding:10px!important;max-width:100%!important}
.bt-cal-top{gap:7px!important;flex-wrap:wrap}
.bt-cal-top h2{font-size:1.2rem!important;margin:0!important}
.bt-cal-top strong{font-size:1.05rem!important}
.bt-cal-btn{padding:9px 11px!important;min-height:38px!important;font-size:.92rem!important}
.bt-cal-body{padding:12px!important;margin-top:10px!important}
.bt-cal-day-nav{gap:6px!important;flex-wrap:wrap;justify-content:space-between!important}
.bt-cal-day-nav strong{font-size:1rem!important}
.bt-cal-grid{gap:3px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
.bt-cal-day{min-width:0!important;min-height:64px!important;padding:4px 2px!important;overflow:hidden;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px}
.bt-cal-day b{font-size:.9rem!important}
.bt-cal-day small{font-size:.57rem!important;line-height:1.15!important;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;text-align:center}
.bt-cal-week{font-size:.73rem!important;text-align:center}
.bt-shastra-grid{gap:8px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.bt-shastra-cell{padding:10px!important;min-width:0!important}
.bt-shastra-cell b{font-size:.94rem!important;overflow-wrap:anywhere}
.bt-shastra-cell small{font-size:.78rem!important}
}
.bt-cal-month-tools{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 5px;color:#8b430b;font-size:.77rem}
.bt-cal-has-festival{background:#fff1d6!important;border-color:#e4a44b!important}
.bt-cal-festival-label{color:#a53806!important;font-weight:600}

.bt-advanced-calendar{margin:12px 0;padding:12px;border:1px solid #f0cf9a;border-radius:12px;background:#fffaf0}.bt-cal-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.bt-hora-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px}.bt-hora-list>div,.bt-reminder-row{display:flex;justify-content:space-between;gap:8px;padding:9px;border-radius:8px;background:#fff0d6;font-size:13px}.bt-reminder-row{margin:6px 0}.bt-advanced-calendar label{display:block;margin:8px 0}.bt-advanced-calendar input{max-width:100%;padding:7px;border:1px solid #dbb983;border-radius:6px}

/* V10.18.1: opt-in experimental monthly tithi preview */
.bt-month-tithi{display:block;font-size:10px;line-height:1.3;color:#8c490b;white-space:normal;margin-top:3px;font-weight:600}
.bt-month-tithi-toggle{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:12px}
.bt-month-tithi-toggle input{width:16px;height:16px;accent-color:#d97706}
.bt-cal-month-tools .bt-cal-note{display:block;width:100%;font-size:11px}

/* V10.18.2 experimental sunrise nakshatra, alongside tithi */
.bt-month-nakshatra{display:block;font-size:10px;line-height:1.3;color:#66519b;white-space:normal;margin-top:2px;font-weight:600}

/* Consolidated calendar navigation: compact groups, accessible focus and mobile wrapping. */
.bt-adv-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:9px;margin:12px 0}
.bt-adv-group{border:1px solid #e7c894;border-radius:10px;background:#fff;overflow:hidden}
.bt-adv-group>summary{cursor:pointer;padding:11px 12px;font-weight:700;color:#75400e;list-style-position:inside}
.bt-adv-group[open]>summary{background:#fff0d6}
.bt-adv-group .bt-cal-tabs{padding:8px;margin:0;display:flex;flex-wrap:wrap}
.bt-adv-group .bt-cal-btn[aria-pressed="true"]{outline:2px solid #aa6100;outline-offset:1px;background:#ffe4a9}
.bt-adv-group button:focus-visible,.bt-adv-group summary:focus-visible{outline:3px solid #8d5400;outline-offset:2px}
@media(max-width:520px){.bt-adv-groups{grid-template-columns:1fr}.bt-adv-group .bt-cal-btn{font-size:13px}}
