/* Shared visual hierarchy; devotional text and chart geometry retain their sizing. */
:root{--page-title-size:clamp(24px,3vw,28px);--section-title-size:19px;--section-gap:24px}
body main .panel{min-width:0}
body main :is(.panel>h1,.settings-page>h1,.sandhya-panel>h1,.rasi-heading h1,.more-head h1),
body #pooja h1,body .mantra-page :is(.mantra-heading,.mantra-reader-heading) h1{
  font-size:var(--page-title-size);font-weight:600;line-height:1.45;letter-spacing:0;
  margin:0 0 18px;color:var(--ui-accent);overflow-wrap:anywhere;
}
body main :is(.settings-card,.festival-month,.day-festivals,.gita-meaning) h2,
body #pooja h2{font-size:var(--section-title-size);font-weight:600;line-height:1.5;margin:0 0 12px}
body main .eyebrow{font-size:12px;font-weight:600;letter-spacing:.04em;line-height:1.6;margin-bottom:6px}
html[lang=te] body main .eyebrow{font-size:13px;letter-spacing:0}
html[lang=te] body main :is(h1,h2,h3,label,button,summary){letter-spacing:0;line-height:1.65}
body main :is(.booking-form,.event-form,.k-form){gap:16px}
body main :is(.booking-form,.event-form,.k-form) label{font-size:15px}
body main :is(.booking-form,.event-form,.k-form) label>span{margin-bottom:6px}

/* A single primary surface on Home, with compact supporting information. */
body #home .home-summary{padding:20px;margin:16px 0 24px;border:0;border-radius:14px;box-shadow:none;background:var(--ui-raised)}
body #home .home-summary>.sectionhead{gap:14px;margin-bottom:12px}
body #home #homeDate{font-size:clamp(21px,4.5vw,26px);line-height:1.5;margin:0;font-weight:600}
body #home .home-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
body #home .home-actions>button{flex:1 1 auto;min-width:0}
body #home .home-day{gap:16px;padding:16px 0;align-items:flex-start}
body #home .home-day h2{font-size:26px;line-height:1.6;margin:4px 0}
body #home .home-sun{gap:12px 20px;font-size:14px}
body #home .home-sun strong{font-size:17px;font-weight:600;line-height:1.6}
body #home .home-times{padding-top:14px;gap:12px 20px}
body #home .home-times strong{font-size:15px;font-weight:500;line-height:1.6}
body #home .home-times span{font-size:14px;line-height:1.6}
body #home .home-festivals{font-size:15px;line-height:1.8;padding:12px 0;margin:0;border-bottom:1px solid var(--ui-line)}
body #home .home-sankalpam{margin:0 0 16px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent}
body #home .home-sankalpam>summary{padding:12px 0;min-height:48px;box-sizing:border-box}
body #home .home-sankalpam>p,body #home .home-sankalpam>small{margin:12px 0}
body #home .home-sankalpam>button{margin-left:0}
body #home .shloka-banner{border:0;border-top:1px solid var(--ui-line);border-radius:0;box-shadow:none;background:transparent;padding:20px 0}

/* Supporting sections use dividers rather than a box inside every box. */
body .settings-page .settings-card{padding:20px 0;margin:0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;box-shadow:none}
body .settings-page .settings-card:last-child{border-bottom:0}
body .settings-page .settings-card p{margin-top:12px;line-height:1.75}
body #calendar>.calendar-detail{margin:0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent}
body #calendar>.calendar-detail>summary{padding:12px 0;min-height:48px;box-sizing:border-box}
body #calendar .calendar-detail-body{padding:8px 0 16px}
body #calendar .timinggrid article,body #calendar .skygrid article{border:0;border-radius:10px;box-shadow:none;background:var(--ui-surface);padding:12px}
body #calendar>.festival-month{padding:20px 0;margin:24px 0;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:transparent}
body #calendar>.day-festivals{padding:12px 16px;border:0;border-radius:10px;background:var(--ui-raised)}
body .rasi-results .rasi-result-card,body .rasi-quarters article{padding:16px 0;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:transparent;box-shadow:none}
body .rasi-result-card h3{font-size:17px;line-height:1.6;margin:0 0 8px}
body .rasi-result-card p{margin:0 0 12px;line-height:1.8}
body .rasi-results,body .rasi-quarters{column-gap:24px;row-gap:8px}
body #gita .gita-study{padding:0;margin-top:20px;border:0;border-top:1px solid var(--ui-line);border-radius:0}
body #gita .gita-study summary{box-sizing:border-box;padding:12px 0;min-height:48px}
body #gita .gita-meaning{padding-top:18px;margin-top:24px}
body .sandhya-tradition{padding:12px 0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent}

/* Preserve the copper illustrations while giving labels more prominence. */
body .mantra-category .artwork-icon{width:72px;height:68px}
body .mantra-category{padding:14px 10px;gap:6px;border-radius:12px}
body .mantra-categories{gap:10px}
body .mantra-heading .artwork-icon,body .mantra-reader-heading .artwork-icon{width:56px;height:56px}
body .sandhya-icon{width:48px;height:48px}
body .sandhya-card{gap:8px;border-radius:12px;padding:16px!important}
body .sandhya-card strong{font-size:17px;line-height:1.6}
body .sandhya-grid{gap:10px;margin:20px 0}
body #pooja .pooja-grid{grid-auto-rows:auto;gap:10px}
body #pooja .pooja-card{height:auto;min-height:88px;padding:14px 12px;border-radius:12px}
body #pooja .pooja-card-title{max-height:none;overflow:visible;font-size:16px;line-height:1.75}
body .booking-card{padding:16px;border-radius:12px;box-shadow:none}
body .booking-card strong{font-size:17px;line-height:1.6}

/* Text can wrap and grow; reading-size controls remain authoritative. */
body .sandhya-step{padding:18px 0}
body .sandhya-step .sandhya-mantra{line-height:2;margin:12px 0}
body .mantra-paragraph{line-height:2;margin-bottom:20px}
body .home-sankalpam .sankalpam-text{line-height:1.95}
body :is(.sandhya-note,.mantra-reading-note,.gita-speaker){line-height:1.75}
@media(max-width:600px){
  body .sandhya-card{grid-template-columns:48px minmax(0,1fr);column-gap:12px}
  body #home .home-summary{padding:16px}
  body #home .home-day{flex-direction:column}
  body #home .home-sun{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  body #home .home-times>div{min-width:0;gap:12px}
  body #home .home-times strong{max-width:62%;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
