/* NITIK IDEAS newsletter styles (loaded only on /newsletter/ and issue pages).
   Refined editorial: ivory/paper surfaces, ink text, hairline dividers,
   Newsreader serif for display type, muted gold rules, burnt orange only
   as a small accent. No clip-art, no garish decoration. */

.reader,
.news-grid {
  --gold: #a07c2c;
}

/* --- Hub grid --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px 35px;
}
.news-card-image {
  display: block;
  overflow: hidden;
}
.news-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding-top: 22px;
}
.news-card-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
}
.news-card-body h2 a {
  color: inherit;
  text-decoration: none;
}
.news-card-body h2 a:hover {
  text-decoration: underline;
}
.news-card-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}

/* --- Reader top bar --- */
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 34px 4.7% 0;
}

/* --- Reader --- */
.reader {
  max-width: 1020px;
  margin: 0 auto;
  padding: 55px 4.7% 95px;
}
.reader-page {
  padding: 55px 0;
}
.reader-page + .reader-page {
  border-top: 1px solid var(--line);
}
.reader-folio {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  text-align: right;
}

/* Cover (page 1) */
.reader-page-cover {
  padding-top: 10px;
}
.reader-masthead {
  text-align: center;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--gold);
}
.reader-masthead-name {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  letter-spacing: 0.04em;
  display: block;
}
.reader-masthead-by {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.reader-cover-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.reader-cover-image img {
  width: 100%;
  height: auto;
  display: block;
}
.reader-cover-topic {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 36px 0 18px;
  max-width: 820px;
}
.reader-cover-standfirst {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 34px;
}

/* Content pages (2–5) */
.reader-page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 10px;
}
.reader-page-head .eyebrow {
  margin-bottom: 0;
}
.reader-page-head .reader-folio {
  flex-shrink: 0;
}
.reader-photo {
  margin: 28px 0 8px;
}
.reader-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.reader-page-content .article-body {
  margin-top: 30px;
}

/* Back cover (page 6) */
.reader-page-back {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 80px 8%;
  margin-top: 55px;
}
.reader-page-back .eyebrow {
  color: #b9bcb2;
}
.reader-page-back h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 10px 0 24px;
}
.reader-page-back .reader-closing {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  color: #d9dcd2;
  max-width: 560px;
  margin: 0 auto 38px;
}
.reader-back-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  font-size: 15px;
  margin-bottom: 40px;
}
.reader-back-contact a {
  border-bottom: 1px solid #777;
  padding-bottom: 4px;
}
.reader-page-back .button.light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.reader-page-back .button.light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.reader-page-back .reader-folio {
  color: #a4a79d;
  text-align: center;
  margin-top: 44px;
}

/* Reader navigation — hidden until the reader script runs (progressive
   enhancement: without JS all pages show stacked and the nav stays hidden). */
.reader-nav {
  display: none;
}
.reader-js .reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 20px;
  z-index: 5;
}
.reader-js .reader-page {
  display: none;
  border-top: 0;
  padding-top: 10px;
}
.reader-js .reader-page.active {
  display: block;
}
.reader-js .reader-page-back.active {
  display: block;
  margin-top: 0;
}
.reader-nav button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.reader-nav button:hover:not(:disabled) {
  border-color: var(--ink);
}
.reader-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
.reader-status {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--muted);
  white-space: nowrap;
}
.reader-dots {
  display: flex;
  gap: 8px;
}
.reader-nav .reader-dot {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.reader-nav .reader-dot.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* --- Print (also used for the downloadable PDFs) --- */
@page {
  size: A4;
  margin: 0;
}
@media print {
  header,
  footer,
  .skip-link,
  .reading-progress,
  .promo-bar,
  .motion-toggle,
  .niti-fab,
  .niti-panel,
  .reader-top,
  .reader-nav,
  .newsletter-section,
  .new-cta,
  main > section {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .reader {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .reader-js .reader-page,
  .reader-page {
    display: block !important;
    border-top: 0;
    padding: 14mm 16mm;
    /* Pagination: each reader page starts a fresh sheet and never splits.
       NOTE (2026-11-22): min-height near a full sheet (even 280mm) makes
       Chrome spill a blank fragment onto the next sheet — content pages
       stay height-free; cover/back-cover are capped at 250mm. Verified:
       all 10 issues print as exactly 6 pages. */
    min-height: 0;
    break-after: auto;
    break-before: page;
    break-inside: avoid;
  }
  .reader-page:first-of-type {
    break-before: auto;
  }
  .reader-js .reader-page-cover,
  .reader-page-cover,
  .reader-js .reader-page-back,
  .reader-page-back {
    min-height: 250mm;
  }
  .reader-page-back {
    margin-top: 0;
  }
  /* A "Download PDF" button inside the downloaded PDF is pointless. */
  .reader-page-back .button {
    display: none !important;
  }
  /* Tighter print typography so each page fits one A4 sheet. */
  .reader-masthead {
    padding: 0 0 14px;
  }
  .reader-masthead-name {
    font-size: 42pt;
  }
  .reader-masthead-by {
    margin-top: 8px;
  }
  .reader-cover-meta {
    padding: 10px 0;
    margin-bottom: 16px;
  }
  .reader-cover-image img {
    max-height: 128mm;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .reader-cover-topic {
    font-size: 28pt;
    margin: 16px 0 10px;
  }
  .reader-cover-standfirst {
    font-size: 12pt;
    margin-bottom: 16px;
  }
  .reader-page-head {
    margin-bottom: 6px;
  }
  .reader-photo {
    margin: 12px 0 4px;
  }
  .reader-photo img {
    max-height: 70mm;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .reader-page-content .article-body {
    margin-top: 12px;
  }
  .article-body h2 {
    font-size: 17pt;
    margin: 16px 0 10px;
  }
  .article-body h3 {
    font-size: 13pt;
    margin: 14px 0 6px;
  }
  .article-body p {
    font-size: 11.5pt;
    line-height: 1.6;
    margin: 0 0 10px;
  }
  .article-body ul,
  .article-body ol {
    margin: 0 0 12px;
  }
  .article-body li {
    font-size: 11.5pt;
    line-height: 1.55;
    margin-bottom: 5px;
  }
  .article-body hr {
    margin: 18px 0;
  }
  .article-body table {
    font-size: 9.5pt;
  }
  .article-body th,
  .article-body td {
    padding: 3px 6px;
  }
  .table-wrap {
    margin: 14px 0;
  }
  .reader-page-back {
    padding: 60px 10%;
  }
  .reader-page-back h2 {
    font-size: 40pt;
  }
  .reader-page-back .reader-closing {
    font-size: 16pt;
    margin-bottom: 26px;
  }
  .reader-back-contact {
    margin-bottom: 28px;
  }
  .reader-page-back .reader-folio {
    margin-top: 28px;
  }
}

@media (max-width: 820px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .reader {
    padding: 40px 6% 70px;
  }
  .reader-page {
    padding: 40px 0;
  }
  .reader-cover-meta {
    flex-direction: column;
    gap: 6px;
  }
  .reader-nav .reader-dots {
    display: none;
  }
  .reader-page-back {
    padding: 60px 8%;
  }
}
