/* Shared controls: shrink within their grid tracks, including iOS native date editors. */
main,.panel,form,fieldset,label,.k-form>*{min-width:0}
:is(.booking-form,.k-form,.match-form,.event-form) input:not([type=checkbox]),:is(.booking-form,.k-form,.match-form,.event-form) select,:is(.booking-form,.k-form,.match-form,.event-form) textarea{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
input:is([type=date],[type=time],[type=datetime-local]){appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0;text-align:left}
input::-webkit-date-and-time-value{min-width:0;text-align:left}input::-webkit-datetime-edit{padding:0;min-width:0}input::-webkit-datetime-edit-fields-wrapper{padding:0}
.k-form{grid-template-columns:repeat(2,minmax(0,1fr))}.k-form label{min-width:0}.booking-form{grid-template-columns:minmax(0,1fr);padding-bottom:28px}.booking-form>button[type=submit]{margin-top:12px;margin-bottom:12px;min-height:48px}.booking-form textarea{resize:vertical}.booking-check input{flex:0 0 22px;accent-color:var(--ui-accent)}
body main button.app-back{display:inline-flex!important;align-items:center;gap:8px;min-height:44px;width:auto;max-width:100%;padding:8px 0!important;margin:0 0 16px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--ui-accent)!important;font:inherit;font-size:14px;font-weight:600;line-height:1.5;text-align:left}
.app-back::before{content:'';width:8px;height:8px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin-left:4px;flex-shrink:0}.app-back>svg{display:none}body main button.app-back:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
#calendar>#monthCalendarSection{margin:0 0 16px;padding:16px;position:relative}#monthCalendarSection .monthhead{gap:8px;margin-bottom:12px;padding-right:44px}#monthCalendarSection .monthhead h2{font-size:22px}#monthCalendarSection .monthhead .eyebrow{margin-bottom:2px}#monthCalendarSection .arrows{gap:4px}#monthCalendarSection .arrows button{width:34px;height:40px}
#monthCalendarSection #dateSearchDisclosure{margin:0;border:0;padding:0;background:transparent}#dateSearchDisclosure>summary{position:absolute;right:14px;top:22px;width:40px;height:40px;min-height:40px;padding:8px;list-style:none;font-size:0;color:var(--ui-accent);border:1px solid var(--ui-line);border-radius:10px;cursor:pointer}#dateSearchDisclosure>summary::-webkit-details-marker{display:none}#dateSearchDisclosure>summary::after{content:none}#dateSearchDisclosure>summary::before{content:'';display:block;width:22px;height:22px;background:currentColor;mask:url('date-jump.svg') center/contain no-repeat;-webkit-mask:url('date-jump.svg') center/contain no-repeat}#dateSearchDisclosure[open]{padding-bottom:12px!important}#dateSearch{margin:0 0 12px;padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}#dateSearch input{min-width:0;max-width:100%;width:100%}.date-picker-row>label{min-width:0}.date-search>div{min-width:0}.date-search input[type=search]{flex:1;min-width:0}
#calendar .grid button{min-height:48px;padding:4px 1px}#calendar .grid button strong{font-size:16px}#calendar .grid button small{font-size:10px}#calendar .calendarfoot{margin-top:12px;padding-top:10px}#calendar>.daycard{padding:16px 18px;margin-bottom:12px;box-shadow:none}#calendar .datehero{gap:12px}#calendar .datehero>strong{font-size:46px}#calendar .datehero h2{font-size:18px}#calendar .tithititle{margin-top:12px;padding:10px 0}#calendar .tithititle h2{font-size:22px}#calendar #details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:12px 0}#calendar #details>div{display:block;min-width:0;padding:0}#calendar #details dd{text-align:left;font-size:15px;margin-top:2px}#calendar #details dd small{display:block;font-size:12px}#calendar .sunrow{padding-top:12px}#calendar .sunrow strong{font-size:17px}#calendar .transitionnote,#calendar #reference{font-size:11px;margin:8px 0;line-height:1.5}
#calendar>.calendar-detail{margin:10px 0}#calendar>.calendar-detail>summary{min-height:48px;padding:10px 16px}.calendar-detail-body{padding:12px 14px}#calendar .timinggrid{gap:8px}#calendar .timinggrid article{padding:10px 12px}#calendar .timinggrid article strong{font-size:16px}#calendar .skygrid article{padding:12px}#calendar>.festival-month{margin:18px 0 24px;padding:16px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface)}
@media(max-width:380px){.k-form{grid-template-columns:minmax(0,1fr)}#monthCalendarSection .monthhead h2{font-size:19px}#calendar #details{gap:8px}}

.booking-art-composite{position:relative;display:inline-block;width:54px;height:54px}.booking-art-emblem{position:absolute;right:-4px;bottom:-3px;border-radius:50%;background:var(--ui-surface);padding:2px}#more #moreItems .booking-art-emblem .artwork-icon{width:27px;height:27px;padding:0}

#calendar #calendarTraditional{margin:10px 0}#calendar #calendarTraditional dl{gap:8px; margin:0}#calendar #calendarTraditional dt{font-size:11px}#calendar #calendarTraditional dd{font-size:13px}#calendar .tithi-timeline{padding:10px 0;margin:8px 0}#calendar .tithi-timeline h3{font-size:13px;margin-bottom:6px}#calendar>.day-festivals{margin:18px 0 0;padding:14px 16px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:14px}#calendar>.day-festivals h3{color:var(--ui-accent)}

#calendar>.day-festivals{margin:0 0 16px;padding:14px 16px;background:var(--ui-surface);border-radius:14px}#calendar>.day-festivals h3{margin:0 0 8px;font-size:1rem;font-weight:500}#calendar>.day-festivals details{margin:0}


header .brand .ganesha-icon{width:46px!important;height:46px!important;object-fit:contain;flex:0 0 46px} @media(min-width:761px){header .brand .ganesha-icon{width:52px!important;height:52px!important;flex-basis:52px}}

/* Shared form and action rhythm. Navigation, reader tools and calendar cells keep their own layout. */
:root{--control-height:48px;--control-radius:10px;--control-padding:10px 12px}
body :is(.booking-form,.event-form,.k-form,.match-person,#custom) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
body :is(#dateSearch,#notificationSettings) input:not([type=checkbox]):not([type=radio]){
  box-sizing:border-box;min-width:0;max-width:100%;min-height:var(--control-height);
  padding:var(--control-padding);border:1px solid var(--ui-line);border-radius:var(--control-radius);
  background:var(--ui-surface);color:var(--ui-text);font:inherit;font-size:16px;line-height:1.5;
}
body :is(.booking-form,.event-form,.k-form,.match-person,#custom) textarea{min-height:112px;resize:vertical}
body :is(.booking-form,.event-form,.k-form,.match-person) label{line-height:1.5}
body :is(.booking-form,.event-form,.k-form,.match-person) input:is([type=checkbox],[type=radio]){
  box-sizing:border-box;width:22px;height:22px;min-height:22px;flex:0 0 22px;padding:0;accent-color:var(--ui-accent)
}
body main :is(.app-action,.goldbutton,.status-share-button,.match-actions button,.k-form button,.booking-form button[type=submit],.event-form button[type=submit],#custom button,#locate,#dateGo,#dateReset){
  box-sizing:border-box;min-height:var(--control-height);max-width:100%;padding:10px 16px;
  border:1px solid var(--ui-line);border-radius:var(--control-radius);
  background:transparent;color:var(--ui-accent);font:inherit;font-size:1rem;font-weight:500;line-height:1.5;
  white-space:normal;overflow-wrap:anywhere;box-shadow:none;
}
body main :is(.goldbutton,.match-actions button[type=submit],.k-form button[type=submit],.booking-form button[type=submit],.event-form button[type=submit],#custom button,#dateGo){
  background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent);
}
body :is(.booking-form,.event-form,.k-form,.match-person,#custom,#dateSearch,#notificationSettings) :is(input,select,textarea):focus,
body main :is(.app-action,.goldbutton,.status-share-button,.match-actions button,.k-form button,.booking-form button[type=submit],.event-form button[type=submit],#custom button,#locate,#dateGo,#dateReset):focus-visible{
  outline:2px solid var(--ui-accent);outline-offset:3px;
}
body main :is(.app-action,.goldbutton,.status-share-button,.match-actions button,.k-form button,.booking-form button[type=submit],.event-form button[type=submit],#custom button,#locate,#dateGo,#dateReset):disabled{
  opacity:.5;cursor:not-allowed;
}
