/* =====================================================
   TOOLSYTE – BLOG POST (HARD SCOPED, ISOLATED)
   This file controls ONLY /blog/* single post pages
   No dependency on global or blog index CSS
   ===================================================== */


/* =====================================================
   FORCE RESET FOR BLOG POST ONLY
   ===================================================== */

/* Neutralize global layout interference */
main.blog-post-layout {
  all: unset;
  box-sizing: border-box;
  width: 100%;
}

/* Re-apply only what we need */
main.blog-post-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 36px;

  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
}


/* =====================================================
   ARTICLE (LEFT COLUMN)
   ===================================================== */

main.blog-post-layout > article.blog-article {
  grid-column: 1;
  min-width: 0;
  font-size: 17px;
  line-height: 1.8;
}

/* Meta */
main.blog-post-layout .blog-article .meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* Headings */
main.blog-post-layout .blog-article h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 14px;
}

main.blog-post-layout .blog-article h2 {
  font-size: 24px;
  margin: 36px 0 12px;
}

main.blog-post-layout .blog-article h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

/* Text */
main.blog-post-layout .blog-article p {
  margin-bottom: 1.2em;
  text-align: justify;
}

/* Lists */
main.blog-post-layout .blog-article ul,
main.blog-post-layout .blog-article ol {
  padding-left: 22px;
  margin-bottom: 1.4em;
}

main.blog-post-layout .blog-article li {
  margin-bottom: 6px;
}

/* Images */
main.blog-post-layout .blog-article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 22px auto;
  border-radius: 6px;
}

main.blog-post-layout .blog-article figure {
  margin: 24px 0;
}


/* =====================================================
   SIDEBAR (RIGHT COLUMN)
   ===================================================== */

main.blog-post-layout > aside.blog-sidebar {
  grid-column: 2;
  min-width: 0;

  position: sticky;
  top: 96px;

  display: block;
}


/* =====================================================
   FEATURED TOOL CARD (LOCAL OVERRIDES ONLY)
   ===================================================== */

main.blog-post-layout .featured-tool-card {
  margin-bottom: 24px;
}


/* =====================================================
   LINKS
   ===================================================== */

main.blog-post-layout .blog-article a {
  color: #2563eb;
  text-decoration: none;
}

main.blog-post-layout .blog-article a:hover {
  text-decoration: underline;
}


/* =====================================================
   MOBILE & TABLET
   ===================================================== */

@media (max-width: 900px) {

  main.blog-post-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  main.blog-post-layout > article.blog-article {
    grid-column: 1;
    font-size: 16px;
  }

  main.blog-post-layout > aside.blog-sidebar {
    grid-column: 1;
    position: static;
    margin-top: 8px;
  }

  main.blog-post-layout .blog-article p {
    text-align: left;
  }

  main.blog-post-layout .blog-article h1 {
    font-size: 26px;
  }

  main.blog-post-layout .blog-article h2 {
    font-size: 21px;
  }
}
