
/* =========================================================
   ZENITHPATH V13 HOME — clean layout / no inherited drift
   ========================================================= */
.hero-v13{padding:58px 0 62px}
.hero-v13-grid{
  position:relative;z-index:2;
  display:grid;
  grid-template-columns:minmax(250px,.78fr) minmax(480px,1.42fr) minmax(260px,.82fr);
  gap:24px;align-items:stretch;
}
.hero-v13 .hero-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.hero-v13 .hero-copy h1{font-size:clamp(46px,5.4vw,78px);max-width:520px}
.hero-v13 .hero-copy p{max-width:500px}
.hero-ghost{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
.hero-metrics{grid-template-columns:repeat(3,1fr);max-width:500px}
.map-card-v13{
  min-height:640px!important;height:100%;border-radius:32px;
  isolation:isolate;
}
.map-card-v13 .map-wrap{
  width:min(84%,610px);max-height:560px;display:flex;align-items:center;justify-content:center;
}
.map-card-v13 .india-svg{width:100%;height:auto;display:block}
.map-card-v13 .state{cursor:pointer}
.map-card-v13 .loop{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(137,236,107,.28);border-radius:50%;pointer-events:none;z-index:1}
.map-card-v13 .loop-a{width:90%;aspect-ratio:1;animation:v13spin 28s linear infinite}
.map-card-v13 .loop-b{width:68%;aspect-ratio:1;border-color:rgba(79,204,255,.23);animation:v13spin 18s linear infinite reverse}
.map-card-v13 .loop-c{width:47%;aspect-ratio:1;border-color:rgba(255,211,85,.16);animation:v13spin 12s linear infinite}
.map-card-v13 .map-wrap{z-index:3}
.map-card-v13 .map-topline,.map-card-v13 .map-bottomline{position:absolute;left:18px;right:18px;z-index:8;display:flex;justify-content:space-between;gap:12px}
.map-card-v13 .map-topline{top:18px}
.map-card-v13 .map-bottomline{bottom:16px;color:#a8bdd5;font-size:10px}
.map-card-v13 .map-topline span:last-child{font-size:11px;color:#eaf5ff}
.live-dot{width:8px;height:8px;border-radius:50%;background:#59e44c;box-shadow:0 0 0 5px rgba(89,228,76,.12);margin-top:2px}
.map-card-v13 .orbit-labels{z-index:7}
.map-card-v13 .orbit-labels span{font-size:8px}
.hero-profile{
  min-height:640px;border:1px solid rgba(255,255,255,.15);border-radius:26px;
  background:linear-gradient(160deg,rgba(4,29,58,.94),rgba(2,16,35,.88));
  padding:22px;color:#fff;display:flex;align-items:stretch;box-shadow:0 25px 70px rgba(0,0,0,.22);
}
.profile-empty,.profile-filled{width:100%;display:flex;flex-direction:column}
.profile-empty{justify-content:center;text-align:center;padding:15px}
.profile-empty h3{font-size:30px;margin:12px 0 8px}
.profile-empty p{color:#a9bdd4;line-height:1.65;font-size:13px}
.profile-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.1)}
.profile-heading h3{font-size:28px;line-height:1.05;margin:7px 0 3px}
.profile-heading small{color:#9fb4ca}
.icon-close{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.05);color:#fff;border-radius:10px;width:32px;height:32px;cursor:pointer}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}
.profile-grid>div{padding:12px;border-radius:13px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045)}
.profile-grid span{display:block;color:#8fa9c0;text-transform:uppercase;font-size:8px;letter-spacing:.08em;font-weight:800}
.profile-grid b{display:block;color:#fff;font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.profile-grid small{display:block;color:#7890a8;font-size:8px;margin-top:3px}
.profile-report{margin-top:auto;width:100%}

/* State directory */
.state-intel-section{padding-top:76px;padding-bottom:76px}
.state-intel-card,.state-intel-placeholder{border-radius:24px}
.state-intel-card{background:#fff}
.intel-grid{grid-template-columns:repeat(4,1fr)}
/* Public explorer */
.explorer-section{padding-top:82px;padding-bottom:82px}
.explorer-tools{margin-top:0}
.explorer-summary{grid-template-columns:repeat(5,1fr)}
.state-directory{grid-template-columns:repeat(4,1fr);max-height:620px;overflow:auto;padding:2px 3px 8px}
.state-directory-card{min-height:120px}
.compare-panel{margin-top:26px}

/* Constituency explorer — controls on left, result on right */
.constituency-section{padding-top:82px;padding-bottom:82px}
.section-head-dark h2{color:#fff}
.section-head-dark p{color:#9fb4ca}
.constituency-shell-v13{
  display:grid;grid-template-columns:minmax(310px,.78fr) minmax(0,1.55fr);gap:18px;align-items:stretch;
}
.constituency-controls-v13,.const-profile-v13{
  border:1px solid rgba(73,210,255,.2);
  background:linear-gradient(160deg,rgba(7,27,48,.98),rgba(3,15,29,.96));
  border-radius:22px;padding:22px;color:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.2);
}
.constituency-controls-v13{display:flex;flex-direction:column;min-height:650px}
.control-title h3{font-size:24px;margin:7px 0 4px}.control-title p{font-size:11px;color:#839bb0;margin:0 0 14px;line-height:1.55}
.constituency-controls-v13 label{display:flex;flex-direction:column;gap:7px;color:#a9bfd1;font-size:11px;font-weight:800;margin-bottom:11px}
.constituency-controls-v13 select,.constituency-controls-v13 input{
  width:100%;border:1px solid rgba(116,206,255,.22);background:#06182b;color:#f4fbff;
  border-radius:11px;padding:12px 13px;outline:0;min-height:44px;
}
.constituency-controls-v13 select:focus,.constituency-controls-v13 input:focus{border-color:#56e3ff;box-shadow:0 0 0 3px rgba(84,225,255,.08)}
.global-const-search{position:relative}.global-const-search label{margin-bottom:11px}
.global-search-results{position:absolute;z-index:80;left:0;right:0;top:calc(100% - 7px);max-height:300px;overflow:auto;padding:5px;background:#06182b;border:1px solid rgba(116,206,255,.25);border-radius:12px;box-shadow:0 25px 70px rgba(0,0,0,.4)}
.global-result{display:block;width:100%;text-align:left;padding:10px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:#fff;border-radius:8px;cursor:pointer}
.global-result:hover{background:rgba(67,211,95,.09)}
.global-result strong{display:block;font-size:11px}.global-result small{display:block;color:#8ca6bb;font-size:9px;margin-top:3px}
.global-empty{padding:13px;color:#8ca6bb;font-size:10px}
.const-selection-note{margin-top:2px;padding:11px 12px;border:1px dashed rgba(118,202,255,.18);border-radius:11px;color:#88a0b5;font-size:10px;line-height:1.5}
.const-actions{margin-top:auto;display:grid;grid-template-columns:1fr;gap:9px;padding-top:15px}
.const-actions .btn{width:100%}.report-main{min-height:48px;font-size:14px}
.const-profile-v13{min-height:650px}
.const-profile-v13 .const-profile-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.08)}
.const-profile-v13 .const-profile-head h3{font-size:32px;line-height:1.05;margin:7px 0 5px;color:#fff}
.const-profile-v13 .const-profile-head p{color:#91a8bd;font-size:12px;line-height:1.55;margin:0}
.const-badge{white-space:nowrap}
.const-profile-v13 .const-metrics{margin:20px 0;grid-template-columns:repeat(4,1fr)}
.const-profile-v13 .const-metrics>div{background:rgba(255,255,255,.035)}
.selected-ac-box{border:1px solid rgba(74,226,112,.2);background:rgba(47,205,82,.06);border-radius:16px;padding:16px;margin-bottom:15px}
.selected-ac-box h4{font-size:23px;margin:6px 0 3px;color:#fff}.selected-ac-box p{margin:0;color:#90a9be;font-size:11px}
.ac-chip-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:390px;overflow:auto;padding:2px}
.ac-chip{min-height:46px}
.const-source{margin-top:17px}
.modal{display:none!important}
.modal.open{display:flex!important}
.report-box{width:min(720px,100%);max-height:90vh;overflow:auto}
.report-box h3{font-size:29px}
.report-output{margin-top:18px}
.report-print{margin-top:15px}
.report-result{border-top:1px solid var(--line);padding-top:16px}
.report-title h4{font-size:25px;margin:6px 0 3px;color:var(--navy)}
.report-table{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.report-table>div{background:#f6faf7;border:1px solid #e1eee4;border-radius:12px;padding:11px}
.report-table span{display:block;color:#6d7d75;font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
.report-table b{display:block;color:var(--navy);font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.report-note{margin-top:10px;background:#f4f8ff;border:1px solid #dbe7f6;border-radius:12px;padding:12px;font-size:11px}
.report-foot{margin-top:12px;color:#748078;font-size:9px;line-height:1.5}

@keyframes v13spin{to{transform:translate(-50%,-50%) rotate(360deg)}}

@media(max-width:1200px){
  .hero-v13-grid{grid-template-columns:minmax(240px,.78fr) minmax(430px,1.22fr)}
  .hero-profile{grid-column:1/-1;min-height:0}
  .profile-filled{display:block}
  .profile-report{margin-top:15px}
  .profile-grid{grid-template-columns:repeat(3,1fr)}
  .state-directory{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:980px){
  .hero-v13-grid{grid-template-columns:1fr}
  .hero-v13 .hero-copy{padding-top:15px}
  .map-card-v13{min-height:560px!important}
  .hero-profile{min-height:0}
  .constituency-shell-v13{grid-template-columns:1fr}
  .constituency-controls-v13,.const-profile-v13{min-height:0}
  .const-actions{margin-top:18px}
  .intel-grid{grid-template-columns:repeat(2,1fr)}
  .state-directory{grid-template-columns:repeat(2,1fr)}
  .explorer-summary{grid-template-columns:repeat(2,1fr)}
  .const-profile-v13 .const-metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .hero-v13{padding-top:35px}
  .hero-v13 .hero-copy h1{font-size:47px}
  .hero-metrics{grid-template-columns:1fr 1fr}
  .hero-metrics .metric:last-child{grid-column:1/-1}
  .map-card-v13{min-height:440px!important}
  .map-card-v13 .map-wrap{width:92%}
  .map-card-v13 .map-bottomline{font-size:8px}
  .profile-grid{grid-template-columns:1fr 1fr}
  .intel-grid,.explorer-summary,.state-directory,.report-table{grid-template-columns:1fr}
  .const-profile-v13 .const-metrics{grid-template-columns:1fr 1fr}
  .ac-chip-grid{grid-template-columns:1fr}
  .const-profile-v13 .const-profile-head{flex-direction:column}
  .compare-selects{grid-template-columns:1fr}
}
