/* BirbalNews Premium Editorial — approved article styling, scoped to active single-post editorial mode */
body.bnpe-editorial-design {
  --bnpe-ink: #102c39;
  --bnpe-teal: #087478;
  --bnpe-muted: #5d7073;
  --bnpe-line: #e1e9e8;
  --bnpe-soft: #f5f8f7;
  --bnpe-serif: Georgia, "Times New Roman", serif;
  background: #fff;
}

/* Keep the real GeneratePress header/footer but make the reading space editorial. */
body.bnpe-editorial-design .site.grid-container,
body.bnpe-editorial-design #page.grid-container {
  max-width: none;
  background: #fff;
}
body.bnpe-editorial-design #content.site-content {
  display: block;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 24px;
}
body.bnpe-editorial-design #primary.content-area {
  float: none;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}
body.bnpe-editorial-design #right-sidebar,
body.bnpe-editorial-design #left-sidebar { display: none; }
body.bnpe-editorial-design #main.site-main { margin: 0; }
body.bnpe-editorial-design .inside-article {
  padding: 34px 0 48px;
  background: #fff;
  box-shadow: none;
}

/* Title and source metadata come from the existing published post. */
body.bnpe-editorial-design .inside-article > .entry-header {
  max-width: 960px;
  padding: 12px 20px 0;
  margin: 0 auto 28px;
  text-align: center;
}
body.bnpe-editorial-design .entry-header .entry-title {
  max-width: 900px;
  margin: 14px auto 14px;
  color: var(--bnpe-ink);
  font: 400 clamp(31px, 4.4vw, 52px)/1.15 var(--bnpe-serif);
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
body.bnpe-editorial-design .entry-header .entry-meta,
body.bnpe-editorial-design .entry-header .entry-meta a {
  color: var(--bnpe-muted);
  font-size: 13px;
  line-height: 1.7;
}
body.bnpe-editorial-design .entry-header .entry-meta a:hover { color: var(--bnpe-teal); }
body.bnpe-editorial-design .bnpe-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0 16px;
  color: #4f7473;
  font: 700 11px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: .075em;
}
body.bnpe-editorial-design .bnpe-kicker a { color: var(--bnpe-teal); text-decoration: none; }
body.bnpe-editorial-design .bnpe-preview-indicator {
  padding: 5px 9px;
  border: 1px dashed #9cbfbd;
  border-radius: 3px;
  color: #346763;
  background: #eaf4f2;
  letter-spacing: .04em;
}

/* Featured image never zooms or crops text embedded in source thumbnails. */
/* GeneratePress can render the featured image above or inside the article.
   Cover both its standard wrappers and remove left/right float alignment. */
body.bnpe-editorial-design.single-post .page-header-image-single,
body.bnpe-editorial-design.single-post .post-image,
body.bnpe-editorial-design.single-post .inside-article > .featured-image {
  display: block !important;
  box-sizing: border-box;
  float: none !important;
  clear: both !important;
  width: min(100%, 1050px) !important;
  max-width: 100% !important;
  margin: 16px auto 30px !important;
  padding: 0 12px !important;
  text-align: center !important;
}
body.bnpe-editorial-design.single-post .page-header-image-single a,
body.bnpe-editorial-design.single-post .post-image a,
body.bnpe-editorial-design.single-post .inside-article > .featured-image a {
  display: block;
  text-align: center;
}
body.bnpe-editorial-design.single-post .page-header-image-single img,
body.bnpe-editorial-design.single-post .post-image img,
body.bnpe-editorial-design.single-post .inside-article > .featured-image img {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 7px;
  background: #f0f5f3;
}

/* Everything under entry-content remains the original, editable Gutenberg content. */
body.bnpe-editorial-design .inside-article .entry-content {
  max-width: 770px;
  margin: 34px auto 0;
  padding: 0 12px;
  color: #354a53;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
body.bnpe-editorial-design .entry-content > p { margin-bottom: 1.3em; }

/* Editorial drop cap: applied only to the actual article's introduction.
   JS marks the first substantial paragraph and ignores the affiliate notice,
   sharing UI and other plugin components. No saved text is transformed. */
body.bnpe-editorial-design .inside-article .entry-content p.bnpe-intro-dropcap {
  display: flow-root;
}
body.bnpe-editorial-design .inside-article .entry-content p.bnpe-intro-dropcap::first-letter {
  float: left;
  font-family: var(--bnpe-serif);
  font-weight: 800;
  font-size: 3.5em;
  line-height: 0.82;
  color: var(--bnpe-ink);
  text-transform: uppercase;
  margin: 0.07em 0.11em 0 0;
}
body.bnpe-editorial-design .entry-content > h2,
body.bnpe-editorial-design .entry-content > h3,
body.bnpe-editorial-design .entry-content > h4,
body.bnpe-editorial-design .entry-content > h5,
body.bnpe-editorial-design .entry-content > h6 {
  color: var(--bnpe-ink);
  font-family: var(--bnpe-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  clear: both;
}
body.bnpe-editorial-design .entry-content > h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.24; margin: 48px 0 19px; }
body.bnpe-editorial-design .entry-content > h3 { font-size: clamp(23px, 2.5vw, 27px); line-height: 1.3; margin: 36px 0 16px; }
body.bnpe-editorial-design .entry-content > h4 { font-size: 22px; line-height: 1.35; margin: 29px 0 14px; }
body.bnpe-editorial-design .entry-content > h5,
body.bnpe-editorial-design .entry-content > h6 { font-size: 19px; line-height: 1.4; }
body.bnpe-editorial-design .entry-content a:not(.wp-block-button__link) { color: var(--bnpe-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.bnpe-editorial-design .entry-content a:hover { color: #06575b; }
body.bnpe-editorial-design .entry-content :is(ul,ol) { margin-bottom: 1.5em; }
body.bnpe-editorial-design .entry-content li { padding-left: 2px; margin-bottom: 7px; }
body.bnpe-editorial-design .entry-content blockquote,
body.bnpe-editorial-design .entry-content .wp-block-quote {
  border-left: 3px solid var(--bnpe-teal);
  margin: 30px 0;
  padding: 10px 22px;
  background: var(--bnpe-soft);
  color: #35555a;
}

/* Responsive inline media, native Gallery, Columns, Table and plugin displays. */
body.bnpe-editorial-design .entry-content img { max-width: 100%; height: auto; }
body.bnpe-editorial-design .entry-content figure.wp-block-image,
body.bnpe-editorial-design .entry-content figure.wp-block-gallery { max-width: 100%; }
body.bnpe-editorial-design .entry-content figure.wp-block-image img { border-radius: 5px; }
body.bnpe-editorial-design .entry-content figcaption { color: #6b7e7f; font-size: 13px; line-height: 1.6; }
body.bnpe-editorial-design .entry-content .wp-block-gallery,
body.bnpe-editorial-design .entry-content .wp-block-columns { gap: 18px; }
body.bnpe-editorial-design .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border: 1px solid var(--bnpe-line);
  border-radius: 7px;
}
body.bnpe-editorial-design .entry-content .wp-block-table table,
body.bnpe-editorial-design .entry-content > table { border-collapse: collapse; width: 100%; }
body.bnpe-editorial-design .entry-content .wp-block-table td,
body.bnpe-editorial-design .entry-content .wp-block-table th {
  border: 1px solid var(--bnpe-line);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
body.bnpe-editorial-design .entry-content .wp-block-table th,
body.bnpe-editorial-design .entry-content .wp-block-table tr:first-child td { background: #edf5f3; color: #173e43; }
body.bnpe-editorial-design .entry-content :is(.wp-block-buttons,.wp-block-button) { max-width: 100%; }
body.bnpe-editorial-design .entry-content .wp-block-button__link { border-radius: 6px; }
body.bnpe-editorial-design .entry-content .wp-block-details,
body.bnpe-editorial-design .entry-content details { margin-block: 15px 25px; }
/* Keep TOC/affiliate shortcodes and existing widgets in their own plugin styling. */
body.bnpe-editorial-design .entry-content :is(.ez-toc-container,.aawp,.aawp-product,.lasso-display,.lasso-container) {
  max-width: 100%;
}

/* If a content block intentionally uses "alignwide" or full-width, allow it. */
body.bnpe-editorial-design .entry-content > .alignwide {
  width: min(1020px, calc(100vw - 40px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
body.bnpe-editorial-design .entry-content > .alignfull {
  width: min(1240px, calc(100vw - 24px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Image-first Keep Exploring cards. */
body.bnpe-editorial-design .bnpe-related {
  max-width: 1060px;
  margin: 64px auto 10px;
  padding: 29px 20px 0;
  border-top: 1px solid var(--bnpe-line);
}
body.bnpe-editorial-design .bnpe-section-label {
  display: block;
  color: var(--bnpe-teal);
  font: 800 11px/1.4 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.bnpe-editorial-design .bnpe-related h2 {
  font: 400 clamp(27px, 3vw, 35px)/1.2 var(--bnpe-serif);
  color: var(--bnpe-ink);
  margin: 10px 0 22px;
}
body.bnpe-editorial-design .bnpe-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.bnpe-editorial-design .bnpe-related-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--bnpe-line);
  border-radius: 7px;
  text-decoration: none;
  color: var(--bnpe-ink);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.bnpe-editorial-design .bnpe-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #102c3920; }
body.bnpe-editorial-design .bnpe-related-photo { display: block; aspect-ratio: 1200 / 620; overflow: hidden; background: var(--bnpe-soft); }
body.bnpe-editorial-design .bnpe-related-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.bnpe-editorial-design .bnpe-image-fallback { display: grid; place-items: center; height: 100%; color: #416e71; font: 700 17px system-ui, sans-serif; }
body.bnpe-editorial-design .bnpe-related-copy { display: flex; flex-direction: column; align-items: start; gap: 9px; padding: 15px 17px 19px; }
body.bnpe-editorial-design .bnpe-related-category { color: var(--bnpe-teal); font: 800 10px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .09em; }
body.bnpe-editorial-design .bnpe-related-title { font: 500 20px/1.38 var(--bnpe-serif); color: var(--bnpe-ink); }
body.bnpe-editorial-design .bnpe-related-cta { color: var(--bnpe-teal); font: 700 12px system-ui, sans-serif; margin-top: auto; }

/* Native GeneratePress post footer remains in place. */
body.bnpe-editorial-design .inside-article > .entry-meta { max-width: 770px; margin: 20px auto; padding-inline: 12px; }

@media (max-width: 850px) {
  body.bnpe-editorial-design #content.site-content { padding: 0 14px; }
  body.bnpe-editorial-design .bnpe-related-grid { gap: 12px; }
  body.bnpe-editorial-design .bnpe-related-title { font-size: 18px; }
}
@media (max-width: 650px) {
  body.bnpe-editorial-design #content.site-content { padding: 0 10px; }
  body.bnpe-editorial-design .inside-article { padding: 20px 0 30px; }
  body.bnpe-editorial-design .inside-article > .entry-header { padding: 0 12px; margin-bottom: 16px; }
  body.bnpe-editorial-design .entry-header .entry-title { font-size: clamp(29px, 7.6vw, 36px); line-height: 1.18; }
  body.bnpe-editorial-design.single-post .page-header-image-single,
  body.bnpe-editorial-design.single-post .post-image { padding: 0 5px !important; margin-bottom: 20px !important; }
  body.bnpe-editorial-design .inside-article .entry-content { padding: 0 12px; margin-top: 26px; font-size: 17px; line-height: 1.75; }
  body.bnpe-editorial-design .inside-article .entry-content p.bnpe-intro-dropcap::first-letter {
    font-size: 3.15em;
    line-height: 0.84;
    margin-right: 0.1em;
  }
  body.bnpe-editorial-design .entry-content > h2 { font-size: 27px; margin: 34px 0 15px; }
  body.bnpe-editorial-design .entry-content > h3 { font-size: 23px; margin: 29px 0 14px; }
  body.bnpe-editorial-design .bnpe-related { margin-top: 44px; padding: 25px 12px 0; }
  body.bnpe-editorial-design .bnpe-related-grid { grid-template-columns: 1fr; gap: 17px; }
  body.bnpe-editorial-design .bnpe-related-photo { aspect-ratio: 1200 / 620; }
  body.bnpe-editorial-design .bnpe-related-title { font-size: 21px; }
  body.bnpe-editorial-design .entry-content .wp-block-table td,
  body.bnpe-editorial-design .entry-content .wp-block-table th { font-size: 14px; padding: 10px; }
  body.bnpe-editorial-design .entry-content > .alignwide,
  body.bnpe-editorial-design .entry-content > .alignfull { width: calc(100vw - 25px); }
}
@media (prefers-reduced-motion: reduce) {
  body.bnpe-editorial-design .bnpe-related-card { transition: none; }
  body.bnpe-editorial-design .bnpe-related-card:hover { transform: none; }
}
