/* ===== Background section pages (builds on about.css tokens) ===== */
.bg-facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); border-top:1px solid var(--gold-faint); border-bottom:1px solid var(--gold-faint); }
.bg-fact{ padding:clamp(20px,3vw,34px) clamp(14px,2vw,28px); display:flex; flex-direction:column; gap:8px; border-left:1px solid var(--gold-faint); }
.bg-fact:first-child{ border-left:0; }
.bg-fact-k{ font-size:14px; color:var(--gold); }
.bg-fact-v{ font-family:var(--serif); font-size:clamp(22px,2.3vw,30px); line-height:1.3; color:#fff; font-weight:600; }

.bg-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.bg-cards-4{ grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
.bg-card{ display:flex; flex-direction:column; gap:10px; padding:26px 22px; border:1px solid var(--gold-faint); border-radius:18px; background:rgba(255,255,255,.03); color:#EDEFF8; font-size:17px; line-height:1.4; }
.bg-card i{ font-size:26px; color:var(--gold); }
.bg-card small{ color:var(--ink-soft); font-size:14px; }

.bg-tl{ position:relative; max-width:860px; margin:0 auto; width:100%; padding-left:clamp(28px,4vw,52px); display:flex; flex-direction:column; gap:clamp(28px,3.4vw,42px); }
.bg-tl::before{ content:''; position:absolute; left:6px; top:8px; bottom:8px; width:1px; background:linear-gradient(180deg,var(--gold),var(--gold-faint)); }
.bg-tl-item{ position:relative; }
.bg-tl-item::before{ content:''; position:absolute; left:calc(-1*clamp(28px,4vw,52px) + 1px); top:.55em; width:11px; height:11px; border-radius:50%; background:var(--ink); border:2px solid var(--gold); box-shadow:0 0 0 5px rgba(227,194,122,.12); }
.bg-tl-year{ display:block; font-size:15px; font-weight:600; color:var(--gold); margin-bottom:4px; }
.bg-tl-title{ margin:0 0 8px; font-family:var(--serif); font-size:clamp(24px,2.6vw,32px); line-height:1.25; color:#fff; font-weight:600; }
.bg-tl-item p{ margin:0; font-size:clamp(16px,1.45vw,18px); line-height:1.9; color:#E4E6F2; max-width:62ch; }

.bg-next{ display:flex; justify-content:center; }
@media (max-width:860px){ .bg-cards{ grid-template-columns:repeat(2,1fr); } .bg-fact{ border-left:0; border-top:1px solid var(--gold-faint); } .bg-fact:first-child{ border-top:0; } }
html[lang="kn"] .bg-fact-v, html[lang="kn"] .bg-tl-title, html.translated-ltr .bg-fact-v, html.translated-ltr .bg-tl-title{ font-family:'Noto Sans Kannada','Sora',sans-serif; }

/* ===== photo galleries ===== */
.bg-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,2vw,26px); }
.bg-gallery-1{ grid-template-columns:minmax(0,760px); justify-content:center; }
.bg-fig{ margin:0; }
.bg-fig img{ width:100%; aspect-ratio:3/2; object-fit:cover; display:block; border-radius:16px; outline:1px solid var(--gold-faint); outline-offset:6px; box-shadow:0 24px 60px rgba(0,0,0,.45); }
.bg-fig figcaption{ margin-top:16px; font-size:15px; line-height:1.5; color:var(--ink-soft); }
@media (max-width:860px){ .bg-gallery{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .bg-gallery{ grid-template-columns:1fr; } }

/* ===== Current achievements: key achievements ===== */
.bg-roles{ margin:14px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.bg-roles li{ padding-left:18px; position:relative; color:#EDEFF8; font-size:17px; line-height:1.6; }
.bg-roles li::before{ content:''; position:absolute; left:0; top:.7em; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.bg-keyhead{ text-align:center; }
.bg-h2{ margin:0; font-family:var(--serif); font-weight:600; font-size:clamp(34px,4.4vw,56px); color:#fff; line-height:1.1; }
.bg-subhead{ margin:14px 0 0; color:var(--gold); font-size:clamp(16px,1.5vw,19px); }
.bg-intro{ max-width:880px; margin:0 auto; display:flex; flex-direction:column; gap:20px; }
.bg-intro p{ margin:0; font-size:clamp(17px,1.5vw,19px); line-height:1.9; color:#EDEFF8; }
.bg-intro strong, .bg-mcard strong{ color:var(--gold); font-weight:600; }
.bg-mgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
.bg-mcard{ padding:clamp(22px,2.4vw,32px); border:1px solid var(--gold-faint); border-radius:20px; background:rgba(255,255,255,.03); }
.bg-mcard h3{ margin:0 0 16px; font-family:var(--serif); font-size:clamp(24px,2.2vw,30px); color:#fff; font-weight:600; }
@media (max-width:1000px){ .bg-mgrid{ grid-template-columns:1fr; } }



/* ===== Political journey hero (landscape photo in the arch) ===== */
.bg-photo-wide .ab-photo-frame img{ aspect-ratio:4/3; object-position:50% 30%; }
.bg-gallery-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:520px){ .bg-gallery-2{ grid-template-columns:1fr; } }

/* ===== Dharwad constituency — premium layout ===== */
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.bg-title-wide{ max-width:none; font-size:clamp(34px,4.6vw,62px); line-height:1.1; }
@media (prefers-reduced-motion:no-preference){ html.bg-sb{ scroll-behavior:smooth; } }

/* premium scrollbar (page + index) */
html.bg-sb{ scrollbar-width:thin; scrollbar-color:#C9A25B rgba(255,255,255,.04); }
html.bg-sb::-webkit-scrollbar, .dw-index::-webkit-scrollbar{ width:11px; height:8px; }
html.bg-sb::-webkit-scrollbar-track, .dw-index::-webkit-scrollbar-track{ background:rgba(255,255,255,.035); }
html.bg-sb::-webkit-scrollbar-thumb, .dw-index::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,#F0D9A0,#B8924C); border-radius:999px; border:3px solid #070817; }
html.bg-sb::-webkit-scrollbar-thumb:hover, .dw-index::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg,#FBE9BC,#D1A95E); }
.dw-index{ scrollbar-width:thin; scrollbar-color:#C9A25B transparent; }
.dw-index::-webkit-scrollbar{ width:6px; height:6px; }
.dw-index::-webkit-scrollbar-track{ background:transparent; }
.dw-index::-webkit-scrollbar-thumb{ border:0; }

.dw-progress{ position:fixed; left:0; top:0; height:3px; width:100%; z-index:80; transform-origin:0 50%; transform:scaleX(0); background:linear-gradient(90deg,#E3C27A,#F6E7BF); pointer-events:none; }
.dw-layout{ max-width:var(--container); margin:0 auto; display:grid; grid-template-columns:260px minmax(0,1fr); gap:clamp(28px,4.5vw,64px); align-items:start; }
.dw-index{ position:sticky; top:104px; display:flex; flex-direction:column; gap:2px; max-height:calc(100vh - 130px); overflow:auto; padding:10px; border:1px solid var(--gold-faint); border-radius:20px; background:rgba(255,255,255,.03); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.dw-index a{ position:relative; display:flex; gap:12px; align-items:baseline; padding:10px 12px; font-size:14.5px; line-height:1.4; color:var(--ink-soft); border-radius:12px; text-decoration:none; transition:background .2s, color .2s; }
.dw-index a span{ font-family:var(--serif); font-size:15px; font-weight:600; color:var(--gold); opacity:.7; min-width:1.5em; }
.dw-index a:hover, .dw-index a:focus-visible{ color:#fff; background:rgba(227,194,122,.08); outline:none; }
.dw-index a.is-active{ color:#fff; background:linear-gradient(90deg,rgba(227,194,122,.18),rgba(227,194,122,.04)); }
.dw-index a.is-active::before{ content:''; position:absolute; left:0; top:20%; bottom:20%; width:3px; border-radius:3px; background:var(--gold); }
.dw-index a.is-active span{ opacity:1; }

.dw-cards{ display:flex; flex-direction:column; gap:clamp(26px,3.2vw,40px); min-width:0; }
.dw-card{ scroll-margin-top:104px; padding:clamp(22px,3.2vw,48px); border:1px solid var(--gold-faint); border-radius:28px; background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)); box-shadow:0 30px 80px rgba(0,0,0,.35); }
.dw-head{ display:flex; align-items:center; gap:clamp(14px,2.2vw,28px); margin-bottom:clamp(20px,2.6vw,32px); }
.dw-num{ font-family:var(--serif); font-weight:600; font-size:clamp(54px,6.4vw,92px); line-height:.9; color:transparent; -webkit-text-stroke:1.2px var(--gold); opacity:.9; }
.dw-head h2{ margin:0; font-family:var(--serif); font-weight:600; font-size:clamp(26px,3vw,40px); line-height:1.18; color:#fff; }
.dw-media{ display:grid; gap:14px; margin-bottom:clamp(20px,2.6vw,30px); }
.dw-media-1{ grid-template-columns:1fr; } .dw-media-2{ grid-template-columns:1fr 1fr; }
.dw-media img{ width:100%; display:block; object-fit:cover; border-radius:18px; aspect-ratio:16/8; box-shadow:0 20px 50px rgba(0,0,0,.45); }
.dw-media-2 img{ aspect-ratio:4/3; }
.dw-lead{ margin:0 0 clamp(18px,2.4vw,28px); max-width:76ch; font-size:clamp(16.5px,1.5vw,18.5px); line-height:1.9; color:#F0F1FA; }
.dw-subh{ margin:6px 0 14px; font-size:15px; font-weight:600; color:var(--gold); letter-spacing:.01em; }
.dw-grid{ margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:14px; }
.dw-item{ padding:18px 20px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:rgba(8,10,28,.55); transition:border-color .25s, background .25s; }
.dw-item:hover{ border-color:var(--gold-soft); background:rgba(14,16,38,.7); }
.dw-wide{ grid-column:1/-1; }
.dw-item h4{ margin:0 0 8px; font-size:16px; line-height:1.4; font-weight:600; color:#fff; }
.dw-item p{ margin:0; font-size:15.5px; line-height:1.75; color:#D5D8EA; }
.amt{ color:var(--gold); font-weight:600; white-space:nowrap; }
.dw-sub{ margin:12px 0 0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr)); gap:10px 22px; }
.dw-sub li{ position:relative; padding-left:18px; font-size:15px; line-height:1.7; color:#D5D8EA; }
.dw-sub li::before{ content:''; position:absolute; left:0; top:.72em; width:7px; height:7px; border-radius:50%; border:1.5px solid var(--gold); }
.dw-sub strong{ color:#fff; font-weight:600; }

@media (max-width:960px){
  .dw-layout{ grid-template-columns:1fr; gap:18px; }
  .dw-index{ position:sticky; top:84px; z-index:30; flex-direction:row; max-height:none; overflow-x:auto; overflow-y:hidden; padding:8px; border-radius:16px; background:rgba(8,10,28,.82); }
  .dw-index a{ flex:0 0 auto; white-space:nowrap; padding:8px 12px; }
  .dw-index a.is-active::before{ display:none; }
  .dw-card{ scroll-margin-top:150px; }
}
@media (max-width:520px){ .dw-media-2{ grid-template-columns:1fr; } .dw-card{ border-radius:22px; } }
html[lang="kn"] .dw-head h2, html.translated-ltr .dw-head h2{ font-family:'Noto Sans Kannada','Sora',sans-serif; }
