/* Shared readability and mobile corrections. Loaded after existing themes. */
body.reference-home p,body.reference-home #main p{ text-align:justify!important; text-justify:inter-word; }
body.reference-home .hero-copy p,body.reference-home .content-banner p,body.reference-home .page-hero p{font-weight:600!important}
body.reference-home .eyebrow,body.reference-home .ref-title>span{font-size:16px!important;line-height:1.6;letter-spacing:1.7px}
body.reference-home .reading-card>a,body.reference-home .home-kandam-card>a,body.reference-home .content-link,body.reference-home .home-prediction>span:last-child,body.reference-home .home-video-grid article>a,body.reference-home .home-booking-link a{font-size:18px!important;font-weight:700}
body.reference-home .guru-layout figcaption,body.reference-home .about-introduction figcaption,body.reference-home .guru-name{font-size:23px!important;font-weight:700!important;line-height:1.45}
body.reference-home .ref-trust span{font-size:16px;line-height:1.5}
body.reference-home .ref-trust span strong{display:block;font-size:26px;line-height:1.2;font-weight:700;margin-bottom:6px;color:#7a1b12}
body.reference-home .ref-trust>div{min-width:0}
.reference-header .menu svg{display:block;width:28px;height:28px}
@media(max-width:1500px){
 body.reference-home .reference-header .menu{display:grid;place-items:center;width:46px;height:46px;padding:8px;border:1px solid #ead7ce;border-radius:6px;background:#fff;color:#701b29;cursor:pointer}
 .reference-header #nav .language-picker{order:initial;width:100%;padding:8px 12px 14px;border-top:1px solid #ead7ce}
 .reference-header #nav .language-picker summary{font-size:18px;padding:10px 0}
 .reference-header #nav .language-options{position:static;width:100%;max-height:45vh;border-radius:6px;box-shadow:none}
 .reference-header #nav .language-status{position:static;width:100%}
}
@media(max-width:767px){
 body.reference-home .secondary-header .header-socials{display:none!important}
 body.reference-home .secondary-header .secondary-inner{justify-content:center!important;min-height:46px;flex-wrap:nowrap}
 body.reference-home .secondary-header .secondary-phone{font-size:20px!important;font-weight:700;gap:10px}
 body.reference-home .secondary-header .secondary-phone svg{display:block!important;width:22px;height:22px}
 body.reference-home .ref-hero{position:relative}
 body.reference-home .ref-hero:before{content:'';display:block;position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,250,242,.97),rgba(255,250,242,.91) 55%,rgba(255,250,242,.72));pointer-events:none}
 body.reference-home .hero-copy,body.reference-home .ref-trust{position:relative;z-index:1}
 body.reference-home .hero-copy p{max-width:100%;font-size:18px;line-height:1.75;color:#291911}
 body.reference-home .hero-copy .button{font-size:18px!important;line-height:1.5;padding:13px 20px}
 body.reference-home .ref-trust{grid-template-columns:1fr!important;gap:0}
 body.reference-home .ref-trust>div{grid-column:auto!important;padding:18px 8px;border-right:0;border-bottom:1px solid #ebd7b8}
 body.reference-home .ref-trust>div:last-child{border-bottom:0}
 body.reference-home .ref-trust span{font-size:17px}
 body.reference-home .ref-trust span strong{font-size:28px}
/* Icon-only WhatsApp launcher with a Joinchat-style hover/focus message. */
.floating-whatsapp{display:flex!important;width:60px;height:60px;min-height:60px;padding:0!important;border:4px solid #fff;border-radius:50%;background:#25d366!important;left:20px;bottom:calc(20px + env(safe-area-inset-bottom));box-shadow:0 5px 16px #0005;overflow:visible}
.floating-whatsapp svg{width:31px;height:31px}
.floating-whatsapp span{display:none!important}
.floating-whatsapp::after{content:'Chat with us';position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(-6px);width:max-content;padding:8px 12px;border-radius:7px;background:#24352c;color:#fff;font-size:13px;font-weight:700;line-height:1;box-shadow:0 4px 14px #0003;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.floating-whatsapp:hover::after,.floating-whatsapp:focus-visible::after{opacity:1;transform:translateY(-50%) translateX(0)}
/* WhatsApp is always available; the call shortcut is reserved for mobile. */
body.reference-home .floating-call{display:none!important}
@media(max-width:767px){body.reference-home .floating-call{display:flex!important;width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;background:#8f1f2d!important;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));box-shadow:0 3px 10px #0005}body.reference-home .floating-call svg{width:25px;height:25px}body.reference-home .floating-call span{display:none}}
 body.reference-home .home-copyright{padding:16px 18px!important;line-height:1.65!important}
}

/* Navigation fits the available width, including translated labels. */
body.reference-home .home-navigation{max-width:100%;min-width:0;gap:18px}
body.reference-home .home-navigation>nav{min-width:0}
.reference-header .nav-list{min-width:0}
.reference-header .nav-row>a{white-space:normal!important;overflow-wrap:anywhere}
.reference-header .language-picker{min-width:0}
@media(max-width:1500px){
 body.reference-home .home-navigation{flex-wrap:wrap}
 body.reference-home .home-navigation>nav{display:none!important;order:5;width:100%;margin:0}
 body.reference-home .home-navigation>nav.open{display:block!important}
 .reference-header .nav-list{display:block!important}
 .reference-header .nav-submenu{position:static!important;width:auto!important;max-width:100%!important;margin-left:12px;box-shadow:none!important}
 .reference-header .nav-row>a{flex:1;min-width:0;padding:12px!important}
}
body.reference-home .home-navigation.compact-nav{flex-wrap:wrap}
body.reference-home .home-navigation.compact-nav>.menu{display:grid!important;place-items:center;margin-left:auto;width:46px;height:46px;padding:8px;border:1px solid #ead7ce;border-radius:6px;background:#fff;color:#701b29;cursor:pointer}
body.reference-home .home-navigation.compact-nav>nav{display:none!important;order:5;width:100%;margin:0}
body.reference-home .home-navigation.compact-nav>nav.open{display:block!important;max-height:70vh;max-height:70dvh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:10px}
.compact-nav .nav-list{display:block!important}
.reference-header .compact-nav .nav-submenu{position:static!important;width:auto!important;max-width:100%!important;margin-left:12px;box-shadow:none!important}
.reference-header .compact-nav .nav-row>a{flex:1;min-width:0;padding:12px!important}
.reference-header .compact-nav #nav .language-picker{width:100%;padding:8px 12px 14px;border-top:1px solid #ead7ce}
.reference-header .compact-nav #nav .language-picker summary{font-size:18px;padding:10px 0}
.reference-header .compact-nav #nav .language-options{position:static;width:100%;max-height:45vh;box-shadow:none}
.reference-header .compact-nav #nav .language-status{position:static;width:100%}
@media(min-width:1501px){.reference-header .home-navigation:not(.compact-nav)>.language-picker{order:initial;width:auto}}

/* Follow-up alignment and simpler fee presentation. */
body.reference-home #main .about-art blockquote p{text-align:center!important;text-justify:auto!important}
body.reference-home .home-kandam-card{display:flex;flex-direction:column;justify-content:flex-start!important}
body.reference-home .home-kandam-card p{min-height:0!important;flex:none!important;margin-bottom:10px!important}
body.reference-home .home-kandam-card>a{margin-top:0!important;padding-top:0!important}
body.reference-home .reference-header .menu .menu-label{display:block;font-size:18px;font-weight:700}
body.reference-home .reference-header .menu svg{display:none}
body.reference-home .home-navigation.compact-nav>.menu{width:auto;min-width:76px;padding:8px 15px}
@media(min-width:768px) and (max-width:1500px){body.reference-home .reference-header .menu{width:auto;min-width:76px;padding:8px 15px}}
@media(max-width:767px){
 body.reference-home .reference-header .menu .menu-label{display:none}
 body.reference-home .reference-header .menu svg{display:block}
 body.reference-home .home-navigation.compact-nav>.menu{width:46px;min-width:46px;padding:8px}
 body.reference-home .ref-trust{border:1px solid #cf9b54!important;border-radius:12px;padding:10px 16px}
 body.reference-home .ref-trust>div{display:grid!important;grid-template-columns:32px minmax(0,1fr);align-items:center;justify-content:start!important;gap:14px;padding:18px 0!important;border-bottom:1px solid #cf9b54!important}
 body.reference-home .ref-trust>div:last-child{border-bottom:0!important}
 body.reference-home .ref-trust svg{width:28px;height:28px;margin:0}
 body.reference-home .ref-trust span{text-align:left!important}
}
#main.fees-page{background:#fff}
#main.fees-page .fees-family{border:1px solid #dedede;background:#fff;border-radius:6px;box-shadow:none}
#main.fees-page .fees-family>h2{background:#fff;color:#711f36;padding:18px 20px;border-bottom:2px solid #711f36;font-size:25px}
#main.fees-page .reading-fee-table,#main.fees-page .reading-fee-table tbody,#main.fees-page .fee-option,#main.fees-page .fee-option:nth-child(even){background:#fff!important}
#main.fees-page .fee-option>th,#main.fees-page .fee-option>td{background:#fff!important;color:#292323;border-bottom:1px solid #e7e7e7;padding:16px 20px}
#main.fees-page .reading-fee-table thead th{background:#f5f5f5!important;color:#514747;padding:10px 20px}
#main.fees-page .fee-reading-title{font-size:19px;color:#292323;font-weight:600;line-height:1.5}
#main.fees-page .fee-info-link{font-size:16px;line-height:1.5;color:#6b3041;font-weight:400;margin-top:5px}
#main.fees-page .fee-amount{font-size:21px;color:#292323;font-weight:700}
#main.fees-page .fee-action .button{background:#fff!important;color:#711f36!important;border:1px solid #c4a0ad;padding:7px 14px;font-size:16px;border-radius:4px;box-shadow:none}
#main.fees-page .fees-help{background:#fafafa;border:1px solid #dedede}
@media(max-width:650px){
 #main.fees-page .fees-family>h2{font-size:22px;padding:15px 16px}
 #main.fees-page .fee-option{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:8px;padding:18px 16px;background:#fff!important}
 #main.fees-page .fee-option>th{grid-column:1;grid-row:1/3}
 #main.fees-page .fee-option>th,#main.fees-page .fee-option>td{padding:0;border:0;background:transparent!important}
 #main.fees-page .fee-option>.fee-amount{grid-column:2;grid-row:1;align-self:start;text-align:right;font-size:20px;line-height:1.5}
 #main.fees-page .fee-option>.fee-action{grid-column:2;grid-row:2;align-self:end;text-align:right}
 #main.fees-page .fee-reading-title{font-size:18px}
 #main.fees-page .fee-info-link{font-size:15px}
 #main.fees-page .fee-action .button{font-size:14px;padding:5px 9px}
}

/* Full desktop navigation remains visible down to tablet widths. */
@media(min-width:1024px){
 body.reference-home .reference-header .home-navigation{display:flex;flex-wrap:nowrap;gap:16px;width:94%;min-height:100px}
 body.reference-home .reference-header .home-navigation>.menu{display:none!important}
 body.reference-home .reference-header .home-navigation>nav{display:block!important;order:initial;width:auto;margin-left:auto;overflow:visible;max-height:none}
 body.reference-home .reference-header .nav-list{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:0}
 body.reference-home .reference-header .nav-list>.nav-item>.nav-row>a{padding:8px 0!important;font-size:15px;white-space:nowrap!important}
 body.reference-home .reference-header .home-navigation>nav .nav-submenu{position:absolute!important;min-width:240px;width:280px!important;margin-left:0;max-width:min(340px,90vw)!important}
 body.reference-home .reference-header .home-navigation>nav .nav-submenu .nav-submenu{position:static!important;width:auto!important;min-width:0;margin-left:12px}
 body.reference-home .reference-header .home-navigation>.language-picker{order:initial;width:auto;flex-shrink:0}
 body.reference-home .reference-header .language-options{position:absolute;right:0;left:auto}
}
@media(min-width:1024px) and (max-width:1399px){
 body.reference-home .reference-header .home-navigation{display:grid;grid-template-columns:1fr auto;gap:0 18px;padding:14px 0 8px}
 body.reference-home .reference-header .home-navigation>.brand{grid-column:1;grid-row:1}
 body.reference-home .reference-header .home-navigation>.language-picker{grid-column:2;grid-row:1}
 body.reference-home .reference-header .home-navigation>nav{grid-column:1/-1;grid-row:2;width:100%;margin:8px 0 0!important}
 body.reference-home .reference-header .nav-list{justify-content:space-between}
}
/* Compact reading lists replace the wide fees tables. */
#main.fees-page .fees-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px;align-items:start}
#main.fees-page .fees-family{border:0;border-radius:0;overflow:visible;margin-bottom:24px}
#main.fees-page .fees-family>h2{padding:0 0 14px;font-size:25px;border-bottom:2px solid #dfc8bc;margin-bottom:0}
#main.fees-page .reading-options .fee-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:20px 0;border-bottom:1px solid #e8ded8;background:#fff!important}
#main.fees-page .reading-options .fee-option h3{margin:0;font-size:19px;line-height:1.5;font-weight:600;letter-spacing:0;font-family:inherit}
#main.fees-page .reading-options .fee-option h3 a{color:#302525;text-decoration:none}
#main.fees-page .simple-price{font-size:22px;line-height:1.5;color:#711f36;white-space:nowrap}
#main.fees-page .simple-details,#main.fees-page .simple-enquire{font-size:16px;line-height:1.5;text-decoration:none;margin:0}
#main.fees-page .simple-details{color:#67534c}
#main.fees-page .simple-enquire{color:#711f36;font-weight:700;text-align:right}
#main.fees-page .reading-options a:hover{text-decoration:underline}
@media(max-width:900px){#main.fees-page .fees-comparison{grid-template-columns:1fr;gap:24px}}
@media(max-width:450px){#main.fees-page .reading-options .fee-option{gap:8px 12px;padding:18px 0}#main.fees-page .reading-options .fee-option h3{font-size:18px}#main.fees-page .simple-price{font-size:20px}#main.fees-page .simple-details,#main.fees-page .simple-enquire{font-size:15px}}

/* Fluid one-row desktop header, matching the reference behaviour. */
@media(min-width:1024px){
 body.reference-home .reference-header .home-navigation{display:flex!important;flex-wrap:nowrap!important;width:96%;min-height:90px;padding:12px 0;gap:clamp(10px,1.15vw,20px)}
 body.reference-home .reference-header .home-navigation>.brand{flex:0 0 auto;margin:0}
 body.reference-home .reference-header .home-navigation .brand-logo{width:clamp(175px,16vw,223px);height:auto}
 body.reference-home .reference-header .home-navigation>nav{width:auto!important;margin:0 0 0 auto!important;flex:0 1 auto;min-width:0}
 body.reference-home .reference-header .nav-list{flex-wrap:nowrap!important;justify-content:flex-end;gap:clamp(5px,.8vw,14px)}
 body.reference-home .reference-header .nav-list>.nav-item{flex:0 0 auto}
 body.reference-home .reference-header .nav-list>.nav-item>.nav-row{gap:2px}
 body.reference-home .reference-header .nav-list>.nav-item>.nav-row>a{font-size:clamp(13px,1.1vw,16px)!important;padding:8px 0!important;white-space:nowrap!important}
 body.reference-home .reference-header .nav-list>.nav-item>.nav-row>.submenu-toggle{width:18px!important;min-width:18px;height:30px;padding:0!important}
 body.reference-home .reference-header .home-navigation>.language-picker{margin:0;width:auto!important;flex:0 0 auto}
 body.reference-home .reference-header .home-navigation>.language-picker summary{font-size:clamp(13px,1.1vw,16px)!important;padding:8px 0;gap:4px;white-space:nowrap}
}

/* Remove navigation divider lines and text underlines at every breakpoint. */
body.reference-home .reference-header #nav .nav-item,
body.reference-home .reference-header #nav .nav-row,
body.reference-home .reference-header #nav .nav-row>a,
body.reference-home .reference-header #nav .nav-row>a:hover,
body.reference-home .reference-header #nav .nav-row>a:focus,
body.reference-home .reference-header #nav .nav-row>a[aria-current]{border-bottom:0!important;text-decoration:none!important;box-shadow:none!important}
body.reference-home .reference-header #nav .nav-row>a::before,
body.reference-home .reference-header #nav .nav-row>a::after{content:none!important}

/* Distinct, soft backgrounds for the two reading columns. */
#main.fees-page #siva-fees{background:#fff3e3;border:1px solid #ecd4b3;border-radius:12px;padding:24px}
#main.fees-page #agastya-fees{background:#f6eef7;border:1px solid #dfcce2;border-radius:12px;padding:24px}
#main.fees-page .fees-family>h2{background:transparent}
#main.fees-page .fees-family .reading-options .fee-option{background:transparent!important;border-radius:0;border-bottom:1px solid #d9c8c0}
#main.fees-page .fees-family .reading-options .fee-option:last-child{border-bottom:0;padding-bottom:0}
@media(max-width:650px){#main.fees-page #siva-fees,#main.fees-page #agastya-fees{padding:20px 16px}}
