/* Newsletter, November 1, 2026 (English).
   Desktop geometry is the 1080px PDF page scaled to the 972px column: --s is one PDF pixel.
   Phones (<=600px) reflow the story text, buttons and photo cards; the masthead, the hero
   artwork and the page-3 heading keep the PDF composition at every width. */

@font-face { font-family: "Anton"; src: url("https://newsletters.rahulgandhi.in/assets/newsletter-web/v1/shared/fonts/Anton-400-4b156b2e3b.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Hind"; src: url("https://newsletters.rahulgandhi.in/assets/newsletter-web/v1/shared/fonts/Hind-500-latin-72c51075fc.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Hind"; src: url("https://newsletters.rahulgandhi.in/assets/newsletter-web/v1/shared/fonts/Hind-600-latin-43be6829cf.woff2") format("woff2"); font-weight: 600; font-display: block; }

:root {
  --s: min(0.9px, calc(100vw / 1080));
  --blue: #0137be;
  --cream: #f8f2e4;
  --pill: #fbba3a;
  --red: #8f2317;
  --maroon: #621612;
  --ink: #020202;
  --head: #161a1a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { font-family: "Hind", sans-serif; font-weight: 500; color: var(--ink); -webkit-text-size-adjust: 100%; }
main[data-newsletter] { width: 100%; max-width: 972px; margin: 0 auto; overflow-x: clip; background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p, figure, ul { margin: 0; padding: 0; font-weight: inherit; }
h1, h2 { font-weight: 400; }
.page { position: relative; width: calc(1080 * var(--s)); max-width: 100%; margin: 0 auto; overflow: hidden; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.red { color: var(--red); }

/* Yellow pill buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--pill); color: #141414; border-radius: 999px; position: relative; z-index: 1; }
.btn .label { display: block; }
.btn .hand, .subscribe .hand { flex: none; height: auto; }
.btn:focus-visible, .subscribe:focus-visible, .feature:focus-visible, .card a:focus-visible, .social a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.actions { text-align: center; }

/* ---------- Page 1: masthead (scaled composition at every width) ---------- */
.p1-head { position: relative; height: calc(319 * var(--s)); background: #fff; overflow: hidden; }
/* Masthead-only exception (as in the 31 Jul 2026 edition): the NEWSLETTER wordmark and the
   portrait in front of it are the printed artwork, with the word as alt text; the date is text. */
.masthead { position: absolute; inset: 0; z-index: 1; line-height: 0; }
.masthead img { width: 100%; height: auto; }
.date {
  position: absolute; z-index: 3; left: calc(61 * var(--s)); top: calc(231.2 * var(--s));
  font-family: "Anton", sans-serif; font-size: max(calc(27.9 * var(--s)), 12px); line-height: 1;
  letter-spacing: calc(1.4 * var(--s)); color: #464646; white-space: nowrap;
}
.p1-hero { position: relative; }
.p1-hero img { width: 100%; height: auto; }
.p1-band { position: relative; display: flow-root; background: var(--blue); }
.p1-card { position: relative; z-index: 1; background: var(--cream); border-radius: calc(22 * var(--s)); }
.p1-bold { font-weight: 600; color: var(--ink); }
.p1-actions { position: relative; z-index: 2; }

/* ---------- Page 2: collage ---------- */
.p2-collage { position: relative; }
.p2-collage > img { width: 100%; height: auto; }
/* The collage prints its captions in the picture; they are also listed here as text
   (for screen readers on desktop, and shown under the collage on phones). */
.p2-legend { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.p2-legend ul { list-style: none; }

/* ---------- Page 3 ---------- */
.p3-hero { position: relative; }
.p3-hero img { width: 100%; height: auto; }
.p3-heading {
  position: absolute; left: 0; right: 0; top: calc(490.7 * var(--s)); text-align: center;
  font-family: "Anton", sans-serif; font-size: calc(90 * var(--s)); line-height: calc(97 * var(--s));
  letter-spacing: calc(-3.6 * var(--s)); color: var(--head); white-space: nowrap;
}
.p3-panel { background: var(--red); color: #fff; }
.col { display: flex; flex-direction: column; align-items: flex-start; }
.col-photo { width: 100%; height: auto; }
.col-head { font-family: "Anton", sans-serif; color: var(--head); }

/* ---------- Page 4 ---------- */
.p4-top { background: #080000; color: #fff; text-align: center; }
.snap-heading { font-family: "Anton", sans-serif; color: #faba3a; white-space: nowrap; }
.feature { display: block; position: relative; background: #080000; }
.feature-photo {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(36 * var(--s)));
  mask-image: linear-gradient(to bottom, transparent 0, #000 calc(36 * var(--s)));
}
.tap {
  position: absolute; left: 47.87%; top: 90.47%; width: 5.37%; height: 9.53%;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.tap img { width: 42%; height: auto; }
.rule { border: 0; border-top: 1px solid #181818; height: 0; }
.card a { display: block; }
.card-photo { width: 100%; height: auto; }
.txt { display: block; border-left: 1px solid #9e9e9e; }
.yhand { flex: none; height: auto; }
.cap { display: block; color: var(--ink); }
.bar { display: block; background: #fec64e; }
.subscribe { display: flex; align-items: center; justify-content: center; background: #fec64b; color: #1e1e1e; border-radius: 999px; }
.subscribe b { font-weight: 600; }
.social { display: flex; justify-content: center; align-items: center; background: var(--blue); }
.social a { display: block; flex: none; }
.social img { width: 100%; height: auto; }


/* ================= Desktop: the PDF geometry, scaled ================= */
@media (min-width:972px){
  .body, .p1-bold, .cap, .snap-sub { white-space: nowrap; }

  .btn { height: calc(63 * var(--s)); padding: calc(2 * var(--s)) calc(32 * var(--s)) 0 calc(34 * var(--s)); gap: calc(17 * var(--s));
         font-size: calc(25.7 * var(--s)); line-height: 1; white-space: nowrap; }
  .btn .hand { width: calc(24 * var(--s)); margin-top: calc(-3 * var(--s)); }

  /* Page 1 */
  .p1-band { padding-bottom: calc(35 * var(--s)); }
  .p1-card { margin: calc(-54 * var(--s)) calc(77 * var(--s)) 0 calc(75 * var(--s)); padding: calc(71 * var(--s)) 0 calc(103 * var(--s)); text-align: center; }
  .p1-body { font-size: calc(23.2 * var(--s)); line-height: calc(33.4 * var(--s)); }
  .p1-bold { margin-top: calc(32 * var(--s)); font-size: calc(29.6 * var(--s)); line-height: calc(33 * var(--s)); }
  .p1-actions { margin-top: calc(-31 * var(--s)); }

  /* Page 3 */
  .p3-panel { margin: calc(1 * var(--s)) calc(51 * var(--s)) 0 calc(50 * var(--s)); height: calc(340 * var(--s)); padding-top: calc(51.5 * var(--s));
              text-align: center; border-radius: calc(28 * var(--s)); }
  .p3-body { font-size: calc(23.6 * var(--s)); line-height: calc(33.3 * var(--s)); }
  .p3-panel .actions { margin-top: calc(42 * var(--s)); }
  .p3-cols { display: grid; grid-template-columns: calc(460 * var(--s)) calc(460 * var(--s)); column-gap: calc(73 * var(--s));
             margin: calc(31 * var(--s)) 0 0 calc(47 * var(--s)); padding-bottom: calc(26 * var(--s)); }
  .col-photo { border-radius: calc(22 * var(--s)); }
  .col-head { margin-top: calc(35 * var(--s)); font-size: calc(56.5 * var(--s)); line-height: calc(65 * var(--s)); letter-spacing: calc(-1.3 * var(--s)); white-space: nowrap; }
  .col-body { margin-top: calc(17.6 * var(--s)); font-size: calc(23.3 * var(--s)); line-height: calc(33.3 * var(--s)); }
  .col { height: calc(968 * var(--s)); }   /* photo top to button bottom, as printed */
  .col .actions { margin-top: auto; padding-top: calc(11 * var(--s)); }
  .col .btn { width: calc(407 * var(--s)); padding-left: 0; padding-right: 0; }

  /* Page 4: everything placed on the 2600px PDF page */
  .p4 { height: calc(2600 * var(--s)); }
  .p4 > * { position: absolute; left: 0; width: 100%; margin: 0; }
  .p4-top { top: 0; height: calc(278 * var(--s)); padding-top: calc(92 * var(--s)); }
  .snap-heading { font-size: calc(92 * var(--s)); line-height: calc(92 * var(--s)); letter-spacing: calc(-1.9 * var(--s)); }
  .snap-sub { margin-top: calc(20.6 * var(--s)); font-size: calc(23.3 * var(--s)); line-height: calc(33 * var(--s)); }
  .feature { top: calc(278 * var(--s)); }
  .rule { top: calc(1004 * var(--s)); left: calc(66 * var(--s)); width: calc(941 * var(--s)); }
  .gallery { top: 0; height: 0; }
  .card { position: absolute; }
  .c1 { left: calc(64 * var(--s)); top: calc(1028 * var(--s)); width: calc(451 * var(--s)); }
  .c2 { left: calc(566 * var(--s)); top: calc(1028 * var(--s)); width: calc(456 * var(--s)); }
  .c3 { left: calc(65 * var(--s)); top: calc(1493 * var(--s)); width: calc(452 * var(--s)); }
  .c4 { left: calc(566 * var(--s)); top: calc(1493 * var(--s)); width: calc(457 * var(--s)); }
  .c5 { left: calc(66 * var(--s)); top: calc(1948 * var(--s)); width: calc(451 * var(--s)); }
  .c6 { left: calc(572 * var(--s)); top: calc(1948 * var(--s)); width: calc(456 * var(--s)); }
  /* The yellow bars sit at fixed places on the PDF page (the same in both languages), so each
     caption block has the printed height and its bar is pinned to the bottom. */
  .txt { position: relative; margin-top: calc(30 * var(--s)); padding: 0 0 0 calc(20 * var(--s)); }
  .c1 .txt, .c2 .txt { height: calc(181 * var(--s)); }
  .c3 .txt { height: calc(166 * var(--s)); }
  .c4 .txt, .c6 .txt { height: calc(150 * var(--s)); }
  .c5 .txt { height: calc(171 * var(--s)); }
  .c1 .txt { margin-left: calc(3 * var(--s)); }
  .c3 .txt { margin-left: calc(2 * var(--s)); }
  .c5 .txt { margin-left: calc(1 * var(--s)); }
  .c2 .txt, .c4 .txt, .c6 .txt { margin-left: calc(-1 * var(--s)); }
  .yhand { width: calc(24 * var(--s)); margin-top: calc(-1 * var(--s)); }
  .cap { margin-top: calc(7.5 * var(--s)); font-size: calc(23.7 * var(--s)); line-height: calc(33.3 * var(--s)); }
  .bar { position: absolute; bottom: calc(3 * var(--s)); left: calc(18 * var(--s)); width: calc(115 * var(--s)); height: calc(8 * var(--s)); }
  .c2 .bar, .c4 .bar, .c6 .bar { left: calc(20 * var(--s)); }
  .subscribe { top: calc(2421 * var(--s)); left: calc(214 * var(--s)); width: calc(653 * var(--s)); height: calc(59 * var(--s));
               gap: calc(12 * var(--s)); padding-top: calc(4 * var(--s)); font-size: calc(29 * var(--s)); line-height: 1;
               letter-spacing: calc(-0.6 * var(--s)); white-space: nowrap; }
  .subscribe .hand { width: calc(27 * var(--s)); margin-top: calc(-5 * var(--s)); }
  .social { top: calc(2509 * var(--s)); height: calc(91 * var(--s)); gap: calc(16 * var(--s)); padding-left: calc(22 * var(--s)); }
  .social a { width: calc(53 * var(--s)); }
}


/* ================= Phones ================= */
@media (max-width:971px){
  .lb { display: none; }
  .body { font-size: 16px; line-height: 24px; text-align: left; }

  .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn { min-height: 44px; padding: 9px 18px 7px; gap: 10px; font-size: 17px; line-height: 22px; text-align: left; max-width: 100%; }
  .btn .hand { width: 14px; margin-top: -3px; }

  /* Page 1: the card still overlaps the photo, and the button still sits on its lower edge */
  .p1-band { padding-bottom: 28px; }
  .p1-card { margin: calc(-54 * var(--s)) 16px 0; padding: 24px 20px 40px; border-radius: 12px; }
  .p1-bold { margin-top: 16px; font-size: 18px; line-height: 26px; }
  .p1-actions { align-items: center; margin-top: -22px; }

  /* Page 2: the collage captions, readable */
  .p2-legend { position: static; width: auto; height: auto; overflow: visible; clip-path: none;
               background: var(--maroon); color: #fff; padding: 16px 20px 18px; }
  .p2-legend ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; line-height: 18px; }
  .p2-legend li { padding-left: 9px; border-left: 2px solid var(--pill); }

  /* Page 3 */
  .p3-panel { margin: 0 16px; padding: 24px 20px; border-radius: 12px; }
  .p3-panel .actions { margin-top: 18px; }
  .p3-cols { display: flex; flex-direction: column; gap: 36px; padding: 32px 20px 36px; }
  .col-photo { border-radius: 12px; }
  .col-head { margin-top: 20px; font-size: 30px; line-height: 34px; letter-spacing: -0.3px; }
  .col-body { margin-top: 12px; }
  .col .actions { margin-top: 18px; }

  /* Page 4 */
  .p4-top { padding: 28px 20px 22px; }
  .snap-heading { font-size: 44px; line-height: 48px; letter-spacing: -0.4px; white-space: normal; }
  .snap-sub { margin-top: 12px; font-size: 16px; line-height: 24px; }
  .rule { margin: 24px 20px 0; }
  .gallery { display: flex; flex-direction: column; gap: 28px; padding: 24px 20px 0; }
  .txt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; margin-top: 16px; padding: 2px 0 4px 14px; }
  .yhand { width: 15px; grid-column: 1; grid-row: 1; }
  .cap { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 24px; }
  .bar { grid-column: 2; grid-row: 2; margin-top: 14px; width: 90px; height: 5px; }
  .subscribe { margin: 32px 20px 0; padding: 11px 16px 9px; gap: 10px; font-size: 15px; line-height: 20px; letter-spacing: 0.3px; text-align: left; }
  .subscribe .hand { width: 14px; margin-top: -3px; }
  .social { margin-top: 32px; gap: 12px; padding: 16px 12px; }
  .social a { width: 40px; }
}

/* Web edition: below 972px the phone layout is shown in one centred column. */
@media (max-width:971px){main{max-width:600px;margin-inline:auto;container-type:inline-size}main *{--s:min(0.9px, calc(100cqw / 1080));}}
