/* Only single WordPress posts */
body.single-post {
  background: #f2f3f5;
}

/* Main article wrapper */
body.single-post .site-main article.post,
body.single-post #primary article.post,
body.single-post .content-area article.post,
body.single-post .post {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  padding: 28px 36px 28px;
}

/* Limit width only on article internals, not header/footer/widgets */
body.single-post .site-main article.post > *,
body.single-post #primary article.post > *,
body.single-post .content-area article.post > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure title fits and is fully visible */
body.single-post .entry-title,
body.single-post h1.entry-title,
body.single-post .post__title {
  max-width: 980px !important;
  color: #0b1020 !important;
  font-weight: 900 !important;
  font-size: clamp(36px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
  margin-top: 10px !important;
  margin-bottom: 16px !important;
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
body.single-post .entry-title a,
body.single-post h1.entry-title a { color: #0b1020 !important; text-decoration: none !important; }

/* Headline breadcrumb/categories line */
body.single-post .post__cats,
body.single-post .entry-categories,
body.single-post .entry-breadcrumb,
body.single-post .post-categories,
body.single-post .post__category,
body.single-post .post__breadcrumbs {
  color: #2563eb;
  font-weight: 800;
}

/* Meta info, keep existing counters */
body.single-post .post__meta,
body.single-post .entry-meta,
body.single-post .post-meta,
body.single-post .single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: #3e4b5f !important;
  font-size: 18px !important;
  margin-bottom: 20px !important;
}
body.single-post .post__meta a,
body.single-post .entry-meta a,
body.single-post .post-meta a,
body.single-post .single-post-meta a { color: #1f49d9 !important; text-decoration: none !important; }

/* Featured image */
body.single-post .post-thumbnail,
body.single-post .featured-image,
body.single-post .entry-thumbnail {
  margin-bottom: 18px !important;
}
body.single-post .post-thumbnail img,
body.single-post .featured-image img,
body.single-post .entry-thumbnail img,
body.single-post img.wp-post-image {
  width: 100% !important;
  display: block;
  height: auto;
  border-radius: 12px;
}

/* Article text darker, nearly black */
body.single-post .entry-content,
body.single-post .entry-content p,
body.single-post .entry-content li,
body.single-post .post__content,
body.single-post .post__content p,
body.single-post .post__content li {
  color: #171a22 !important;
  font-size: 21px !important;
  line-height: 1.55 !important;
}
body.single-post .entry-content > p:first-of-type,
body.single-post .post__content > p:first-of-type {
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  color: #11151d !important;
}
body.single-post .entry-content h2,
body.single-post .entry-content h3 { color: #11151d !important; }

/* Remove theme tag block area placeholders if any */
body.single-post .post__footer .post__tags,
body.single-post .post__tags,
body.single-post .tags-list,
body.single-post .post-tags,
body.single-post .entry-tags,
body.single-post .post__sharing,
body.single-post .post-sharing,
body.single-post .sharedaddy,
body.single-post .heateor_sss_sharing_container,
body.single-post .post-author,
body.single-post .author-box,
body.single-post .about-author,
body.single-post .entry-author,
body.single-post .single-post__tags {
  display: none !important;
}

/* Custom extra area */
body.single-post .bc-extra-area {
  max-width: 980px;
  margin: 22px auto 0;
}

/* Tags */
body.single-post .bc-tags-section {
  margin: 0 0 14px;
}
body.single-post .bc-section-label {
  color: #151b28;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
body.single-post .bc-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.single-post .bc-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid #2d5be8;
  border-radius: 8px;
  color: #2350d4;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

/* Author box */
body.single-post .bc-author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 18px;
  padding: 16px 18px;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
}
body.single-post .bc-author-logo { flex: 0 0 74px; }
body.single-post .bc-author-logo img {
  width: 74px;
  height: 74px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
body.single-post .bc-author-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}
body.single-post .bc-author-text {
  margin: 0;
  color: #313c4d;
  font-size: 16px;
  line-height: 1.5;
}

/* Share */
body.single-post .bc-share-section { margin: 0 0 22px; }
body.single-post .bc-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.single-post .bc-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}
body.single-post .bc-share-facebook { background: linear-gradient(90deg, #2746a8, #3b60be); }
body.single-post .bc-share-x { background: linear-gradient(90deg, #0b0b0d, #000); }
body.single-post .bc-share-icon { font-size: 26px; line-height: 1; font-weight: 900; }

/* Comments title translation and design */
body.single-post #comments {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  overflow: hidden;
}
body.single-post .comment-reply-title,
body.single-post #reply-title {
  display: block;
  margin: 0 !important;
  padding: 16px 18px !important;
  background: linear-gradient(90deg, #1c49d8, #1464f3) !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}
body.single-post .comment-respond {
  padding: 18px;
}
body.single-post .comment-notes,
body.single-post .logged-in-as {
  color: #525f72;
  font-size: 16px;
}
body.single-post .comment-form label {
  display: block;
  color: #232c3b;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
body.single-post .comment-form textarea,
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"] {
  width: 100%;
  background: #fff;
  color: #121826;
  border: 1px solid #cfd7e2;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 17px;
  box-sizing: border-box;
}
body.single-post .comment-form textarea { min-height: 160px; }
body.single-post .comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
body.single-post .comment-form-cookies-consent label {
  text-transform: none;
  font-weight: 500;
  margin: 0;
}
body.single-post .form-submit .submit,
body.single-post .comment-form .submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #2448d0, #1f4cf1);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

/* Existing comments */
body.single-post .comments-title {
  max-width: 980px;
  margin: 0 auto 10px;
  color: #111827;
}
body.single-post .comment-list {
  list-style: none;
  margin: 0;
  padding: 18px 18px 0;
}
body.single-post .comment-list .comment {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf2;
}

@media (max-width: 900px) {
  body.single-post .site-main article.post,
  body.single-post #primary article.post,
  body.single-post .content-area article.post,
  body.single-post .post { padding: 20px 16px; }

  body.single-post .entry-content,
  body.single-post .entry-content p,
  body.single-post .entry-content li,
  body.single-post .post__content,
  body.single-post .post__content p,
  body.single-post .post__content li {
    font-size: 18px !important;
  }

  body.single-post .bc-share-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   V3: Artikkelin sisäiset väliotsikot aina mustiksi
   Kohdistuu vain yksittäisiin WordPress-uutisiin.
   ========================================================== */
body.single-post .post__content h2.wp-block-heading,
body.single-post .entry-content h2.wp-block-heading,
body.single-post .post__content h2,
body.single-post .entry-content h2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #000000 !important;
  background: transparent !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: clamp(25px, 2.5vw, 36px) !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  margin: 28px 0 16px !important;
  padding: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

/* Poistaa artikkelisisällön tyhjät spacer-lohkot, kuten 100 px tyhjän alueen. */
body.single-post .post__content > .wp-block-spacer,
body.single-post .entry-content > .wp-block-spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
