:root {
  --paper: #faf4e5;
  --forest: #214f3c;
  --ink: #263f32;
  --muted: #53624c;
  --line: #c8cbb0;
  --saffron: #a76438;
  --body-font: 'Hind', 'Nirmala UI', 'Mangal', sans-serif;
  --display-font: 'Yatra One', 'Nirmala UI', 'Mangal', serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 20px/1.85 var(--body-font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--saffron); outline-offset: 5px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); font-weight: 400; color: var(--forest); letter-spacing: 0; }
h2, h3 { text-wrap: balance; }
img { max-width: 100%; }
.content-width { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 8px 18px; background: var(--forest); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Navigation belongs to the sky; the paper wash keeps branches off the type. */
.site-header { position: absolute; top: 0; left: 0; z-index: 10; isolation: isolate; width: 100%; min-height: 110px; padding: 16px max(40px, calc((100% - 1400px) / 2)) 25px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.site-header::before { content: ''; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(180deg, #faf4e5fc 0%, #faf4e5f7 48%, #faf4e5e8 69%, #faf4e58c 86%, #faf4e500 100%); pointer-events: none; }
.wordmark { display: flex; flex-direction: column; flex-shrink: 0; text-decoration: none; line-height: 1.5; padding: 6px 0; }
.wordmark-name { font: 400 30px/1.4 var(--display-font); }
.wordmark-place { font-size: 16px; color: var(--muted); }
.header-nav { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; white-space: nowrap; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.header-nav a:hover { border-color: currentColor; }
.hero { position: relative; aspect-ratio: 1659 / 948; overflow: hidden; background: #fbf5e7; }
.scene-background { position: absolute; inset: 0; display: block; }
.scene-background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; z-index: 5; bottom: -1px; left: 0; right: 0; height: clamp(30px, 4vw, 64px); background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.father-picture { position: absolute; z-index: 4; bottom: 0; right: 3.5%; width: 21%; display: block; }
.father-picture img { display: block; width: 100%; height: auto; filter: drop-shadow(2px 4px 5px #48412b20); }

/* One illustrated journey, with a deliberately quiet, uninterrupted paper centre. */
.story-journey { position: relative; isolation: isolate; padding-top: clamp(22px, 3vw, 45px); overflow: hidden; }
.journey-art { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: url("assets/story-landscape-v2.webp") center top / 100% auto no-repeat; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 4%, #0007 12%, transparent 27%, transparent 73%, #0007 88%, #000 96%); mask-image: linear-gradient(90deg, #000 0%, #000 4%, #0007 12%, transparent 27%, transparent 73%, #0007 88%, #000 96%); }
.story-journey::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--paper), transparent 100px, transparent calc(100% - 100px), var(--paper)); }
.story-section { position: relative; isolation: isolate; }
.paper-copy { position: relative; isolation: isolate; min-width: 0; background: var(--paper); }
.paper-copy::before { content: ''; position: absolute; inset: -10px -14px; z-index: -1; background: var(--paper); box-shadow: 0 0 22px 20px var(--paper); pointer-events: none; }
.source-note { display: inline-block; max-width: 100%; font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--muted); margin-top: 20px; text-decoration-color: #98a080; }

.introductions { padding: 12px 0 0; }
.introduction-clouds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(25px, 6vw, 85px); align-items: start; }
.thought-cloud { position: relative; min-height: 280px; display: grid; place-items: center; text-align: center; padding: 36px 11% 34px; background: url("assets/thought-cloud.svg") center / 100% 100% no-repeat; }
.thought-cloud::before, .thought-cloud::after { content: ''; position: absolute; border: 1px solid #658064; background: #fff9ed; border-radius: 47% 53% 49% 51%; }
.thought-cloud::before { width: 16px; height: 12px; top: -8px; left: 25%; transform: rotate(-14deg); }
.thought-cloud::after { width: 8px; height: 6px; top: -24px; left: 20%; }
.father-cloud::before { left: auto; right: 25%; }
.father-cloud::after { left: auto; right: 20%; }
.cloud-copy { width: 100%; padding-block: 8px; }
.cloud-copy h1, .cloud-copy h2 { font-size: clamp(25px, 2.4vw, 35px); line-height: 1.5; }
.honorific { display: block; font: 600 18px/1.8 var(--body-font); }
.cloud-copy p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; margin-top: 6px; }
.cloud-copy a, .text-button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; font: 600 17px/1.6 var(--body-font); color: var(--forest); padding: 4px 0; border: 0; background: none; text-decoration: underline; text-decoration-color: #9caa8b; text-underline-offset: 5px; }
.story-bridge { position: relative; isolation: isolate; width: min(660px, calc(100% - 64px)); margin: 54px auto 0; padding: 18px 10px; text-align: center; background: var(--paper); box-shadow: 0 0 24px 24px var(--paper); font: 400 clamp(22px, 2vw, 28px)/1.9 var(--display-font); }

.town-chapter { padding-top: clamp(72px, 8vw, 118px); }
.town-intro { width: fit-content; max-width: calc(100% - 64px); text-align: center; }
.town-intro h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.5; }
.chapter-opening { font-size: 21px; color: var(--muted); margin-top: 9px; }
.town-spread { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(45px, 6vw, 90px); margin-top: 48px; }
.landmark-scene { min-width: 0; width: calc(100% + 80px); margin-left: -55px; }
.landmark-scene picture { display: block; }
.landmark-scene img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 76% 68% at 50% 50%, #000 65%, #000d 82%, transparent 100%); mask-image: radial-gradient(ellipse 76% 68% at 50% 50%, #000 65%, #000d 82%, transparent 100%); }
.town-history h3 { font-size: clamp(29px, 2.7vw, 36px); line-height: 1.55; }
.town-history p { margin-top: 18px; font-size: 20px; line-height: 1.9; }

/* National portraits are small archival pauses, separate from the family scenes. */
.leader-interlude { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 48px; max-width: 800px; margin-top: 115px; margin-bottom: 110px; }
.historical-portrait { width: 100%; text-align: center; }
.historical-portrait img { display: block; width: 100%; height: auto; filter: grayscale(1) sepia(.28) contrast(.91); mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 75% 68% at 50% 45%, #000 55%, #000c 80%, transparent 100%); mask-image: radial-gradient(ellipse 75% 68% at 50% 45%, #000 55%, #000c 80%, transparent 100%); }
.historical-portrait figcaption { font-size: 17px; line-height: 1.7; margin-top: 7px; font-weight: 600; }
.historical-portrait figcaption small { display: block; font-size: 14px; font-weight: 500; }
.leader-words p { font: 400 clamp(26px, 2.6vw, 36px)/1.7 var(--display-font); color: var(--forest); }
.leader-words footer { font-size: 17px; line-height: 1.7; margin-top: 20px; font-weight: 600; }
.leader-words footer span { display: block; color: var(--muted); font-size: 15px; font-weight: 500; }
.leader-words .source-note { font-size: 14px; margin-top: 8px; }

.election-chapter { padding: 0 0 30px; }
.election-spread { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .72fr); gap: clamp(60px, 7vw, 100px); align-items: center; }
.election-copy h2 { font-size: clamp(37px, 3.8vw, 52px); line-height: 1.5; }
.election-copy p { font-size: 20px; line-height: 1.9; margin-top: 22px; }
.election-copy .election-lead { font-size: clamp(23px, 2.05vw, 27px); line-height: 1.85; margin-top: 25px; }
.chapter-party { display: flex; align-items: center; gap: 16px; margin-top: 27px; }
.chapter-party img { display: block; flex-shrink: 0; width: 62px; height: auto; }
.chapter-party span { font-size: 17px; font-weight: 600; line-height: 1.7; }
.babuji-portrait { width: min(100%, 300px); margin-inline: auto; padding: 9px; background: #fff9ee; }
.babuji-portrait picture { display: block; }
.babuji-portrait img { display: block; width: 100%; height: auto; }
.babuji-portrait figcaption { margin: 15px -8px 0; font: 600 20px/1.7 var(--body-font); text-align: center; }
.babuji-portrait figcaption span { display: block; font-size: 17px; font-weight: 500; }
.babuji-portrait figcaption small { display: block; margin-top: 9px; font-size: 13px; line-height: 1.7; font-weight: 500; color: var(--muted); }

.memory-chapter { padding-top: 108px; }
.memory-opening { width: fit-content; max-width: calc(100% - 64px); text-align: center; }
.memory-opening h2 { font-size: clamp(35px, 3.6vw, 48px); line-height: 1.5; }
.memory-opening p { font-size: 18px; line-height: 1.8; margin-top: 15px; }
.memory-vignette { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .65fr); gap: clamp(30px, 5vw, 75px); align-items: center; margin-top: 65px; }
.memory-art { width: calc(100% + 45px); margin-left: -30px; }
.memory-art picture { display: block; }
.memory-art img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 75% 69% at 50% 50%, #000 67%, #000d 84%, transparent 100%); mask-image: radial-gradient(ellipse 75% 69% at 50% 50%, #000 67%, #000d 84%, transparent 100%); }
.vignette-reverse { grid-template-columns: minmax(0, .65fr) minmax(0, 1.6fr); margin-top: 92px; }
.vignette-reverse .memory-art { grid-column: 2; grid-row: 1; margin-left: 0; }
.vignette-reverse .vignette-caption { grid-column: 1; grid-row: 1; }
.vignette-caption h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.55; }
.vignette-caption p { font-size: 19px; line-height: 1.9; margin-top: 18px; }
.illustration-label { display: block; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.nehru-interlude { grid-template-columns: minmax(0, 1fr) 145px; max-width: 850px; }
.nehru-portrait { grid-column: 2; grid-row: 1; }
.nehru-interlude .leader-words { grid-column: 1; grid-row: 1; }

.earlier-chapter { display: grid; grid-template-columns: minmax(0, 1fr) 155px; gap: 90px; align-items: center; padding-bottom: 30px; }
.education-story h2 { font-size: clamp(34px, 3.3vw, 45px); line-height: 1.5; }
.education-story > p { font-size: 20px; line-height: 1.9; margin-top: 18px; max-width: 600px; }
.education-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 35px 0 0; padding: 0; }
.education-line li { border-top: 1px solid #b8bda0; padding-top: 12px; }
.education-line span { font: 400 30px/1.6 var(--display-font); color: var(--saffron); }
.education-line p { font-size: 17px; line-height: 1.8; margin-top: 5px; }
.prabhat-chapter { padding: 105px 0 95px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: 60px; }
.prabhat-chapter > div { max-width: 660px; margin-inline: auto; text-align: left; }
.prabhat-chapter h2 { font-size: clamp(37px, 4vw, 52px); line-height: 1.5; }
.prabhat-chapter p { font-size: 20px; line-height: 1.9; margin-top: 20px; }
.prabhat-chapter .prabhat-designation { font-size: 23px; font-weight: 600; margin-top: 10px; }
.facebook-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; text-decoration-color: #9caa8b; }
.prabhat-chapter .facebook-link { margin-top: 22px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; border-top: 1px solid var(--line); padding-top: 19px; padding-bottom: 25px; font-size: 17px; }
.site-footer .text-button { margin-top: 0; }

.info-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 36px); border: 1px solid #a8b092; border-radius: 8px; background: var(--paper); color: var(--ink); padding: 0; }
.info-dialog::backdrop { background: #1b362b99; backdrop-filter: blur(4px); }
.dialog-body { position: relative; padding: 55px 42px 34px; }
.dialog-body h2 { font-size: 34px; line-height: 1.45; }
.dialog-body p { margin-top: 20px; font-size: 18px; line-height: 1.85; }
.dialog-body .dialog-designation { font-size: 22px; font-weight: 600; margin-top: 10px; }
.dialog-body .facebook-link { margin-top: 16px; }
.dialog-close { position: absolute; top: 12px; right: 12px; height: 42px; width: 42px; border: 1px solid var(--line); border-radius: 50%; background: none; font: 400 28px/1 Arial, sans-serif; }
body.has-dialog { overflow: hidden; }

/* Content remains readable without JavaScript and when motion is reduced. */
[data-reveal] { --reveal-distance: 16px; --reveal-x: 0px; }
.grandfather-cloud, .landmark-scene, .election-copy, .memory-art, .education-story { --reveal-x: -20px; }
.father-cloud, .town-history, .babuji-portrait, .vignette-caption { --reveal-x: 20px; }
.motion-ready [data-reveal] { transform: translate3d(var(--reveal-x), var(--reveal-distance), 0); transition: transform 800ms cubic-bezier(.2,.65,.3,1); }
.motion-ready [data-reveal].is-inview, .motion-ready [data-reveal]:focus-within { transform: none; }
.motion-ready [data-parallax] { transform: translate3d(0, var(--parallax-y, 0px), 0); }
.motion-ready .scene-background { inset: -14px; }
.motion-ready .journey-art { inset-block: -24px; }

@media (min-width: 1600px) {
  .hero { max-height: 1010px; aspect-ratio: auto; height: 57.15vw; }
  .scene-background img { object-position: center bottom; }
  .father-picture { width: 20%; right: 4%; }
}
@media (max-width: 1020px) {
  .content-width { width: calc(100% - 72px); }
  .cloud-copy h1, .cloud-copy h2 { font-size: 28px; }
  .thought-cloud { min-height: 260px; padding-inline: 10%; }
  .introduction-clouds { gap: 25px; }
  .town-spread { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .landmark-scene { width: calc(100% + 40px); margin-left: -25px; }
  .election-spread { gap: 50px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr); }
  .election-copy h2 { font-size: 40px; }
  .earlier-chapter { gap: 50px; }
}
@media (max-width: 760px) {
  .content-width { width: calc(100% - 44px); }
  .site-header { min-height: 86px; padding: 13px 24px 20px; gap: 18px; }
  .wordmark-name { font-size: 25px; }
  .wordmark-place { font-size: 14px; }
  .header-nav { gap: 19px; }
  .header-nav a { font-size: 17px; }
  .father-picture { width: 23%; right: 2.5%; }
  .thought-cloud { min-height: 235px; padding: 26px 10%; }
  .cloud-copy h1, .cloud-copy h2 { font-size: 23px; }
  .honorific { font-size: 16px; }
  .cloud-copy p { font-size: 17px; }
  .story-bridge { margin-top: 38px; }
  .town-spread { display: block; margin-top: 25px; }
  .landmark-scene { width: calc(100% + 44px); margin-left: -22px; }
  .town-history { max-width: 580px; margin: 38px auto 0; }
  .town-intro h2 { font-size: 42px; }
  .leader-interlude { gap: 30px; grid-template-columns: 120px minmax(0, 1fr); margin-block: 85px; }
  .leader-words p { font-size: 28px; }
  .election-spread { gap: 35px; }
  .election-copy h2 { font-size: 35px; }
  .election-copy .election-lead { font-size: 23px; }
  .election-copy p { font-size: 19px; }
  .babuji-portrait figcaption { font-size: 18px; }
  .babuji-portrait figcaption span { font-size: 16px; }
  .memory-vignette { gap: 28px; }
  .vignette-caption h3 { font-size: 30px; }
  .nehru-interlude { grid-template-columns: minmax(0, 1fr) 120px; }
  .earlier-chapter { grid-template-columns: minmax(0, 1fr) 120px; gap: 35px; }
  .education-line { grid-template-columns: 1fr; gap: 18px; }
  .education-line li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 15px; }
  .education-line p { margin-top: 2px; }
}
@media (max-width: 540px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; min-height: 79px; padding: 12px 14px 20px; gap: 12px; }
  .site-header::before { inset-block-end: -15px; }
  .wordmark { min-width: 0; padding: 0; }
  .wordmark-name { font-size: 22px; white-space: nowrap; }
  .wordmark-place { font-size: 12px; white-space: nowrap; }
  .header-nav { gap: 15px; }
  .header-nav a { font-size: 16px; }
  .header-nav a:first-child { display: none; }
  .father-picture { width: 24%; right: 2%; }
  .hero::after { height: 26px; }
  .journey-art { -webkit-mask-image: linear-gradient(90deg, #0008, transparent 17%, transparent 83%, #0008); mask-image: linear-gradient(90deg, #0008, transparent 17%, transparent 83%, #0008); }
  .paper-copy::before { inset: -8px -6px; box-shadow: 0 0 16px 12px var(--paper); }
  .introduction-clouds { grid-template-columns: 1fr; gap: 39px; width: min(410px, calc(100% - 28px)); }
  .thought-cloud { min-height: 246px; padding: 34px 14% 30px; }
  .cloud-copy h1, .cloud-copy h2 { font-size: 27px; }
  .cloud-copy p { font-size: 19px; }
  .honorific { font-size: 17px; }
  .cloud-copy a, .cloud-copy button { font-size: 17px; }
  .story-bridge { width: calc(100% - 48px); font-size: 22px; line-height: 1.85; margin-top: 35px; padding: 15px 0; }
  .town-chapter { padding-top: 65px; }
  .town-intro { max-width: calc(100% - 36px); }
  .town-intro h2 { font-size: 37px; }
  .chapter-opening { font-size: 18px; }
  .town-history h3 { font-size: 30px; }
  .town-history p { font-size: 19px; }
  .leader-interlude, .nehru-interlude { grid-template-columns: 1fr; gap: 27px; max-width: calc(100% - 64px); margin-block: 80px; }
  .historical-portrait { width: 112px; margin-inline: auto; }
  .leader-words { text-align: center; }
  .leader-words p { font-size: 27px; }
  .leader-words footer { font-size: 17px; }
  .leader-words footer span { font-size: 14px; }
  .nehru-portrait, .nehru-interlude .leader-words { grid-row: auto; grid-column: auto; }
  .election-spread { display: flex; flex-direction: column; gap: 38px; }
  .election-copy h2 { font-size: 35px; line-height: 1.5; }
  .election-copy .election-lead { font-size: 23px; }
  .chapter-party { gap: 15px; }
  .chapter-party img { width: 57px; }
  .chapter-party span { font-size: 16px; }
  .babuji-portrait { width: min(78%, 275px); }
  .babuji-portrait figcaption { font-size: 20px; }
  .memory-chapter { padding-top: 75px; }
  .memory-opening { max-width: calc(100% - 48px); }
  .memory-opening h2 { font-size: 34px; }
  .memory-opening p { font-size: 17px; }
  .memory-vignette, .vignette-reverse { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
  .memory-art, .vignette-reverse .memory-art { width: calc(100% + 44px); margin-left: 0; }
  .vignette-caption { text-align: center; max-width: calc(100% - 20px); }
  .vignette-caption h3 { font-size: 32px; }
  .vignette-caption p { font-size: 18px; margin-top: 12px; }
  .illustration-label { margin-top: 10px; }
  .earlier-chapter { display: flex; flex-direction: column; gap: 40px; }
  .education-story h2 { font-size: 33px; }
  .education-story > p { font-size: 19px; }
  .education-line { gap: 18px; margin-top: 25px; }
  .education-line p { font-size: 18px; }
  .indira-portrait { width: 120px; }
  .prabhat-chapter { padding: 70px 0 65px; }
  .prabhat-chapter h2 { font-size: 37px; }
  .prabhat-chapter p { font-size: 19px; }
  .prabhat-chapter .prabhat-designation { font-size: 21px; }
  .site-footer { flex-direction: column; gap: 0; text-align: center; }
  .dialog-body { padding: 55px 25px 28px; }
  .dialog-body h2 { font-size: 30px; }
  .motion-ready [data-reveal] { --reveal-distance: 10px; --reveal-x: 0px; }
}
@media (max-width: 359px) {
  .wordmark-name { font-size: 20px; }
  .wordmark-place { font-size: 11px; }
  .header-nav { gap: 11px; }
  .header-nav a { font-size: 15px; }
  .cloud-copy h1, .cloud-copy h2 { font-size: 25px; }
  .cloud-copy p { font-size: 18px; }
  .town-intro h2 { font-size: 33px; }
  .election-copy h2 { font-size: 32px; }
  .leader-words p { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal], .motion-ready [data-parallax] { transform: none; }
}

/* The evening town scene and the atlas give each chapter its own setting. */
.chauraha-spread { position: relative; isolation: isolate; width: min(1659px, 100%); margin: 25px auto 0; aspect-ratio: 1659 / 948; min-height: 650px; display: grid; align-items: center; }
.chauraha-art { position: absolute; inset: 0; z-index: -1; }
.chauraha-art picture, .chauraha-art img { display: block; width: 100%; height: 100%; }
.chauraha-art img { object-fit: contain; }
.chauraha-story .town-history { width: min(37%, 400px); margin: 0; }
.landmark-keepsake { width: min(740px, calc(100% - 48px)); margin: 12px auto 0; }
.memory-chapter { background: var(--paper); }
.map-stage { margin-top: 50px; }
.map-heading { width: fit-content; max-width: 100%; margin: 0 auto 28px; text-align: center; }
.map-heading h3 { font-size: 32px; line-height: 1.5; }
.map-heading p { font-size: 19px; margin-top: 8px; }
.cinematic-map { width: 100%; overflow: hidden; }
.cinematic-map-svg { display: block; width: 100%; height: auto; }
.map-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.map-controls button { min-height: 44px; padding: 7px 16px; border: 1px solid #b0a082; background: var(--paper); font-size: 17px; font-weight: 600; }
.map-controls button[aria-pressed="true"] { background: #294b3c; color: var(--paper); border-color: #294b3c; }
.map-source { font-size: 14px; line-height: 1.8; text-align: center; color: var(--muted); margin-top: 14px; }
.map-naugarh-pin { transform-box: fill-box; transform-origin: center; animation: map-pin-breathe 5s ease-in-out infinite; }
@keyframes map-pin-breathe { 50% { filter: drop-shadow(0 0 3px #8e3c3340); } }
.memory-vignette { position: relative; isolation: isolate; }
.family-flag-art { min-width: 0; width: calc(100% + 45px); margin-left: -30px; }
.family-flag-art picture, .family-flag-art img { display: block; width: 100%; height: auto; }
.family-flag-art img { -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 67%, #000d 84%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 67%, #000d 84%, transparent 100%); }
.family-flag-art figcaption { font-size: 14px; text-align: center; color: var(--muted); margin-top: 10px; }
.social-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 25px; }
.facebook-link, .whatsapp-link { display: inline-flex; justify-content: center; flex-direction: column; align-items: center; min-height: 46px; padding: 9px 16px; border: 1px solid #9eae9c; background: #faf4e5; font-size: 17px; font-weight: 600; line-height: 1.65; text-align: center; text-decoration: none; transition: color 180ms, background-color 180ms, border-color 180ms; }
.facebook-link { border-color: #7d91a7; color: #183b62; }
.facebook-link:hover, .facebook-link:focus-visible { color: #fff; background: #123763; border-color: #123763; }
.whatsapp-link { color: #214f3c; }
.whatsapp-link:hover, .whatsapp-link:focus-visible { color: #fff; background: #214f3c; border-color: #214f3c; }
.whatsapp-link span { display: block; font-size: 14px; font-weight: 500; }
.prabhat-chapter .social-actions .facebook-link { margin-top: 0; }
.dialog-body .whatsapp-link { margin-top: 16px; }
.site-footer { gap: 16px; }
.political-archive { padding: 100px 0 30px; }
.archive-opening { width: fit-content; max-width: 100%; margin: 0 auto 55px; text-align: center; }
.archive-opening h2 { font-size: clamp(35px, 3.6vw, 48px); line-height: 1.5; }
.archive-opening p { font-size: 19px; margin-top: 15px; }
.archive-spread { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 75px; align-items: start; }
.sonia-archive { position: sticky; top: 35px; padding: 10px; background: #fff9ee; }
.sonia-archive picture, .sonia-archive img { display: block; width: 100%; height: auto; }
.sonia-archive figcaption { margin-top: 16px; font-size: 20px; font-weight: 600; line-height: 1.8; text-align: center; }
.sonia-archive small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 7px; }
.archive-timeline ol { list-style: none; margin: 0; padding: 0; }
.archive-timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 0 0 23px; }
.archive-timeline time { font: 400 23px/1.8 var(--display-font); color: var(--saffron); }
.archive-timeline li p { font-size: 19px; line-height: 1.9; }
.archive-citation { font-size: 14px; line-height: 1.85; color: var(--muted); margin-top: 8px; }
.local-news-section { padding: 10px 0 80px; background: var(--paper); }
.news-masthead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0 13px; border-top: 2px solid #52624b; border-bottom: 1px solid #afb496; }
.news-masthead h2 { font-size: clamp(29px, 3vw, 38px); line-height: 1.5; }
.news-masthead p { font-size: 17px; color: var(--muted); }
#local-news-list { list-style: none; margin: 0; padding: 25px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.local-news-headline { display: inline-block; font-size: 21px; line-height: 1.8; font-weight: 600; text-decoration: none; }
.local-news-headline:hover { text-decoration: underline; }
.local-news-meta, #local-news-status { font-size: 15px; color: var(--muted); line-height: 1.8; }
.local-news-meta { margin-top: 12px; }
#local-news-status { border-top: 1px solid #c8cbb0; padding-top: 13px; }
@media (max-width: 1020px) {
  .chauraha-story .town-history { width: min(44%, 390px); }
  .archive-spread { gap: 45px; }
  .archive-timeline li { grid-template-columns: 90px minmax(0, 1fr); gap: 15px; }
  .prabhat-chapter { gap: 40px; }
}
@media (max-width: 760px) {
  .chauraha-spread { display: flex; flex-direction: column; aspect-ratio: auto; min-height: 0; }
  .chauraha-art { position: relative; inset: auto; width: 100%; }
  .chauraha-art img { height: clamp(280px, 65vw, 400px); object-fit: cover; object-position: right bottom; }
  .chauraha-story .town-history { width: 100%; max-width: 580px; margin: 35px auto 0; }
  .landmark-keepsake { margin-top: 40px; }
  .archive-spread { grid-template-columns: 1fr; gap: 40px; }
  .sonia-archive { position: static; width: min(600px, 100%); margin: auto; }
  .prabhat-chapter { display: flex; flex-direction: column; gap: 40px; }
  .family-flag-art { width: calc(100% + 44px); margin-left: 0; }
  .prabhat-chapter > div { text-align: center; }
  .social-actions { justify-content: center; }
  .map-heading h3 { font-size: 29px; }
}
@media (max-width: 540px) {
  .map-stage { width: calc(100% - 24px); }
  .map-controls { gap: 8px; }
  .map-controls button { font-size: 16px; padding-inline: 12px; }
  .map-source { font-size: 13px; padding-inline: 10px; }
  .archive-opening h2 { font-size: 33px; }
  .archive-opening p { font-size: 18px; }
  .archive-timeline time { font-size: 21px; }
  .archive-timeline li p { font-size: 18px; }
  .political-archive { padding-top: 65px; }
  .family-flag-art { margin-inline: -22px; }
  .social-actions { width: 100%; flex-direction: column; }
  .social-actions a { width: 100%; }
  #local-news-list { grid-template-columns: 1fr; gap: 25px; }
  .local-news-item + .local-news-item { border-top: 1px solid #c8cbb0; padding-top: 24px; }
  .local-news-headline { font-size: 20px; }
  .local-news-section { padding-bottom: 55px; }
}
@media (prefers-reduced-motion: reduce) { .map-naugarh-pin { animation: none; } }

/* A quiet framed remembrance sits in the opening paper sky. */
.hero-memorial { position: absolute; z-index: 3; left: 10%; top: 26%; width: 13.5%; max-width: 235px; text-align: center; }
.memorial-frame { position: relative; padding: clamp(4px, .55vw, 9px); background: #ece2c9; border: 1px solid #8f815d; box-shadow: inset 0 0 0 2px #d7c7a2, 0 3px 9px #5f53371a; }
.memorial-frame picture, .memorial-frame img { display: block; width: 100%; height: auto; }
.memorial-flower { position: absolute; width: 61%; height: auto; left: -18%; bottom: -8%; filter: drop-shadow(1px 1px 1px #82694421); }
.hero-memorial figcaption { display: block; width: 125%; margin: 10px 0 0 -12.5%; color: #284b38; font: 600 clamp(11px, 1vw, 16px)/1.7 var(--body-font); text-shadow: 0 1px 7px #faf4e5, 0 -1px 7px #faf4e5; }

/* The archival drawing is inked into paper, without a photograph card. */
.political-archive { padding-top: 85px; }
.archive-opening { max-width: 740px; margin-bottom: 55px; }
.archive-spread { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(45px, 6vw, 85px); align-items: start; }
.sonia-archive { padding: 0; background: transparent; position: sticky; top: 18vh; }
.sonia-archive img { -webkit-mask-image: radial-gradient(ellipse 76% 71% at 50% 50%, #000 60%, #000d 80%, transparent 100%); mask-image: radial-gradient(ellipse 76% 71% at 50% 50%, #000 60%, #000d 80%, transparent 100%); }
.sonia-archive figcaption { font-family: var(--display-font); font-size: 23px; font-weight: 400; margin: 22px 10px 0; }
.sonia-archive small { font-family: var(--body-font); font-size: 14px; }
.archive-timeline ol { position: relative; padding-left: 14px; }
.archive-timeline ol::before { content: ''; position: absolute; top: 16px; bottom: 48px; width: 1px; left: 0; background: linear-gradient(#bbae8d66, #8e9c7899 45%, #bbae8d66); }
.archive-timeline li { display: block; position: relative; padding: 0 0 15px; --milestone-wash: #e4ead9; }
.archive-timeline li:nth-child(4n+2) { --milestone-wash: #eee0c9; }
.archive-timeline li:nth-child(4n+3) { --milestone-wash: #dce7e8; }
.archive-timeline li:nth-child(4n+4) { --milestone-wash: #ebdfd9; }
.archive-timeline li::after { content: ''; position: absolute; width: 7px; height: 7px; top: 26px; left: -17px; border-radius: 50%; border: 1px solid #78845e; background: var(--paper); transition: background-color 350ms, transform 500ms; }
.archive-timeline li.is-active::after { background: #526c44; transform: scale(1.35); }
.milestone-button { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 19px; text-align: left; width: 100%; border: 0; background: transparent; padding: 16px 12px; position: relative; isolation: isolate; border-radius: 0; transform: translateX(0); transition: transform 700ms cubic-bezier(.16,.7,.2,1); }
.milestone-button::before { content: ''; position: absolute; inset: 3px -8px 4px -3px; z-index: -1; background: var(--milestone-wash); opacity: 0; transform: scaleX(.75) rotate(-.6deg); transform-origin: left center; border-radius: 15% 8% 11% 6% / 23% 15% 24% 18%; transition: opacity 450ms, transform 700ms cubic-bezier(.16,.7,.2,1); }
.is-active .milestone-button, .milestone-button:hover, .milestone-button:focus-visible { transform: translateX(8px); }
.is-active .milestone-button::before, .milestone-button:hover::before, .milestone-button:focus-visible::before { opacity: .9; transform: scaleX(1) rotate(-.6deg); }
.milestone-year { font: 400 24px/1.7 var(--display-font); color: var(--saffron); }
.milestone-text { font: 500 19px/1.85 var(--body-font); }
.archive-citation { margin: 18px 12px 0; }

/* Brand marks sit on soft paper controls with continuous, gentle hover motion. */
.facebook-link, .whatsapp-link { flex-direction: row; gap: 11px; padding: 11px 18px; min-height: 52px; border-radius: 7px 10px 8px 6px; box-shadow: 0 2px 0 #4a60410a; transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 280ms cubic-bezier(.2,.7,.3,1); }
.facebook-link { background: #edf0f2; border-color: #a8b5bd; }
.whatsapp-link { background: #eaf0e6; border-color: #a6b59b; }
.facebook-link > svg, .whatsapp-link > svg { display: block; flex: 0 0 23px; width: 23px; height: 23px; }
.social-label { display: block; text-align: left; }
.social-label > span { display: block; font-size: 14px; line-height: 1.6; }
.facebook-link:hover, .whatsapp-link:hover { transform: translateY(-2px); box-shadow: 0 5px 12px #2f4c3017; }
.facebook-link:active, .whatsapp-link:active { transform: translateY(0); }

/* The greeting completes the story in the same paper setting. */
.site-footer { display: block; position: relative; padding: 65px 0 0; background: #f4eedf; border: 0; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; top: -45px; left: 0; right: 0; height: 46px; background: linear-gradient(transparent, #f4eedf); }
.farewell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: center; max-width: 960px; }
.namaste-portrait { width: min(100%, 285px); height: auto; margin: 0 auto; align-self: end; }
.namaste-portrait picture, .namaste-portrait img { display: block; width: 100%; height: auto; }
.farewell-copy { padding: 20px 0 45px; background: #f4eedf; }
.farewell-copy::before { background: #f4eedf; box-shadow: 0 0 22px 20px #f4eedf; }
.farewell-greeting { font: 400 clamp(38px, 4vw, 54px)/1.5 var(--display-font); color: var(--forest); }
.farewell-name { font: 400 28px/1.7 var(--display-font); margin-top: 15px; }
.farewell-copy > p:last-of-type { font-size: 18px; line-height: 1.8; margin-top: 10px; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.footer-colophon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; border-top: 1px solid #c8cbb0; font-size: 15px; }
.footer-colophon .text-button { margin: 0; font-size: 15px; }
.motion-ready .namaste-portrait[data-reveal] { --reveal-distance: 65px; transition: transform 1100ms cubic-bezier(.18,.7,.2,1); }
@media (max-width: 1020px) {
  .hero-memorial { width: 15%; left: 9%; top: 24%; }
  .milestone-button { grid-template-columns: 95px minmax(0, 1fr); gap: 15px; }
  .milestone-year { font-size: 22px; }
}
@media (max-width: 760px) {
  .archive-spread { grid-template-columns: 1fr; }
  .sonia-archive { position: static; width: min(600px, 100%); }
  .archive-timeline { max-width: 580px; margin-inline: auto; width: 100%; }
  .farewell { gap: 35px; }
  .namaste-portrait { max-width: 240px; }
}
@media (max-width: 540px) {
  .hero-memorial { top: 30%; width: 17%; left: 7%; }
  .hero-memorial figcaption { display: none; }
  .memorial-frame { padding: 3px; }
  .political-archive { padding-top: 50px; }
  .archive-opening { margin-bottom: 35px; }
  .sonia-archive figcaption { font-size: 21px; }
  .archive-timeline ol { padding-left: 12px; }
  .milestone-button { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 15px 8px; }
  .milestone-year { font-size: 21px; }
  .milestone-text { font-size: 18px; }
  .is-active .milestone-button, .milestone-button:hover { transform: translateX(4px); }
  .facebook-link, .whatsapp-link { padding: 10px 16px; }
  .site-footer { padding-top: 35px; }
  .farewell { display: flex; flex-direction: column-reverse; gap: 20px; }
  .farewell-copy { padding-bottom: 10px; text-align: center; }
  .farewell-greeting { font-size: 39px; }
  .farewell-name { font-size: 27px; }
  .footer-socials { justify-content: center; }
  .namaste-portrait { width: 210px; max-width: 65%; }
  .footer-colophon { flex-direction: column; gap: 3px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .milestone-button, .milestone-button::before, .archive-timeline li::after, .facebook-link, .whatsapp-link { transition: none; transform: none; }
}
.grandfather-picture { position: absolute; z-index: 4; bottom: 0; left: 1%; width: 20%; display: block; }
.grandfather-picture img { display: block; width: 100%; height: auto; filter: drop-shadow(-2px 4px 5px #48412b20); }
@media (min-width: 1600px) { .grandfather-picture { width: 18%; left: 2%; } }
@media (max-width: 760px) { .grandfather-picture { width: 20%; left: .5%; } }
@media (max-width: 540px) { .grandfather-picture { width: 21%; left: .5%; } }

/* Chapter-specific pen work enriches the paper without intruding on the copy. */
.election-chapter { padding: 65px 0 85px; position: relative; isolation: isolate; }
.election-art-backdrop { position: absolute; inset: -45px 0 -40px; z-index: -1; background: url("assets/assembly-folio-v1.webp") center / cover no-repeat; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.election-copy { margin-block: 20px; }
.babuji-portrait { background: transparent; padding: 0; }
.babuji-portrait img { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.babuji-portrait figcaption { background: var(--paper); box-shadow: 0 0 15px 15px var(--paper); }
.nehru-interlude { position: relative; isolation: isolate; padding-bottom: 90px; margin-block: 80px 65px; }

/* The memory drawing sits above one horizontal, illustrated sequence. */
.archive-spread { display: block; }
.sonia-archive { position: relative; top: auto; width: min(660px, 75%); margin: 0 auto 28px; }
.sonia-archive figcaption { font: 600 20px/1.85 var(--body-font); text-wrap: balance; }
.archive-timeline { width: 100%; max-width: none; }
.timeline-drawing { width: calc(100% + 112px); height: clamp(230px, 27vw, 330px); margin: 0 -56px 18px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 5%, #000 85%, transparent); }
.timeline-drawing picture, .timeline-drawing img { display: block; width: 100%; height: 100%; }
.timeline-drawing img { object-fit: cover; object-position: center 60%; }
.timeline-rail { position: relative; overflow: hidden; padding-top: 8px; }
.timeline-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: #a8af8d; }
.timeline-marker { position: absolute; left: 0; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--timeline-ink, #8b563c); transform: translateX(var(--marker-x, 0px)); transition: transform 650ms cubic-bezier(.22,.7,.3,1), background-color 350ms; pointer-events: none; }
.archive-timeline ol { display: flex; gap: 8px; padding: 12px 0 8px; border: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #a4af8a #f1e8d4; scroll-snap-type: x proximity; }
.archive-timeline ol::before, .archive-timeline li::after { display: none; }
.archive-timeline li { flex: 1 0 110px; padding: 0; scroll-snap-align: center; }
.milestone-button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; gap: 8px; padding: 12px 8px 17px; text-align: center; color: #626b54; }
.milestone-button::before { display: none; }
.milestone-button::after { content: ''; position: absolute; bottom: 7px; left: 24%; right: 24%; height: 3px; background: var(--timeline-ink, #8b563c); transform: scaleX(0); transform-origin: left; transition: transform 350ms ease; }
.is-active .milestone-button::after { transform: scaleX(1); }
.milestone-year { font-size: 22px; line-height: 1.7; white-space: nowrap; color: inherit; }
.timeline-enhanced .milestone-text { display: none; }
.is-active .milestone-button, .milestone-button:hover, .milestone-button:focus-visible { transform: none; color: var(--timeline-ink, #8b563c); }
.milestone-details { display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: start; gap: 30px; max-width: 760px; min-height: 140px; margin: 22px auto 0; padding: 18px 0; background: transparent; text-align: left; border: 0; border-radius: 0; transition: none; }
.milestone-details-year { display: block; padding-right: 22px; border-right: 1px solid #c1bba0; font: 400 29px/1.7 var(--display-font); color: var(--timeline-ink, #8b563c); }
.milestone-details p { font-size: 23px; line-height: 1.85; margin-top: 2px; }
.timeline-nav { display: flex; justify-content: center; gap: 20px; margin-top: 5px; }
.timeline-nav button { min-height: 44px; border: 0; background: transparent; color: var(--forest); padding: 5px 8px; font-size: 17px; text-decoration: underline; text-decoration-color: #a7af93; text-underline-offset: 5px; }
.timeline-nav button:disabled { opacity: .4; cursor: default; }
.archive-citation { max-width: 800px; margin: 25px auto 0; text-align: center; }

/* One composed closing, with one identity and one pair of contact controls. */
.site-footer { background: var(--paper); padding: 35px 0 0; overflow: hidden; }
.site-footer::before { display: none; }
.closing-composition { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 65px; align-items: center; }
.closing-composition .family-flag-art { width: calc(100% + 70px); margin-left: -45px; }
.closing-intro h2 { font-size: clamp(35px, 3.6vw, 46px); line-height: 1.5; }
.closing-intro .prabhat-designation { font-size: 22px; font-weight: 600; margin-top: 12px; line-height: 1.75; }
.closing-intro > p:not(.prabhat-designation) { font-size: 19px; line-height: 1.9; margin-top: 21px; }
.closing-intro .social-actions { align-items: stretch; }
.closing-intro .social-actions a { flex: 1 0 170px; }
.closing-namaste { display: flex; justify-content: flex-end; align-items: center; gap: 30px; margin-top: 20px; }
.closing-namaste .namaste-portrait { width: 150px; margin: 0; }
.closing-signoff { padding-bottom: 15px; }
.closing-signoff p { font: 400 32px/1.7 var(--display-font); color: var(--forest); }
.closing-signoff span { font-size: 16px; color: var(--muted); }
.footer-colophon { margin-top: 0; }
.local-news-section { padding-top: 80px; padding-bottom: 55px; }
.grandfather-picture { width: 21%; left: .8%; }
@media (min-width: 1600px) { .grandfather-picture { width: 20%; left: 1.5%; } }
@media (max-width: 1020px) {
  .closing-composition { gap: 40px; }
  .sonia-archive { width: min(700px, 90%); }
}
@media (max-width: 760px) {
  .election-art-backdrop { background-size: auto 100%; background-position: 67% center; opacity: .55; }
  .nehru-interlude::after { right: -12px; width: 250px; height: 170px; }
  .closing-composition { display: flex; flex-direction: column; gap: 25px; }
  .closing-composition .family-flag-art { width: calc(100% + 44px); margin-left: 0; }
  .closing-intro { text-align: center; max-width: 570px; }
  .closing-namaste { justify-content: center; }
}
@media (max-width: 540px) {
  .election-chapter { padding-block: 45px 60px; }
  .election-art-backdrop { opacity: .38; background-position: 73% center; }
  .nehru-interlude { padding-bottom: 115px; }
  .sonia-archive { width: calc(100% + 30px); max-width: none; margin-left: -15px; margin-bottom: 30px; }
  .timeline-drawing { width: calc(100% + 44px); height: 210px; margin-inline: -22px; }
  .timeline-drawing img { min-width: 620px; width: 190%; max-width: none; object-position: center 60%; transform: translateX(-23%); }
  .archive-timeline li { flex-basis: 102px; }
  .milestone-year { font-size: 20px; }
  .milestone-details { grid-template-columns: 82px minmax(0, 1fr); gap: 18px; min-height: 155px; padding: 18px 0; }
  .milestone-details-year { padding-right: 12px; font-size: 24px; }
  .milestone-details p { font-size: 20px; }
  .closing-intro h2 { font-size: 36px; }
  .closing-intro .prabhat-designation { font-size: 21px; }
  .closing-intro .social-actions { flex-direction: row; }
  .closing-intro .social-actions a { flex: 1 1 100%; }
  .closing-namaste { gap: 20px; margin-top: 30px; }
  .closing-namaste .namaste-portrait { width: 125px; max-width: 38%; }
  .closing-signoff p { font-size: 27px; }
  .closing-signoff span { font-size: 14px; }
  .local-news-section { padding-top: 65px; }
  .grandfather-picture { width: 23%; left: .5%; }
}
@media (prefers-reduced-motion: reduce) { .milestone-details { transition: none; } }

/* Portraits occupy the cleared foreground corners, leaving the tea shop visible. */
.grandfather-picture { width: 15.8%; left: .6%; }
.father-picture { width: 18%; right: 1.3%; }
.legislative-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 75px; margin-top: 50px; }
.tenure-memory { padding-top: 20px; border-top: 1px solid #b9b99a; }
.tenure-period { margin: 0 0 4px; font: 400 23px/1.7 var(--display-font); color: var(--saffron); }
.tenure-memory h3 { font-size: 30px; line-height: 1.6; }
.tenure-memory p:last-child { margin-top: 12px; font-size: 20px; line-height: 1.9; }
@media (min-width: 1600px) { .grandfather-picture { width: 15.8%; left: .8%; } .father-picture { width: 18%; right: 1.5%; } }
@media (max-width: 760px) { .grandfather-picture { width: 16.5%; left: .5%; } .father-picture { width: 19%; right: 1%; } }
@media (max-width: 375px) { .wordmark-name { font-size: 20px; } .header-nav { gap: 11px; } .header-nav a { font-size: 15px; } }
@media (max-width: 760px) { .legislative-story { grid-template-columns: 1fr; gap: 35px; margin-top: 40px; } .tenure-memory h3 { font-size: 29px; } }
@media (prefers-reduced-motion: reduce) { .timeline-marker, .milestone-button::after { transition: none; } }

/* A readable journal: every date stays beside its event, with no swapping panel. */
.life-record { max-width: 980px; margin: 38px auto 0; }
.life-record-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; row-gap: 0; list-style: none; margin: 0; padding: 0; }
.life-record-entry { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 22px; position: relative; min-width: 0; padding: 30px 0 34px; border-top: 1px solid #b9b999; }
.life-record-entry::before { content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #8d6a44; }
.record-year { font: 400 25px/1.7 var(--display-font); color: #98633b; white-space: nowrap; }
.life-record-entry h3 { font-size: 25px; line-height: 1.65; text-wrap: balance; }
.life-record-entry p { margin-top: 8px; font-size: 19px; line-height: 1.85; }
.record-election .record-year { color: var(--forest); }
.record-election { border-top-color: #608364; }
.record-election::before { background: #608364; width: 7px; height: 7px; top: -4px; }
.record-remembrance { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 14px 32px; padding-top: 27px; margin-top: 10px; border-top: 1px solid #b9b999; font: 400 25px/1.8 var(--display-font); text-align: center; color: var(--forest); }
.record-remembrance span { display: inline-block; font: 600 17px/1.8 var(--body-font); color: var(--muted); }

/* The closing returns to the same courtyard, with detail kept at the edges. */
.site-footer { padding-top: 50px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.footer-art { position: absolute; inset: 0; z-index: -1; background: url("assets/footer-courtyard-edges-v1.webp") center bottom / 100% 100% no-repeat; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 11%, #0008 21%, transparent 31%, transparent 77%, #0008 90%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, #000 11%, #0008 21%, transparent 31%, transparent 77%, #0008 90%, #000 100%); }
.footer-colophon { margin-top: 10px; background: var(--paper); }
.footer-lastline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 2px 0 14px; background: var(--paper); }
.build-credit { font: 500 13px/1.7 var(--body-font); color: var(--muted); }
.build-credit a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 600; color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.back-top-slot { min-height: 66px; min-width: 114px; display: flex; align-items: center; justify-content: flex-end; }
.back-to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-size: 16px; font-weight: 600; text-decoration: none; min-height: 54px; padding: 4px 6px; }
.back-top-mark { position: relative; display: grid; place-items: center; width: 42px; height: 48px; border: 1px solid #718168; border-radius: 45% 45% 8px 9px; background: #fff8e9; box-shadow: inset 0 0 0 3px var(--paper); transition: background-color 220ms, transform 250ms ease; }
.back-top-mark::after { content: ''; position: absolute; inset: 3px; border: 1px solid #bdad81; border-radius: 43% 45% 6px 7px; pointer-events: none; }
.back-top-mark svg { width: 27px; height: 32px; }
.back-to-top:hover .back-top-mark { background: #eee4cc; transform: translateY(-3px); }
.back-to-top.is-floating { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: max(18px, env(safe-area-inset-right)); z-index: 15; padding: 6px 13px 6px 7px; border: 1px solid #b4b49a; border-radius: 36px 36px 15px 15px; background: #faf4e5f5; box-shadow: 0 3px 15px #253d2c14; }
body.has-dialog .back-to-top.is-floating { visibility: hidden; }

/* Compact editorial photographs, rather than blank headline columns. */
.local-news-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 21px; align-items: start; min-width: 0; }
.local-news-thumbnail { display: block; width: 132px; aspect-ratio: 4 / 3; overflow: hidden; background: #e9dfc8; border: 1px solid #c2b99c; padding: 3px; box-shadow: 2px 3px 0 #b4a67e16; }
.local-news-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.83); transition: transform 450ms ease; }
.local-news-thumbnail:hover img { transform: scale(1.04); }
.local-news-copy { min-width: 0; }
.local-news-headline { font-size: 20px; line-height: 1.75; }
.local-news-meta { font-size: 14px; margin-top: 8px; }
.local-news-item:not(:has(.local-news-thumbnail)) { grid-template-columns: 1fr; }

@media (max-width: 1020px) {
  .life-record-list { column-gap: 40px; }
  .life-record-entry { grid-template-columns: 1fr; gap: 8px; }
  .local-news-item { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; }
  .local-news-thumbnail { width: 105px; }
}
@media (max-width: 760px) {
  .life-record { max-width: 570px; }
  .life-record-list { grid-template-columns: 1fr; }
  .life-record-entry { grid-template-columns: 115px minmax(0, 1fr); gap: 20px; padding-block: 24px 28px; }
  .life-record-entry h3 { font-size: 24px; }
  #local-news-list { grid-template-columns: 1fr; gap: 26px; }
  .local-news-item { grid-template-columns: 124px minmax(0, 1fr); gap: 20px; }
  .local-news-thumbnail { width: 124px; }
  .footer-art { opacity: .75; -webkit-mask-image: linear-gradient(90deg, #000, transparent 21%, transparent 83%, #000); mask-image: linear-gradient(90deg, #000, transparent 21%, transparent 83%, #000); }
}
@media (max-width: 540px) {
  .life-record { margin-top: 28px; }
  .life-record-entry { grid-template-columns: 1fr; gap: 5px; padding: 22px 3px 26px; }
  .record-year { font-size: 24px; }
  .life-record-entry h3 { font-size: 25px; }
  .life-record-entry p { font-size: 19px; margin-top: 5px; }
  .record-remembrance { font-size: 23px; flex-direction: column; align-items: center; gap: 4px; padding-block: 22px 0; }
  .local-news-item { grid-template-columns: 94px minmax(0, 1fr); gap: 16px; }
  .local-news-thumbnail { width: 94px; aspect-ratio: 1; }
  .local-news-headline { font-size: 19px; }
  .footer-lastline { gap: 10px; }
  .back-to-top { font-size: 15px; gap: 7px; }
  .back-to-top.is-floating { right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); padding: 4px 9px 4px 4px; }
  .back-top-mark { width: 36px; height: 43px; }
  .back-top-slot { min-width: 108px; }
  .footer-colophon { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .back-top-mark, .local-news-thumbnail img { transition: none; } }

/* One light colophon lets the courtyard continue beneath the signature. */
.footer-colophon { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px; padding: 20px 0 16px; margin-top: 8px; background: transparent; border-top-color: #a8ad8c88; }
.footer-identity { min-width: 0; line-height: 1.7; }
.footer-identity > span { font-size: 15px; }
.footer-identity .build-credit { margin-top: 2px; font-size: 12px; }
.footer-identity .build-credit a { min-height: 30px; }
.footer-colophon .text-button { font-size: 14px; color: var(--muted); }
.back-top-slot { min-height: 54px; }
.back-to-top:not(.is-floating) { font-size: 14px; gap: 9px; }
.back-to-top:not(.is-floating) .back-top-mark { width: 34px; height: 40px; background: transparent; box-shadow: none; border-color: #8b967d; }
.back-to-top:not(.is-floating) .back-top-mark::after { border-color: #b5af8d88; }
.back-to-top:not(.is-floating) .back-top-mark svg { width: 24px; height: 29px; }
@media (max-width: 540px) {
  .footer-colophon { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 16px; padding-block: 18px 8px; text-align: left; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-colophon .text-button { justify-self: start; }
  .footer-colophon .back-top-slot { justify-self: end; }
}

/* The cloud outline stretches around its copy, rather than containing it in a fixed ratio. */
.thought-cloud { min-height: 300px; padding: 58px 13% 62px; background: none; }
.thought-cloud > .cloud-copy { position: relative; z-index: 1; padding: 0; }
.thought-cloud > .cloud-copy h1, .thought-cloud > .cloud-copy h2 { line-height: 1.65; }
.thought-cloud { isolation: isolate; }
.thought-cloud::before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: url("assets/thought-cloud.svg") center / 100% 100% no-repeat; transform: none; z-index: -1; }
.thought-cloud::after { width: 9px; height: 7px; top: -14px; left: 23%; right: auto; }
.father-cloud::after { left: auto; right: 23%; }
@media (max-width: 1000px) {
  .introduction-clouds { grid-template-columns: 1fr; width: min(530px, calc(100% - 36px)); gap: 30px; }
  .thought-cloud { padding: 54px 13% 58px; min-height: 290px; }
  .cloud-copy h1, .cloud-copy h2 { font-size: 30px; }
  .cloud-copy p { font-size: 20px; }
  .leader-interlude, .nehru-interlude { grid-template-columns: 105px minmax(0, 1fr); gap: 24px; max-width: calc(100% - 60px); margin-block: 55px; padding-bottom: 25px; }
  .nehru-portrait, .nehru-interlude .leader-words { grid-row: 1; grid-column: auto; }
  .nehru-portrait { grid-column: 1; }
  .nehru-interlude .leader-words { grid-column: 2; }
  .leader-words { text-align: left; }
  .historical-portrait { width: 100%; }
  .leader-words p { font-size: 25px; line-height: 1.7; }
  .historical-portrait figcaption { font-size: 15px; }
  .leader-words footer { font-size: 15px; margin-top: 12px; }
  .leader-words footer span { font-size: 13px; }
}
@media (max-width: 540px) {
  .thought-cloud { min-height: 280px; padding: 52px 12% 56px; }
  .cloud-copy h1, .cloud-copy h2 { font-size: 27px; }
  .cloud-copy p { font-size: 18px; }
  .honorific { font-size: 16px; }
  .leader-interlude, .nehru-interlude { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; max-width: calc(100% - 48px); margin-block: 48px; }
  .leader-interlude .historical-portrait { width: 76px; float: none; margin: 7px 0 0; }
  .historical-portrait figcaption { font-size: 12px; line-height: 1.55; }
  .leader-words p { font-size: 23px; line-height: 1.75; }
  .leader-words footer { padding-top: 8px; }
  .leader-interlude::before { display: none; }
  .leader-interlude::after { display: none; }
  .nehru-interlude::after { background: none; position: static; width: auto; height: auto; }
  .legislative-story { gap: 27px; margin-top: 28px; }
  .tenure-memory { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 17px; }
  .tenure-memory .tenure-period { grid-column: 2; font-size: 21px; }
  .tenure-memory h3 { grid-column: 2; font-size: 26px; line-height: 1.6; }
  .tenure-memory p:last-child { grid-column: 2; font-size: 19px; margin-top: 5px; }
  .election-chapter { padding-bottom: 30px; }
}

/* Mobile has its own painted composition and compact identity treatment. */
@media (max-width: 1000px) {
  .hero { aspect-ratio: 1122 / 1402; max-height: 900px; }
  .scene-background img { object-position: center bottom; }
  .grandfather-picture { width: 36%; left: 1%; }
  .father-picture { width: 39%; right: 1%; }
  .site-header { min-height: 86px; padding: 15px 22px 20px; align-items: start; }
  .wordmark-name { font-size: 25px; }
  .wordmark-place { font-size: 14px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 17px; }
  .header-nav a:first-child { display: none; }
  .introduction-clouds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: min(570px, calc(100% - 48px)); }
  .thought-cloud { min-height: 0; background: transparent; padding: 24px 0; text-align: left; }
  .thought-cloud::before, .thought-cloud::after { display: none; }
  .father-cloud { order: -1; border-bottom: 1px solid #b4b89a; }
  .cloud-copy { padding: 0; }
  .cloud-copy h1 { font-size: 35px; line-height: 1.5; }
  .cloud-copy h2 { font-size: 28px; line-height: 1.6; }
  .honorific { display: inline; margin-right: 7px; font-size: 17px; }
  .cloud-copy p { font-size: 20px; margin-top: 3px; }
  .cloud-copy a, .cloud-copy button { font-size: 17px; margin-top: 8px; }
  .story-journey { padding-top: 2px; }
  .introductions .story-bridge { font-size: 23px; margin-top: 22px; }
  .election-spread { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); gap: 18px 28px; align-items: start; }
  .election-copy { display: contents; }
  .election-copy::before { display: none; }
  .election-copy h2 { grid-column: 1 / -1; font-size: clamp(32px, 4.5vw, 43px); line-height: 1.5; padding-bottom: 7px; }
  .election-copy .election-lead { grid-column: 1; grid-row: 2; font-size: 21px; line-height: 1.9; margin-top: 0; }
  .election-date { display: block; font: 400 38px/1.5 var(--display-font); color: var(--saffron); margin-bottom: 8px; }
  .babuji-portrait { grid-column: 2; grid-row: 2; width: 100%; max-width: 225px; margin-top: 8px; }
  .babuji-portrait figcaption { font-size: 16px; line-height: 1.7; }
  .babuji-portrait figcaption span { font-size: 14px; }
  .babuji-portrait figcaption small { font-size: 11px; }
  .chapter-party { grid-column: 1 / -1; grid-row: 3; margin-top: 3px; padding-block: 12px; border-top: 1px solid #bebc9d; }
}
@media (min-width: 1001px) { .election-date { display: inline-block; margin-right: 8px; padding: 0 7px; color: var(--saffron); font-family: var(--display-font); border-bottom: 1px solid #c1ad7b; } }
@media (max-width: 540px) {
  .site-header { display: flex; padding: 14px 18px 20px; gap: 14px; }
  .wordmark-name { font-size: 23px; }
  .wordmark-place { font-size: 12px; }
  .header-nav { gap: 13px; }
  .header-nav a { font-size: 15px; }
  .cloud-copy h1 { font-size: 32px; }
  .cloud-copy h2 { font-size: 25px; }
  .cloud-copy p { font-size: 18px; }
  .election-spread { grid-template-columns: minmax(0, 1fr) 120px; column-gap: 20px; }
  .election-copy h2 { font-size: 33px; }
  .election-copy .election-lead { font-size: 19px; line-height: 1.85; }
  .election-date { font-size: 34px; }
  .babuji-portrait figcaption { font-size: 14px; }
  .babuji-portrait figcaption span { font-size: 12px; }
  .babuji-portrait figcaption small { font-size: 10px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 14px; }
  .wordmark-name { font-size: 21px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 14px; }
  .election-spread { grid-template-columns: minmax(0, 1fr) 100px; gap: 18px; }
}

/* The contact pair shares a deliberate baseline, soft bevel and restrained gloss. */
.social-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.facebook-link, .whatsapp-link { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 76px; padding: 13px 16px; border-radius: 11px; text-decoration: none; box-shadow: inset 0 1px 0 #ffffffd9, inset 0 -1px 0 #fff9, 0 3px 7px #273e2b0b; }
.facebook-link { color: #244c76; background: linear-gradient(160deg, #f8fbfd, #e4eaf0); border-color: #a5b7c7; }
.whatsapp-link { color: #255a45; background: linear-gradient(160deg, #f6faf4, #e3ecdf); border-color: #9db697; }
.social-label { flex: 1; min-width: 0; text-align: left; line-height: 1.6; }
.social-label > strong { display: block; font: 600 18px/1.6 var(--body-font); }
.social-label > span { display: block; font: 500 14px/1.7 var(--body-font); white-space: nowrap; }
.facebook-link > svg, .whatsapp-link > svg { flex: 0 0 24px; width: 24px; height: 24px; }
.facebook-link::after, .whatsapp-link::after { content: ''; position: absolute; inset: -40% 0; width: 30%; background: linear-gradient(90deg, transparent, #ffffff50, transparent); transform: translateX(-240%) rotate(20deg); transition: transform 650ms ease; z-index: -1; pointer-events: none; }
.facebook-link:hover, .facebook-link:focus-visible { background: linear-gradient(145deg, #244e7d, #123354); color: white; border-color: #193f67; box-shadow: inset 0 1px 0 #ffffff33, 0 5px 12px #16375a22; }
.whatsapp-link:hover, .whatsapp-link:focus-visible { background: linear-gradient(145deg, #376f54, #214b38); color: white; border-color: #275740; box-shadow: inset 0 1px 0 #ffffff33, 0 5px 12px #244e3522; }
.facebook-link:hover::after, .whatsapp-link:hover::after { transform: translateX(480%) rotate(20deg); }
.closing-intro .social-actions a { flex: initial; }
@media (max-width: 1000px) { .closing-intro .social-actions { max-width: 480px; margin-inline: auto; } }
@media (max-width: 540px) { .social-actions { gap: 11px; } .facebook-link, .whatsapp-link { min-height: 74px; padding: 11px 12px; gap: 9px; } .social-label > strong { font-size: 17px; } .social-label > span { font-size: 13px; } .closing-intro .social-actions { display: grid; } }
@media (max-width: 360px) { .social-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .facebook-link::after, .whatsapp-link::after { transition: none; } }
@media (max-width: 1000px) {
  .introductions { background: var(--paper); padding-top: 5px; }
  .introductions .thought-cloud { background: var(--paper); }
  .introductions .story-bridge { background: var(--paper); }
}

/* Illustrated folios give the life story three distinct, readable chapters. */
.chronicle { position: relative; margin-top: 38px; }
.chronicle-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.chronicle-leaf { position: relative; min-width: 0; padding: 0 20px 26px; border-bottom: 1px solid #b4a17c; background: linear-gradient(180deg, transparent 0 34%, #f1e6ce33 64%, #faf4e500); }
.chronicle-leaf::before, .chronicle-leaf::after { content: ''; position: absolute; bottom: -4px; width: 7px; height: 7px; border: 1px solid #a98b55; transform: rotate(45deg); background: var(--paper); }
.chronicle-leaf::before { left: 0; }.chronicle-leaf::after { right: 0; }
.chapter-art { height: 210px; width: calc(100% + 40px); margin-inline: -20px; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 75% 75%, #000 50%, transparent 98%); mask-image: radial-gradient(ellipse 75% 75%, #000 50%, transparent 98%); }
.chapter-art img { width: 100%; height: 100%; display: block; object-fit: contain; mix-blend-mode: multiply; }
.atlas-art { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.atlas-art svg { display: block; width: 100%; height: 100%; }
.assembly-art { background: url("assets/assembly-folio-v1.webp") right center / auto 250px no-repeat; }
.chapter-heading { padding: 15px 0 18px; border-bottom: 1px solid #c1ad7b88; }
.chapter-heading > span { display: inline-block; font: 400 26px/1.7 var(--display-font); color: #9a6b3b; }
.chapter-heading h3 { font-size: 29px; line-height: 1.6; margin-top: 5px; }
.chapter-stops { list-style: none; margin: 0; padding: 7px 0 0; }
.chapter-stops li { display: grid; grid-template-columns: 83px minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.chapter-stops time { font: 600 17px/1.85 var(--body-font); color: #8f6745; }
.chapter-stops p { font-size: 18px; line-height: 1.85; }
.chronicle-controls { display: none; }
.record-remembrance { margin-top: 35px; padding-top: 22px; }
@media (max-width: 1000px) {
  .chronicle-track { display: flex; gap: 20px; width: calc(100% + 40px); margin-left: -20px; padding: 0 20px 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .chronicle-track::-webkit-scrollbar { display: none; }
  .chronicle-leaf { flex: 0 0 calc(100% - 22px); max-width: 520px; scroll-snap-align: center; padding-inline: 23px; }
  .chapter-art { height: 230px; width: calc(100% + 46px); margin-inline: -23px; }
  .assembly-art { background-size: auto 285px; }
  .chapter-heading h3 { font-size: 31px; }
  .chapter-stops li { grid-template-columns: 95px minmax(0, 1fr); gap: 18px; }
  .chapter-stops p { font-size: 20px; }
  .chapter-stops time { font-size: 18px; }
  .chronicle-controls { display: flex; justify-content: center; gap: 24px; align-items: center; margin-top: 10px; }
  .chronicle-controls > button { border: 0; background: none; min-height: 44px; padding: 6px; font-size: 16px; color: var(--forest); }
  .chronicle-controls > button:disabled { opacity: .35; }
  .chapter-tabs { display: flex; gap: 2px; }
  .chapter-tabs button { width: 38px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
  .chapter-tabs button::before { content: ''; width: 6px; height: 6px; border: 1px solid #8b7048; transform: rotate(45deg); background: transparent; transition: background-color 250ms, transform 250ms; }
  .chapter-tabs button[aria-current]::before { background: #8b7048; transform: rotate(45deg) scale(1.2); }
}
@media (max-width: 540px) {
  .chronicle { margin-top: 22px; }
  .chronicle-leaf { padding-inline: 15px; }
  .chapter-art { width: calc(100% + 30px); margin-inline: -15px; height: 205px; }
  .chapter-heading { padding-top: 9px; }
  .chapter-heading h3 { font-size: 28px; }
  .chapter-heading > span { font-size: 25px; }
  .chapter-stops li { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }
  .chapter-stops time { font-size: 16px; }
  .chapter-stops p { font-size: 19px; }
}

.public-connections { padding: 65px 0 35px; }
.connections-heading { display: flex; align-items: center; gap: 26px; margin-bottom: 28px; }
.connections-heading::after { content: ''; height: 1px; background: #b1aa86; flex: 1; }
.connections-heading h2 { font-size: 36px; line-height: 1.5; }
.campaign-links { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.campaign-link { min-width: 0; text-decoration: none; display: block; }
.campaign-image { position: relative; overflow: hidden; display: block; padding: 4px; border: 1px solid #b9ae8f; background: #fff8eb; box-shadow: 3px 4px 0 #ae987826; }
.campaign-image > img { display: block; width: 100%; height: 270px; object-fit: cover; transition: transform 650ms ease; }
.vote-feature .campaign-image { border-color: #a78470; }
.vote-feature .campaign-image > img { object-position: center 42%; }
.campaign-image .campaign-badge { position: absolute; right: 14px; top: 14px; width: 52px; height: 52px; object-fit: contain; border-radius: 50%; border: 2px solid #fff8ed; box-shadow: 0 2px 6px #321c1c20; }
.campaign-link:hover .campaign-image > img:first-child { transform: scale(1.025); }
.campaign-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 0 12px; border-bottom: 1px solid #b5ad8c; font: 400 28px/1.5 var(--display-font); }
.campaign-caption > span:last-child { font: 500 17px/1 var(--body-font); color: #8e6b47; }
.reference-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.reference-link { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 18px 5px; min-height: 120px; border-bottom: 1px solid #c4b99b; transition: border-color 250ms, color 250ms; }
.reference-link:hover { color: #925f38; border-color: #925f38; }
.reference-mark { flex: 0 0 70px; display: grid; place-items: center; width: 70px; height: 70px; }
.party-hand { display: block; overflow: hidden; }
.party-hand img { display: block; height: 70px; width: auto; max-width: none; }
.reference-mark > svg { width: 64px; height: 72px; }
.reference-mark > img { display: block; max-width: 100%; max-height: 70px; object-fit: contain; }
.reference-mark.party-hand > img { width: auto; height: 70px; max-width: none; max-height: none; object-fit: initial; }
.reference-link > span:last-child { font: 600 19px/1.7 var(--body-font); }
.reference-link small { display: block; font: 500 14px/1.7 var(--body-font); color: var(--muted); }
@media (max-width: 1000px) {
  .campaign-links { gap: 24px; }
  .campaign-image > img { height: 240px; }
  .reference-links { gap: 18px; }
  .reference-link { flex-direction: column; align-items: flex-start; gap: 11px; }
}
@media (max-width: 540px) {
  .public-connections { padding-top: 45px; }
  .connections-heading h2 { font-size: 30px; }
  .campaign-links { grid-template-columns: 1fr; gap: 23px; }
  .campaign-image > img { height: auto; aspect-ratio: 1.55; }
  .rahul-feature { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: center; }
  .rahul-feature .campaign-image > img { height: 100px; aspect-ratio: auto; object-position: 48% center; }
  .rahul-feature .campaign-caption { font-size: 24px; padding-block: 10px; }
  .vote-feature .campaign-caption { font-size: 27px; }
  .reference-links { gap: 16px; margin-top: 20px; }
  .reference-link { padding: 14px 0; align-items: center; gap: 11px; text-align: center; }
  .reference-mark { width: 60px; height: 64px; flex-basis: 64px; }
  .reference-mark.party-hand > img { height: 60px; }
  .reference-mark > svg { height: 64px; width: 56px; }
  .reference-link > span:last-child { font-size: 16px; line-height: 1.7; }
  .reference-link small { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .campaign-image > img { transition: none; } }
@media (max-width: 1000px) { .chronicle:not(.is-enhanced) .chronicle-controls { display: none; } }
.reference-mark.party-hand > img { width: 70px; height: 70px; max-width: 100%; object-fit: contain; }
.reference-mark.constitution-mark { width: 76px; height: 86px; }
.reference-mark.constitution-mark > img { max-height: 86px; width: auto; }
.footer-identity { position: relative; isolation: isolate; }
.footer-identity::before { content: ''; position: absolute; inset: -5px 0 -5px -10px; z-index: -1; max-width: 320px; background: #faf4e5f2; box-shadow: 0 0 18px 13px #faf4e5e8; border-radius: 15%; pointer-events: none; }
.footer-identity > span { font-size: 16px; font-weight: 600; color: var(--forest); }
.copyright { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 3px; }
.footer-identity .build-credit { margin-top: 2px; font-size: 14px; color: var(--ink); }
.footer-identity .build-credit a { min-height: 36px; font-size: 14px; }
.chapter-corner-controls { display: none; }
@media (max-width: 1000px) {
  .chapter-corner-controls { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 0 5px; }
  .chapter-corner-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a98b55; border-radius: 50%; background: #f5ead4; color: #79552f; box-shadow: inset 0 1px 0 #fffbf1; }
  .chapter-corner-controls button span { font: 400 30px/1 Georgia, serif; margin-top: -2px; }
  .chapter-corner-controls button:hover { background: #e8d6b0; }
  .chapter-corner-controls button:disabled { opacity: .3; background: transparent; }
  .chapter-count { font-size: 13px; font-weight: 600; color: #7d694b; }
  .chronicle-controls > button { min-width: 74px; padding: 6px 12px; border: 1px solid #b0a178; border-radius: 5px; background: #f6ecd9; }
  .chronicle:not(.is-enhanced) .chapter-corner-controls { display: none; }
}
@media (max-width: 540px) {
  .reference-mark.party-hand > img { width: 60px; height: 60px; }
  .reference-mark.constitution-mark { width: 65px; height: 72px; }
  .reference-mark.constitution-mark > img { max-height: 72px; }
}
