/* ==========================================================================
   VettriThalapathy — India section (MPs, Rajya Sabha, Lok Sabha history,
   Prime Ministers, Presidents, Parties). Maps the section's own tokens onto
   the site design (vt-design.css) and replaces its old header/hero.
   ========================================================================== */
:root,:root[data-theme="light"],:root:not([data-theme="light"]){
  --brand:#8B0000;--brand-dark:#5E0000;--accent:#D4A017;--accent-soft:#FFF6D6;
  --bg:#FBF8F3;--surface:#fff;--surface-2:#F6F1E9;--text:#1A1A1A;--muted:#6B645C;--line:#ECE5DB;
  --radius:14px;--shadow:0 1px 2px rgba(94,0,0,.04),0 6px 18px -10px rgba(94,0,0,.18);
  --font:'Inter',"Noto Sans Tamil",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
body.v-body.vi{background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.55;margin:0}
body.vi h2,body.vi h3,body.vi h4{font-family:'Montserrat',sans-serif}

/* ---- Hero: site page hero instead of the old maroon band ---- */
body.vi .vi-hero{background:linear-gradient(180deg,#fff 0%,#fff 65%,var(--v-ivory,#FBF8F3) 100%);color:var(--v-ink,#1A1A1A);padding:2.2rem 0 1.8rem;position:relative;overflow:hidden}
body.vi .vi-hero::after{display:none}
body.vi .vi-hero .v-wrap{position:relative;z-index:1}
body.vi .vi-hero .crumbs{font-size:.78rem;color:var(--v-mute,#6B645C);opacity:1;margin:0 0 .9rem}
body.vi .vi-hero .crumbs a{color:var(--v-red,#8B0000);text-decoration:none;font-weight:600}
body.vi .vi-hero h1{font-family:'Montserrat',sans-serif;font-weight:900;font-size:clamp(1.9rem,4.6vw,3rem);line-height:1.05;letter-spacing:-.015em;color:var(--v-ink,#1A1A1A);margin:0 0 .35rem}
body.vi .vi-hero .v-ta{margin:0 0 .6rem}
body.vi .vi-hero p:not(.v-eye):not(.v-ta){color:var(--v-ink2,#4A4540);opacity:1;font-size:1rem;line-height:1.65;max-width:44rem;margin:0}
body.vi .vi-hero .house-switch{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.1rem}
body.vi .vi-hero .house-switch a{font:700 .76rem 'Inter',sans-serif;color:var(--v-red,#8B0000);background:#fff;border:1px solid var(--v-line,#ECE5DB);border-radius:99px;padding:.38rem .85rem;text-decoration:none}
body.vi .vi-hero .house-switch a:hover{border-color:var(--v-red,#8B0000)}
body.vi .vi-hero .house-switch a.on{background:var(--v-red,#8B0000);border-color:var(--v-red,#8B0000);color:#fff}
body.vi .vi-hero .year-strip a,body.vi .vi-hero .year-strip button{color:var(--v-red,#8B0000);border-color:var(--v-line,#ECE5DB);background:#fff}
body.vi .vi-hero .year-strip .on,body.vi .vi-hero .year-strip a.on{background:var(--v-gold-l,#FFF6D6);border-color:#F3DD8A;color:#5E0000}

/* ---- Content area ---- */
body.vi main.wrap{max-width:1140px;padding:1.6rem 1.25rem 3rem;margin:0 auto}
body.vi .stats{margin-top:0}
body.vi .block h2{font-weight:900;font-size:clamp(1.15rem,2.2vw,1.45rem);line-height:1.25}
body.vi .block h2::before{background:var(--v-red,#8B0000);width:5px}
body.vi .stat b,body.vi .stats b{font-family:'Montserrat',sans-serif;color:var(--brand)}
body.vi .source{color:var(--muted);font-size:.78rem}
body.vi main .more{color:#fff}

/* ---- TVK note on the parties page ---- */
.vi-tn26{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.1rem 1.2rem;box-shadow:var(--shadow);margin:0 0 1.2rem}
.vi-tn26 h3{margin:0 0 .3rem;font-size:1rem;font-weight:900}
.vi-tn26 p{margin:0 0 .8rem;color:var(--muted);font-size:.86rem}
.vi-tn26 .bars{display:grid;gap:.42rem}
.vi-tn26 .r{display:grid;grid-template-columns:7.5rem 1fr 2.4rem;gap:.6rem;align-items:center;font-size:.82rem}
.vi-tn26 .r b{font-family:'Montserrat',sans-serif;text-align:right}
.vi-tn26 .t{height:.7rem;background:var(--surface-2);border-radius:99px;overflow:hidden}
.vi-tn26 .t i{display:block;height:100%;border-radius:99px}
.vi-tn26 .ft{margin-top:.8rem;font-size:.78rem}
@media(max-width:640px){.vi-tn26 .r{grid-template-columns:5.6rem 1fr 2rem}body.vi main.wrap{padding:1.2rem 16px 2.4rem}}
html,body{overflow-x:hidden}
/* site footer/nav: undo browser list defaults (other pages reset these via global.css) */
body.vi #vt-footer ul,body.vi #vt-nav ul,body.vi .vt-mobile ul{margin:0;padding:0;list-style:none}
body.vi #vt-footer{font-size:16px;line-height:1.6}
/* wide tables on phones: show that they scroll sideways */
@media(max-width:760px){
 body.vi .tbl-wrap{background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) 0 0/28px 100% no-repeat local,linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) 100% 0/28px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(94,0,0,.22),transparent) 0 0/12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(94,0,0,.22),transparent) 100% 0/12px 100% no-repeat scroll,#fff}
 body.vi .tbl-wrap::before{content:"Swipe the table sideways to see all columns →";display:block;position:sticky;left:0;font:600 .7rem Inter,sans-serif;color:var(--muted);padding:.45rem .8rem;background:var(--accent-soft);border-bottom:1px solid var(--line)}
}
@media(max-width:640px){
 body.vi .facts{grid-template-columns:1fr 1fr}
 body.vi .two-col .cols{gap:2px}
 body.vi .two-col .col{min-width:0;font-size:.56rem}
 body.vi .two-col .col-bar{width:88%}
}
