/* =====================================================
   THE BLACK & WHITE POST
   Homepage-only design refinement
   Preserves the vintage newspaper identity
   ===================================================== */

body#top .page-wrap {
  width: min(1440px, 94%);
  margin-inline: auto;
}

body#top .masthead {
  padding-top: 30px;
  padding-bottom: 26px;
}

body#top .main-nav {
  z-index: 20;
}

body#top .lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(235px, .72fr);
  gap: 25px;
  align-items: stretch;
  margin-top: 30px;
  margin-bottom: 48px;
}

body#top .hero-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #ded5c3;
  border: 1px solid rgba(55, 43, 29, .25);
}

body#top .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.04);
}

body#top .photo-label {
  letter-spacing: .13em;
}

body#top .lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
  border-top: 3px solid #29251f;
  border-bottom: 1px solid rgba(55, 43, 29, .3);
  background: rgba(255, 252, 244, .38);
}

body#top .lead-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 39px);
  line-height: 1.16;
  letter-spacing: -.035em;
  margin: 13px 0;
}

body#top .lead-copy p {
  font-size: 15px;
  line-height: 1.8;
  color: #51483d;
}

body#top .right-rail {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body#top .widget {
  border: 1px solid rgba(55, 43, 29, .25);
  box-shadow: 0 5px 16px rgba(49, 38, 24, .055);
}

body#top .widget.flash {
  flex: 1;
  border-top: 4px solid #29251f;
}

body#top .widget.flash h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(55, 43, 29, .2);
}

body#top .widget.flash li {
  padding: 11px 0;
  line-height: 1.5;
  border-bottom: 1px dotted rgba(55, 43, 29, .25);
}

body#top .mini-widget,
body#top .editorial-widget {
  transition: transform .2s ease, box-shadow .2s ease;
}

body#top .mini-widget:hover,
body#top .editorial-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49, 38, 24, .1);
}

body#top .published-news,
body#top .business-news {
  margin-top: 48px;
  margin-bottom: 48px;
}

body#top .section-heading {
  margin-bottom: 23px;
  padding-bottom: 13px;
  border-bottom: 2px solid #39332a;
}

body#top .section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.2;
  margin-top: 7px;
}

body#top .story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body#top .story-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid rgba(55, 43, 29, .22);
  border-top: 3px solid #554a3b;
  background: rgba(255, 252, 244, .42);
  box-shadow: 0 4px 14px rgba(49, 38, 24, .045);
}

body#top .story-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
  margin: 12px 0;
}

body#top .story-card h3 a {
  color: #28241f;
  text-decoration: none;
}

body#top .story-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body#top .story-card p {
  color: #5b5145;
  font-size: 14px;
  line-height: 1.75;
}

body#top .story-meta {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(55, 43, 29, .16);
}

body#top .business-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 3px;
  border-bottom: 1px solid rgba(55, 43, 29, .18);
}

body#top .business-list li a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.5;
}

body#top .category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 48px;
}

body#top .category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(55, 43, 29, .24);
  background: rgba(255, 252, 244, .4);
}

body#top .category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  filter: grayscale(25%);
  transition: filter .25s ease, transform .3s ease;
}

body#top .category-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.025);
}

body#top .category-card h3,
body#top .category-card p,
body#top .category-card a {
  margin-left: 14px;
  margin-right: 14px;
}

body#top .category-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
  margin-top: 15px;
}

body#top .category-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #5b5145;
}

body#top .category-card a {
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 700;
}

body#top .feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0;
  border: 1px solid rgba(55, 43, 29, .25);
  background: rgba(55, 43, 29, .22);
}

body#top .feature-strip > a {
  min-width: 0;
  padding: 20px 15px;
  background: rgba(255, 252, 244, .75);
  text-decoration: none;
  transition: background .2s ease;
}

body#top .feature-strip > a:hover {
  background: #fffaf0;
}

body#top .feature-strip b,
body#top .feature-strip small {
  display: block;
}

body#top .feature-strip small {
  margin-top: 7px;
  line-height: 1.5;
}

body#top .bottom-note {
  margin: 48px 0;
  padding: 30px;
  border-top: 2px solid #39332a;
  border-bottom: 2px solid #39332a;
  background: rgba(255, 252, 244, .35);
}

body#top footer {
  margin-top: 45px;
}

/* Tablet */
@media (max-width: 1050px) {
  body#top .lead-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body#top .right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  body#top .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body#top .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 650px) {
  body#top .page-wrap {
    width: 92%;
  }

  body#top .lead-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 20px;
    margin-bottom: 35px;
  }

  body#top .hero-photo,
  body#top .hero-photo img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body#top .lead-copy {
    padding: 23px 19px;
  }

  body#top .right-rail {
    display: flex;
    flex-direction: column;
  }

  body#top .story-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body#top .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body#top .category-card h3 {
    font-size: 16px;
  }

  body#top .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#top .business-list li {
    display: block;
  }

  body#top .business-list li span {
    display: block;
    margin-top: 5px;
  }

  body#top .bottom-note {
    padding: 22px 18px;
  }
}

@media (max-width: 380px) {
  body#top .category-grid,
  body#top .feature-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#top *,
  body#top *::before,
  body#top *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Lead photograph: prevent stretching alongside long headlines */
@media (min-width: 651px) {
  body#top .lead-grid {
    align-items: start;
  }

  body#top .hero-photo {
    height: 390px;
    min-height: 0;
    align-self: start;
  }

  body#top .hero-photo img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* Final desktop lead-story proportions */
@media (min-width: 651px) {
  body#top .hero-photo {
    height: 340px;
  }

  body#top .lead-copy h2 {
    font-size: clamp(27px, 2.2vw, 35px);
  }
}

/* =====================================================
   LATEST EDITION — EDITORIAL STORY PRESENTATION
   ===================================================== */

body#top .published-news {
  position: relative;
  padding: 30px 0 35px;
  border-top: 3px double #39332a;
  border-bottom: 1px solid rgba(55, 43, 29, .3);
}

body#top .published-news .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(55, 43, 29, .3);
}

body#top .published-news .section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 36px);
  letter-spacing: -.025em;
}

body#top .published-news .story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(55, 43, 29, .2);
}

body#top .published-news .story-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 24px 25px;
  border: 0;
  border-right: 1px solid rgba(55, 43, 29, .22);
  border-bottom: 1px solid rgba(55, 43, 29, .22);
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

body#top .published-news .story-card:nth-child(3n) {
  border-right: 0;
}

body#top .published-news .story-category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(55, 43, 29, .3);
  color: #65513a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body#top .published-news .story-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.38;
  margin: 0 0 12px;
}

body#top .published-news .story-card h3 a {
  color: #29251f;
  text-decoration: none;
}

body#top .published-news .story-card h3 a:hover {
  color: #765b36;
}

body#top .published-news .story-card p {
  margin: 0 0 17px;
  color: #5b5145;
  font-size: 13px;
  line-height: 1.75;
}

body#top .published-news .story-meta {
  margin-top: auto;
  padding-top: 12px;
  color: #766b5d;
  font-size: 11px;
  letter-spacing: .04em;
}

body#top .published-news .story-read {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
}

body#top .published-news .story-read:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tablet */
@media (max-width: 900px) {
  body#top .published-news .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#top .published-news .story-card:nth-child(3n) {
    border-right: 1px solid rgba(55, 43, 29, .22);
  }

  body#top .published-news .story-card:nth-child(2n) {
    border-right: 0;
  }
}

/* Mobile */
@media (max-width: 650px) {
  body#top .published-news {
    padding: 23px 0;
  }

  body#top .published-news .section-heading {
    display: block;
  }

  body#top .published-news .story-grid {
    grid-template-columns: 1fr;
  }

  body#top .published-news .story-card,
  body#top .published-news .story-card:nth-child(3n) {
    min-height: 0;
    padding: 22px 12px;
    border-right: 0;
  }
}

/* =====================================================
   FOUR-STORY EDITION — BALANCED DESKTOP GRID
   Applies only when exactly four stories are displayed
   ===================================================== */

@media (min-width: 901px) {
  body#top .published-news .story-grid:has(> .story-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#top .published-news .story-grid:has(> .story-card:nth-child(4):last-child) .story-card {
    border-right: 1px solid rgba(55, 43, 29, .22);
  }

  body#top .published-news .story-grid:has(> .story-card:nth-child(2n):last-child) .story-card:nth-child(2n) {
    border-right: 0;
  }
}


/* Correct vertical dividers in the four-story desktop layout */
@media (min-width: 901px) {
  body#top .published-news .story-grid:has(> .story-card:nth-child(4):last-child) .story-card:nth-child(2n) {
    border-right: 0;
  }
}

/* =====================================================
   BUSINESS & ECONOMY — FINANCIAL EDITORIAL DESIGN
   ===================================================== */

body#top .business-news {
  padding: 30px 28px 32px;
  border-top: 4px double #39332a;
  border-bottom: 1px solid rgba(55, 43, 29, .28);
  background: rgba(255, 252, 244, .30);
}

body#top .business-news .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #39332a;
}

body#top .business-news .section-heading .eyebrow {
  color: #765b36;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

body#top .business-news .section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 36px);
  letter-spacing: -.025em;
}

body#top .business-news .business-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(55, 43, 29, .18);
}

body#top .business-news .business-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 21px 24px;
  border-bottom: 1px solid rgba(55, 43, 29, .20);
  border-right: 1px solid rgba(55, 43, 29, .20);
}

body#top .business-news .business-list li:nth-child(2n) {
  border-right: 0;
}

body#top .business-news .business-list li a {
  color: #29251f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

body#top .business-news .business-list li a:hover {
  color: #765b36;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body#top .business-news .business-list li span {
  color: #766b5d;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body#top .business-news > .story-read {
  display: inline-block;
  margin-top: 22px;
  color: #55432c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

body#top .business-news > .story-read:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 650px) {
  body#top .business-news {
    padding: 23px 15px 25px;
  }

  body#top .business-news .business-list {
    grid-template-columns: 1fr;
  }

  body#top .business-news .business-list li {
    min-height: 0;
    padding: 17px 5px;
    border-right: 0;
  }

  body#top .business-news .business-list li a {
    font-size: 18px;
  }
}


/* BUSINESS SECTION — EYEBROW REFINEMENT */
body#top .business-news .section-heading .eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: #765b36;
}


/* =====================================================
   INDIA IN FOCUS — NATIONAL EDITORIAL SECTION
   ===================================================== */

body#top .india-news {
  margin: 38px 0 42px;
  padding: 30px 28px 32px;
  border-top: 4px double #39332a;
  border-bottom: 1px solid rgba(55,43,29,.28);
  background: rgba(255,252,244,.30);
}

body#top .india-news .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #39332a;
}

body#top .india-news .section-heading .eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: #765b36;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

body#top .india-news .section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 36px);
  letter-spacing: -.025em;
}

body#top .india-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(55,43,29,.18);
}

body#top .india-story {
  min-width: 0;
  padding: 21px 24px;
  border-bottom: 1px solid rgba(55,43,29,.20);
  border-right: 1px solid rgba(55,43,29,.20);
}

body#top .india-story:nth-child(2n) {
  border-right: 0;
}

body#top .india-story h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.4;
}

body#top .india-story h3 a {
  color: #29251f;
  text-decoration: none;
}

body#top .india-story h3 a:hover {
  color: #765b36;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body#top .india-story p {
  margin: 0 0 12px;
  color: #5b5145;
  font-size: 13px;
  line-height: 1.65;
}

body#top .india-story-date {
  color: #766b5d;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body#top .india-news > .story-read {
  display: inline-block;
  margin-top: 22px;
  color: #55432c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  body#top .india-news {
    padding: 23px 15px 25px;
  }

  body#top .india-story-grid {
    grid-template-columns: 1fr;
  }

  body#top .india-story {
    padding: 17px 5px;
    border-right: 0;
  }

  body#top .india-story h3 {
    font-size: 18px;
  }
}


/* INDIA IN FOCUS — FINAL VISUAL REFINEMENT */
body#top .india-news .section-heading .eyebrow {
  display: inline-block !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  color: #765b36 !important;
  font-size: 10px;
  letter-spacing: .16em;
}

body#top .india-news {
  margin-bottom: 20px;
}



/* INDIA IN FOCUS — OVERRIDE GLOBAL NEWSPAPER EYEBROW */
body#top section.india-news > .section-heading > span.eyebrow {
  display: inline-block !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-bottom: 7px !important;
  background: none !important;
  background-color: transparent !important;
  color: #765b36 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
}
