/* Overview presentation. All widths representing calculated data are SVG attributes. */
.mh-app .reader[data-overview-layout="redesign"] .topic-content{display:block}
.mh-app .mh-overview-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(0,1.12fr);gap:24px;align-items:start;margin:24px 0}
.mh-app .mh-overview-side{display:grid;gap:20px;min-width:0}
.mh-app .birth-chart-primary,.mh-app .mh-overview-identity,.mh-app .shadbala-calculator{margin:0;padding:24px;background:var(--mh-card);border:1px solid var(--mh-border);border-radius:var(--mh-r-lg);box-shadow:none;min-width:0}
.mh-app .birth-chart-primary>h2{font-size:24px;margin:0 0 12px;color:var(--mh-ink)}
.mh-app .birth-chart-layout{display:block;margin:0}
.mh-app .birth-chart-primary .south-chart{width:100%;max-width:none;background:none;border:0;padding:0;margin:0}
.mh-app .birth-chart-primary .south-chart>h4{font-family:inherit;font-size:13px;font-weight:400;color:var(--mh-muted);margin:0 0 14px;text-align:left}
.mh-app .birth-chart-primary .south-chart>div{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(84px,auto));gap:1px;border:1px solid var(--mh-border);border-radius:16px;overflow:hidden;background:var(--mh-border)}
.mh-app .birth-chart-primary .south-chart section{padding:8px 6px;min-height:84px;min-width:0;background:var(--mh-card);border:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:2px;overflow-wrap:anywhere}
.mh-app .birth-chart-primary .south-chart section>small{display:inline;font-size:12px;line-height:1.4;color:var(--mh-muted);font-weight:400}
.mh-app .birth-chart-primary .south-chart .mh-house-label{display:block;font-size:12px;color:var(--mh-muted);line-height:1.4;margin:0}
.mh-app .birth-chart-primary .south-chart section>strong{display:flex;flex-wrap:wrap;align-content:start;gap:2px 4px;font-size:14px;line-height:1.55;font-weight:600;color:var(--mh-ink);margin-top:4px}
.mh-app .birth-chart-primary .south-chart .mh-ascendant-cell{background:var(--mh-gold-soft);box-shadow:inset 0 0 0 2px var(--mh-gold)}
.mh-app .birth-chart-primary .south-chart .chart-empty{background:var(--mh-plum);border:0}
.mh-app .birth-chart-primary .south-chart .mh-chart-center{position:absolute;top:25%;left:25%;width:50%;height:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:12px;background:var(--mh-plum);color:var(--mh-on-dark);text-align:center;border:0}
.mh-app .birth-chart-primary .mh-chart-center strong{font-family:'Noto Serif Thai',serif;font-size:26px;font-weight:700;color:var(--mh-gold)}
.mh-app .birth-chart-primary .mh-chart-center small{font-size:12px;line-height:1.5;color:var(--mh-on-dark-muted)}
.mh-app .birth-chart-primary .mh-planet-chip{display:inline-flex;gap:0;min-height:0;background:none;border:0;border-radius:0;padding:0;color:var(--mh-ink);font-size:14px;font-weight:600}
.mh-app .birth-chart-primary .mh-planet-chip .mh-planet-code{display:none}
.mh-app .birth-chart-primary .mh-planet-chip .mh-planet-name{display:inline;color:inherit}
.mh-app .mh-chart-caption{font-size:13px;color:var(--mh-muted);margin:12px 0}
.mh-app .birth-chart-primary>details{margin-top:6px;border:0;background:transparent;padding:0}
.mh-app .birth-chart-primary>details>summary{font-size:13px;min-height:44px;display:flex;align-items:center;color:var(--mh-link);padding:8px 0}
.mh-app .mh-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mh-app .mh-overview-facts article{display:flex;flex-direction:column;gap:6px;margin:0;padding:18px 16px;border:1px solid var(--mh-border);border-radius:var(--mh-r-md);background:var(--mh-card);min-width:0}
.mh-app .mh-overview-facts span,.mh-app .mh-overview-facts small{font-size:13px;line-height:1.5;color:var(--mh-muted)}
.mh-app .mh-overview-facts strong{font-family:'Noto Serif Thai',serif;font-size:23px;line-height:1.5;overflow-wrap:anywhere;color:var(--mh-ink)}
.mh-app .mh-overview-facts .mh-fact-asc{background:var(--mh-plum);border-color:var(--mh-plum)}
.mh-app .mh-fact-asc span,.mh-app .mh-fact-asc small{color:var(--mh-on-dark-muted)}
.mh-app .mh-fact-asc strong{color:var(--mh-gold)}
.mh-app .mh-overview-identity{background:var(--mh-plum);border-color:var(--mh-plum);color:var(--mh-on-dark);padding:26px 28px}
.mh-app .mh-overview-identity h2{font-size:24px;line-height:1.5;color:var(--mh-on-dark);margin:0 0 14px}
.mh-app .mh-overview-identity p{color:var(--mh-on-dark-muted);font-size:15px;line-height:1.75;margin:12px 0}
.mh-app .mh-overview-identity .mh-eyebrow{color:var(--mh-gold);font-size:13px;margin:0 0 10px}
.mh-app .mh-overview-identity strong{color:var(--mh-on-dark);font-weight:600}
.mh-app .mh-overview-identity .primary{display:flex;align-items:center;justify-content:center;min-height:48px;background:var(--mh-gold);color:var(--mh-night);font-size:15px;margin-top:18px;border:0;text-decoration:none}
.mh-app .mh-overview-tags{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.mh-app .mh-overview-tags span{background:var(--mh-plum-line);color:var(--mh-on-dark);border-radius:var(--mh-r-pill);font-size:13px;line-height:1.5;padding:5px 10px}
.mh-app .overview-current{background:var(--mh-night);color:var(--mh-on-dark);border:0;border-radius:var(--mh-r-xl);padding:28px 32px;margin:24px 0;box-shadow:none}
.mh-app .overview-current>h2{color:var(--mh-on-dark);font-size:26px;margin:0 0 8px}
.mh-app .overview-current>p,.mh-app .overview-current .hint{color:var(--mh-on-dark-muted);font-size:13px;line-height:1.7}
.mh-app .overview-dasha-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.mh-app .overview-dasha-cards article{padding:20px;background:var(--mh-plum-3);border:1px solid var(--mh-plum-line);border-radius:var(--mh-r-sm);min-width:0;color:var(--mh-on-dark)}
.mh-app .overview-dasha-cards article>small{font-size:13px;color:var(--mh-on-dark-muted)}
.mh-app .overview-dasha-cards h3{font-family:'Noto Serif Thai',serif;font-size:26px;line-height:1.45;color:var(--mh-on-dark);margin:8px 0 16px}
.mh-app .overview-dasha-cards article:first-child h3{color:var(--mh-gold)}
.mh-app .overview-dasha-cards progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:99px;overflow:hidden;background:var(--mh-plum-line);color:var(--mh-on-dark-subtle)}
.mh-app .overview-dasha-cards progress::-webkit-progress-bar{background:var(--mh-plum-line);border-radius:99px}
.mh-app .overview-dasha-cards progress::-webkit-progress-value{background:var(--mh-on-dark-subtle);border-radius:99px}
.mh-app .overview-dasha-cards progress::-moz-progress-bar{background:var(--mh-on-dark-subtle);border-radius:99px}
.mh-app .overview-dasha-cards article:first-child progress::-webkit-progress-value{background:var(--mh-gold)}
.mh-app .overview-dasha-cards article:first-child progress::-moz-progress-bar{background:var(--mh-gold)}
.mh-app .overview-dasha-cards .mh-dasha-dates{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:10px 0 0;font-size:13px;color:var(--mh-on-dark-muted)}
.mh-app .overview-current>details{border:0;background:var(--mh-plum-3);color:var(--mh-on-dark);margin:14px 0 0;border-radius:var(--mh-r-xs)}
.mh-app .overview-current>details>summary{color:var(--mh-on-dark);min-height:44px;padding:12px 16px;font-size:14px}
.mh-app .overview-current>details[open]{background:var(--mh-card);color:var(--mh-ink);padding:16px}
.mh-app .overview-current>details[open]>summary{color:var(--mh-ink)}
.mh-app .mh-directory{margin:24px 0;padding:0;background:transparent;border:0}
.mh-app .mh-directory h2{margin:0 0 18px;font-size:26px;color:var(--mh-ink)}
.mh-app .mh-directory nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mh-app .mh-directory nav>a{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;padding:22px;min-height:130px;background:var(--mh-card);color:var(--mh-ink);border:1px solid var(--mh-border);border-radius:var(--mh-r-md);text-decoration:none;min-width:0}
.mh-app .mh-directory nav>a>strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:17px;color:var(--mh-ink)}
.mh-app .mh-directory nav>a>span{font-size:14px;line-height:1.65;color:var(--mh-muted)}
.mh-app .mh-free-badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:var(--mh-r-pill);font-size:13px;font-weight:600;background:var(--mh-free-bg);color:var(--mh-free-fg)}
.mh-app .mh-directory .mh-directory-lock{display:inline-flex;align-items:center;gap:4px;min-height:25px;padding:3px 8px;border-radius:var(--mh-r-pill);font-size:13px;font-weight:500;background:var(--mh-chip-bg);color:var(--mh-chip-fg)}
.mh-app .mh-directory .mh-directory-lock svg{width:12px;height:12px}
.mh-app .shadbala-calculator{margin:24px 0;padding:28px}
.mh-app .shadbala-calculator .sc-result-head{display:block;margin:0}
.mh-app .shadbala-calculator .sc-result-head h2{font-size:26px;line-height:1.5;color:var(--mh-ink);margin:0 0 6px}
.mh-app .shadbala-calculator .sc-result-head p{font-size:14px;color:var(--mh-muted)}
.mh-app .shadbala-calculator .sc-source{display:none}
.mh-app .mh-shadbala-definition{font-size:14px;line-height:1.7;color:var(--mh-muted);max-width:80ch;margin:10px 0 22px}
.mh-app .shadbala-calculator .sc-bars{display:flex;flex-direction:column;gap:14px;margin:20px 0;max-width:100%;background:none;padding:0;border:0}
.mh-app .shadbala-calculator .sc-row{display:grid;grid-template-columns:78px minmax(0,1fr) 60px;gap:12px;align-items:center;min-height:24px;margin:0;padding:0;background:none;border:0;border-radius:0}
.mh-app .shadbala-calculator .sc-planet{display:block;font-size:14px;padding:0}
.mh-app .shadbala-calculator .sc-planet strong{font-size:14px;font-weight:500;color:var(--mh-ink)}
.mh-app .shadbala-calculator .sc-planet>span{display:none}
.mh-app .shadbala-calculator .sc-track{height:22px;min-height:22px;border:0;border-radius:6px;background:var(--mh-bar-track);overflow:visible;margin:0;padding:0}
.mh-app .shadbala-calculator .sc-track svg{display:block;width:100%;height:22px;border-radius:6px}
.mh-app .shadbala-calculator .sc-track rect{fill:var(--mh-bar)}
.mh-app .shadbala-calculator .sc-low .sc-track rect{fill:var(--mh-bar-low)}
.mh-app .shadbala-calculator .mh-threshold-line{fill:none;stroke:var(--mh-gold-text);stroke-width:1.5;stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
.mh-app .shadbala-calculator .sc-value{text-align:right;display:block}
.mh-app .shadbala-calculator .sc-value>strong{font-size:14px;font-weight:600;color:var(--mh-ink)}
.mh-app .shadbala-calculator .sc-value>small,.mh-app .shadbala-calculator .sc-value>.mh-score-status{display:none}
.mh-app .mh-strength-brief{font-size:14px;line-height:1.7;background:var(--mh-tint);color:var(--mh-muted);padding:16px 20px;border-radius:var(--mh-r-sm);margin:20px 0}
.mh-app .mh-strength-brief p{margin:6px 0}
.mh-app .mh-strength-brief strong{color:var(--mh-ink)}
.mh-app .mh-score-more,.mh-app .mh-strength-extras{background:transparent;border:0;margin:8px 0;padding:0}
.mh-app .mh-score-more>summary,.mh-app .mh-strength-extras>summary{font-size:14px;color:var(--mh-link);min-height:44px;padding:10px 0}
.mh-app .mh-show-all-planets{display:none}
.mh-app .mh-chart-details{margin:24px 0;background:var(--mh-card);border:1px solid var(--mh-border);border-radius:var(--mh-r-md);padding:10px 22px}
.mh-app .mh-chart-details>summary{font-size:17px;min-height:48px;display:flex;align-items:center;color:var(--mh-ink);font-weight:600}
.mh-app .mh-chart-details .overview-deep{margin:8px 0;border:0;padding:0}
.mh-app .mh-chart-details .overview-deep>h2{font-size:22px}
.mh-app .mh-chart-details .table-wrap{max-width:100%;overflow-x:auto}
:root[data-color-mode="dark"] .mh-app .shadbala-calculator .sc-track rect{fill:var(--mh-on-dark-subtle)}
:root[data-color-mode="dark"] .mh-app .shadbala-calculator .sc-low .sc-track rect{fill:var(--mh-gold)}
@media(max-width:1023px){
 .mh-app .mh-overview-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .mh-app .mh-overview-side{grid-template-columns:minmax(0,1fr)}
 .mh-app .mh-directory nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mh-app .birth-chart-primary .south-chart>div{grid-template-rows:repeat(4,minmax(84px,auto))}
}
@media(max-width:767px){
 .mh-app .mh-overview-grid{margin:16px 0;gap:16px}
 .mh-app .birth-chart-primary,.mh-app .mh-overview-identity,.mh-app .shadbala-calculator{padding:18px;border-radius:20px}
 .mh-app .birth-chart-primary>h2{font-size:22px}
 .mh-app .birth-chart-primary .south-chart>div{grid-template-rows:repeat(4,minmax(66px,auto));border-radius:12px}
 .mh-app .birth-chart-primary .south-chart section{min-height:66px;padding:5px 4px}
 .mh-app .birth-chart-primary .south-chart section>strong,.mh-app .birth-chart-primary .mh-planet-chip{font-size:13px}
 .mh-app .birth-chart-primary .mh-chart-center strong{font-size:23px}
 .mh-app .birth-chart-primary .mh-chart-center{padding:8px;gap:4px}
 .mh-app .mh-overview-facts{gap:7px}
 .mh-app .mh-overview-facts article{padding:12px 9px;border-radius:14px;gap:3px}
 .mh-app .mh-overview-facts strong{font-size:18px}
 .mh-app .mh-overview-facts span,.mh-app .mh-overview-facts small{font-size:13px}
 .mh-app .mh-overview-identity h2{font-size:22px}
 .mh-app .overview-current{padding:22px 18px;margin:20px 0;border-radius:22px}
 .mh-app .overview-current>h2{font-size:22px}
 .mh-app .overview-dasha-cards{grid-template-columns:1fr;gap:12px}
 .mh-app .overview-dasha-cards article{display:grid;grid-template-columns:1fr auto;gap:6px;padding:14px 16px}
 .mh-app .overview-dasha-cards article>small{grid-column:1;grid-row:1;align-self:center}
 .mh-app .overview-dasha-cards h3{grid-column:2;grid-row:1;font-size:21px;margin:0}
 .mh-app .overview-dasha-cards progress{grid-column:1/-1;margin-top:7px}
 .mh-app .overview-dasha-cards .mh-dasha-dates{grid-column:1/-1;margin-top:3px}
 .mh-app .mh-directory h2{font-size:22px}
 .mh-app .mh-directory nav{grid-template-columns:1fr;gap:9px}
 .mh-app .mh-directory nav>a{min-height:56px;padding:15px 18px;border-radius:14px;gap:5px}
 .mh-app .mh-directory nav>a>strong{font-size:16px;justify-content:space-between}
 .mh-app .mh-directory nav>a>span{font-size:13px}
 .mh-app .shadbala-calculator{margin:20px 0}
 .mh-app .shadbala-calculator .sc-result-head h2{font-size:22px}
 .mh-app .shadbala-calculator .sc-row{grid-template-columns:66px minmax(0,1fr) 52px;gap:8px}
 .mh-app .shadbala-calculator .sc-bars:not(.mh-show-all)>.mh-mobile-extra{display:none}
 .mh-app .mh-show-all-planets{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:10px 14px;border:1px solid var(--mh-border);border-radius:var(--mh-r-pill);background:var(--mh-card);color:var(--mh-link);font-size:14px}
 .mh-app .mh-chart-details{padding:10px 16px}
}
@media print{
 .mh-app .mh-overview-grid{display:grid;grid-template-columns:1fr 1fr}
 .mh-app .overview-current,.mh-app .mh-overview-identity{break-inside:avoid}
 .mh-app .shadbala-calculator .sc-bars>.mh-mobile-extra{display:grid}
 .mh-app .mh-show-all-planets{display:none}
}
.mh-app .birth-chart-primary .mh-retrograde{font-size:12px;color:var(--mh-gold-text);margin-left:2px}
@media(min-width:768px){
 .mh-app .shadbala-calculator #sc-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.43fr);column-gap:32px;align-items:start}
 .mh-app .shadbala-calculator #sc-results>.sc-result-head,.mh-app .shadbala-calculator #sc-results>.mh-shadbala-definition,.mh-app .shadbala-calculator #sc-results>details,.mh-app .shadbala-calculator #sc-results>.sc-pending{grid-column:1/-1}
 .mh-app .shadbala-calculator #sc-results>.sc-bars{grid-column:1;grid-row:3}
 .mh-app .shadbala-calculator #sc-results>.mh-strength-brief{grid-column:2;grid-row:3}
}
/* The center occupies real grid tracks, so crowded sign cells can grow safely. */
.mh-app .birth-chart-primary .south-chart>div{height:auto;grid-auto-rows:minmax(84px,auto)}
.mh-app .birth-chart-primary .south-chart>div>.chart-empty{display:none}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(1){grid-column:1;grid-row:1}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(2){grid-column:2;grid-row:1}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(3){grid-column:3;grid-row:1}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(4){grid-column:4;grid-row:1}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(5){grid-column:1;grid-row:2}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(8){grid-column:4;grid-row:2}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(9){grid-column:1;grid-row:3}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(12){grid-column:4;grid-row:3}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(13){grid-column:1;grid-row:4}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(14){grid-column:2;grid-row:4}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(15){grid-column:3;grid-row:4}
.mh-app .birth-chart-primary .south-chart>div>:nth-child(16){grid-column:4;grid-row:4}
.mh-app .birth-chart-primary .south-chart>div>.mh-chart-center{position:static;grid-column:2 / span 2;grid-row:2 / span 2;width:auto;height:auto;min-width:0;min-height:0}
.mh-app .birth-chart-primary .south-chart section{height:auto;overflow:visible}
.mh-app .birth-chart-primary .south-chart .mh-planet-chip{max-width:100%;margin:0;line-height:1.6;overflow-wrap:anywhere}
.mh-app .birth-chart-primary .south-chart .mh-planet-code,.mh-app .shadbala-calculator .sc-planet>.mh-planet-code{display:none!important}
.mh-app .reader .mh-overview-identity p.mh-eyebrow{color:var(--mh-gold)!important}
.mh-app .reader .shadbala-calculator .sc-row[data-score-state] .sc-value>strong{color:var(--mh-ink);font-size:14px!important}
:root[data-color-mode="dark"] .mh-app .reader .shadbala-calculator .sc-row[data-score-state] .sc-value>strong{color:var(--mh-ink)}
@media(max-width:767px){
 .mh-app .birth-chart-primary .south-chart>div{grid-auto-rows:minmax(66px,auto)}
}
.mh-app .reader .mh-free-badge,:root[data-color-mode="dark"] .mh-app .reader .mh-free-badge{color:var(--mh-free-fg)!important;background:var(--mh-free-bg)!important;font-size:13px!important}
.mh-app .reader .mh-overview-identity p.mh-eyebrow{font-size:13px!important}
