/* ========================================
STRATEGIC AI LEADER
CATEGORY PAGES
KADENCE ARCHIVE HEADER + GRID POLISH
Single source of truth
======================================== */


/* ========================================
1. CATEGORY HERO
======================================== */

.category .entry-hero-container-inner {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  padding: 56px 0 52px !important;
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
}

.category .hero-section-overlay {
  display: none;
}

.category .entry-header.post-archive-title {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.category .entry-header.post-archive-title::before {
  content: "Operator Systems";
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f6fd6;
}

.category .page-title.archive-title,
.category .page-title {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.category .archive-description {
  max-width: 680px;
  margin: 0 auto;
  opacity: 1;
}

.category .archive-description p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #475569;
}


/* ========================================
2. CATEGORY GRID LAYOUT
======================================== */

.category .content-area .post {
  margin-bottom: 32px;
}

.category .content-area article,
.category article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category .content-area article:hover,
.category article:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category .post-thumbnail,
.category .entry-content-wrap .post-thumbnail,
.category .content-area .post-thumbnail {
  margin: 0;
}

.category .post-thumbnail img,
.category .content-area .post-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category .entry-content-wrap,
.category .content-area .entry-content-wrap {
  padding: 18px;
}

.category h2.entry-title,
.category .entry-title {
  font-size: 22px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.category h2.entry-title a,
.category .entry-title a {
  color: #0f172a;
  text-decoration: none;
}

.category h2.entry-title a:hover,
.category .entry-title a:hover {
  color: #1554a8;
}


/* ========================================
3. CATEGORY META + EXCERPT
======================================== */

.category .entry-meta,
.category .posted-on,
.category .byline {
  color: #64748b;
}

.category .entry-summary,
.category .entry-content,
.category .archive-entry-summary {
  color: #475569;
}

.category .entry-summary p:last-child,
.category .entry-content p:last-child {
  margin-bottom: 0;
}

.category .more-link,
.category .read-more,
.category .entry-footer a {
  color: #1f6fd6;
  font-weight: 700;
  text-decoration: none;
}

.category .more-link:hover,
.category .read-more:hover,
.category .entry-footer a:hover {
  color: #1554a8;
}


/* ========================================
4. CATEGORY PAGINATION
======================================== */

.category nav.navigation.pagination,
.category .pagination {
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}


/* ========================================
5. MOBILE
======================================== */

@media (max-width: 767px) {
  .category .entry-hero-container-inner {
    padding: 34px 0 30px !important;
    margin-bottom: 28px;
  }

  .category .entry-header.post-archive-title {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .category .page-title.archive-title,
  .category .page-title {
    font-size: 30px;
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .category .archive-description {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .category .archive-description p {
    font-size: 14px;
    line-height: 1.65;
  }

  .category .entry-content-wrap,
  .category .content-area .entry-content-wrap {
    padding: 14px;
  }

  .category h2.entry-title,
  .category .entry-title {
    font-size: 20px;
    line-height: 1.25;
  }

  .category nav.navigation.pagination,
  .category .pagination {
    margin-top: 36px;
  }
}

/* ========================================
STRATEGIC AI LEADER
SINGLE POST PAGE
READABILITY + LAYOUT POLISH
======================================== */

/* PAGE BACKGROUND */
.single-post {
  background: #f5f7fb;
}

/* MAIN ARTICLE WRAP */
.single-post .content-area,
.single-post .site-main,
.single-post article.post,
.single-post .post {
  background: transparent;
}

/* HERO / TITLE AREA */
.single-post .entry-hero-container-inner {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  padding: 44px 0 38px !important;
  border-bottom: 1px solid #e2e8f0;
}

.single-post .hero-section-overlay {
  display: none;
}

.single-post .entry-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.single-post .entry-title,
.single-post .page-title {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .entry-taxonomies {
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ARTICLE CARD */
.single-post .entry-content-wrap {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

/* FEATURED IMAGE */
.single-post .post-thumbnail,
.single-post .entry-content-wrap .post-thumbnail {
  margin: 0 0 28px;
}

.single-post .post-thumbnail img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

/* BODY COPY */
.single-post .entry-content {
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

.single-post .entry-content p {
  margin: 0 0 1.35em;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 1.35em 1.3em;
  padding: 0;
}

.single-post .entry-content li {
  margin-bottom: 0.65em;
}

.single-post .entry-content a {
  color: #1f6fd6;
  text-decoration: none;
}

.single-post .entry-content a:hover {
  color: #1554a8;
  text-decoration: underline;
}

/* HEADINGS */
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.single-post .entry-content h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.single-post .entry-content h3 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
}

.single-post .entry-content h4 {
  margin: 1.6em 0 0.55em;
  font-size: 20px;
  line-height: 1.24;
}

/* IMAGES + FIGURES */
.single-post .entry-content figure {
  margin: 28px 0;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-post .entry-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

/* BLOCKQUOTE */
.single-post .entry-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid #1f6fd6;
  background: #f8fbff;
  border-radius: 10px;
  color: #334155;
}

/* TABLES */
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.single-post .entry-content th,
.single-post .entry-content td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
}

.single-post .entry-content th {
  background: #f8fafc;
  color: #0f172a;
}

/* NEWSLETTER / INLINE FORMS INSIDE POSTS */
.single-post .entry-content .wp-block-group,
.single-post .entry-content .kit-form,
.single-post .entry-content .ck_form,
.single-post .entry-content .formkit-form {
  border-radius: 14px;
}

/* SIMILAR POSTS / RELATED POSTS */
.single-post .yarpp-related,
.single-post .related-posts,
.single-post .kt-related-posts-wrap,
.single-post .entry-related {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0;
}

.single-post .kt-related-posts-wrap h3,
.single-post .entry-related h2,
.single-post .related-posts h3 {
  color: #0f172a;
}

/* COMMENTS OFF */
.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond,
.single-post .wp-block-post-comments,
.single-post .wp-block-post-comments-form {
  display: none !important;
}

/* POST NAV */
.single-post .post-navigation,
.single-post nav.post-navigation {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid #e2e8f0;
}

/* MOBILE */
@media (max-width: 767px) {
  .single-post .entry-hero-container-inner {
    padding: 28px 0 24px !important;
  }

  .single-post .entry-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .single-post .entry-title,
  .single-post .page-title {
    font-size: 30px;
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .single-post .entry-meta,
  .single-post .posted-on,
  .single-post .byline,
  .single-post .entry-taxonomies {
    font-size: 12px;
  }

  .single-post .entry-content-wrap {
    margin-top: 18px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .single-post .entry-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .single-post .entry-content h2 {
    font-size: 28px;
    line-height: 1.14;
    margin: 1.8em 0 0.65em;
  }

  .single-post .entry-content h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .single-post .entry-content h4 {
    font-size: 18px;
  }

  .single-post .post-thumbnail,
  .single-post .entry-content-wrap .post-thumbnail,
  .single-post .entry-content figure {
    margin: 20px 0;
  }
}

/* ========================================
STRATEGIC AI LEADER
SINGLE POST PAGE
MOBILE READING POLISH PATCH
Add at bottom of style.css
======================================== */


/* ========================================
1. DESKTOP AND GLOBAL READING POLISH
======================================== */

.single-post {
  background: #f5f7fb;
}

.single-post .entry-content-wrap {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 34px 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.single-post .entry-content {
  color: #334155;
  font-size: 18px;
  line-height: 1.82;
}

.single-post .entry-content p {
  margin: 0 0 1.2em;
}

.single-post .entry-content h2 {
  margin: 2em 0 0.65em;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.single-post .entry-content h3 {
  margin: 1.6em 0 0.55em;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.single-post .entry-content h4 {
  margin: 1.35em 0 0.45em;
  font-size: 20px;
  line-height: 1.22;
  color: #0f172a;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 1.2em 1.2em;
}

.single-post .entry-content li {
  margin-bottom: 0.5em;
}

.single-post .entry-content figure {
  margin: 24px 0;
}

.single-post .entry-content img,
.single-post .post-thumbnail img {
  border-radius: 12px;
}

.single-post .entry-content figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

.single-post .entry-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f8fbff;
  border-left: 4px solid #1f6fd6;
  border-radius: 10px;
  color: #334155;
}

.single-post .entry-content a {
  color: #1f6fd6;
  text-decoration: none;
}

.single-post .entry-content a:hover {
  color: #1554a8;
  text-decoration: underline;
}


/* ========================================
2. HERO TIGHTENING
======================================== */

.single-post .entry-hero-container-inner {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  padding: 34px 0 28px !important;
  border-bottom: 1px solid #e2e8f0;
}

.single-post .hero-section-overlay {
  display: none;
}

.single-post .entry-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.single-post .entry-title,
.single-post .page-title {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .entry-taxonomies {
  color: #64748b;
  font-size: 14px;
  justify-content: center;
  text-align: center;
}


/* ========================================
3. COMMENTS OFF
======================================== */

.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond,
.single-post .wp-block-post-comments,
.single-post .wp-block-post-comments-form {
  display: none !important;
}


/* ========================================
4. RELATED POSTS DE-EMPHASIS
======================================== */

.single-post .kt-related-posts-wrap,
.single-post .entry-related,
.single-post .related-posts,
.single-post .yarpp-related {
  max-width: 900px;
  margin: 24px auto 0;
}

.single-post .kt-related-posts-wrap h3,
.single-post .entry-related h2,
.single-post .related-posts h3,
.single-post .yarpp-related h3 {
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 14px;
}

.single-post .kt-related-posts-wrap article,
.single-post .entry-related article,
.single-post .related-posts article,
.single-post .yarpp-related article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}


/* ========================================
5. MOBILE READING OPTIMIZATION
======================================== */

@media (max-width: 767px) {
  .single-post .site-container,
  .single-post .content-area,
  .single-post .site-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-post .entry-hero-container-inner {
    padding: 18px 0 16px !important;
  }

  .single-post .entry-header,
  .single-post .hero-container.site-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .single-post .entry-title,
  .single-post .page-title {
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 29px;
    line-height: 1.06;
  }

  .single-post .entry-meta,
  .single-post .posted-on,
  .single-post .byline,
  .single-post .entry-taxonomies {
    font-size: 12px;
    line-height: 1.45;
  }

  .single-post .entry-content-wrap {
    width: calc(100% - 8px) !important;
    max-width: none !important;
    margin: 10px auto 0 !important;
    padding: 16px 14px !important;
    border-radius: 12px !important;
  }

  .single-post .post-thumbnail,
  .single-post .entry-content figure {
    margin: 16px 0 !important;
  }

  .single-post .post-thumbnail img,
  .single-post .entry-content img {
    border-radius: 10px !important;
  }

  .single-post .entry-content {
    font-size: 16.5px !important;
    line-height: 1.72 !important;
  }

  .single-post .entry-content p {
    margin: 0 0 1.05em !important;
  }

  .single-post .entry-content h2 {
    margin: 1.45em 0 0.5em !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
  }

  .single-post .entry-content h3 {
    margin: 1.25em 0 0.45em !important;
    font-size: 21px !important;
    line-height: 1.16 !important;
  }

  .single-post .entry-content h4 {
    margin: 1.1em 0 0.4em !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .single-post .entry-content ul,
  .single-post .entry-content ol {
    margin: 0 0 1.05em 1.05em !important;
  }

  .single-post .entry-content li {
    margin-bottom: 0.42em !important;
  }

  .single-post .entry-content blockquote {
    margin: 18px 0 !important;
    padding: 14px 14px !important;
    border-radius: 8px !important;
  }

  .single-post .entry-content figcaption {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .single-post .kt-related-posts-wrap,
  .single-post .entry-related,
  .single-post .related-posts,
  .single-post .yarpp-related {
    width: calc(100% - 8px) !important;
    max-width: none !important;
    margin: 18px auto 0 !important;
  }

  .single-post .kt-related-posts-wrap h3,
  .single-post .entry-related h2,
  .single-post .related-posts h3,
  .single-post .yarpp-related h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .single-post .post-navigation,
  .single-post nav.post-navigation {
    width: calc(100% - 8px) !important;
    max-width: none !important;
    margin: 18px auto 0 !important;
  }
}


/* ========================================
6. VERY SMALL PHONES
======================================== */

@media (max-width: 420px) {
  .single-post .entry-content-wrap {
    width: calc(100% - 4px) !important;
    padding: 15px 12px !important;
  }

  .single-post .entry-title,
  .single-post .page-title {
    font-size: 27px !important;
  }

  .single-post .entry-content {
    font-size: 16px !important;
    line-height: 1.68 !important;
  }
}

/* ========================================
STRATEGIC AI LEADER
SINGLE POST PAGE
FINAL MOBILE POLISH
Add at bottom of style.css
======================================== */


/* ========================================
1. HERO TIGHTENING
======================================== */

.single-post .entry-hero-container-inner {
  padding: 14px 0 14px !important;
}

.single-post .entry-header,
.single-post .hero-container.site-container {
  max-width: 860px;
  margin: 0 auto;
}

.single-post .entry-title,
.single-post .page-title {
  margin-bottom: 8px !important;
}

.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .entry-taxonomies {
  margin-top: 0 !important;
}


/* ========================================
2. ARTICLE CARD + BODY RHYTHM
======================================== */

.single-post .entry-content-wrap {
  max-width: 920px;
  margin: 10px auto 0 !important;
  padding: 18px 16px !important;
}

.single-post .entry-content {
  font-size: 16.75px !important;
  line-height: 1.72 !important;
}

.single-post .entry-content p {
  margin: 0 0 0.95em !important;
}

.single-post .entry-content h2 {
  margin: 1.35em 0 0.42em !important;
  font-size: 24px !important;
  line-height: 1.12 !important;
}

.single-post .entry-content h3 {
  margin: 1.15em 0 0.36em !important;
  font-size: 20px !important;
  line-height: 1.16 !important;
}

.single-post .entry-content h4 {
  margin: 1em 0 0.32em !important;
  font-size: 17px !important;
  line-height: 1.18 !important;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 0.95em 1.05em !important;
}

.single-post .entry-content li {
  margin-bottom: 0.38em !important;
}


/* ========================================
3. IMAGE INTEGRATION
======================================== */

.single-post .post-thumbnail,
.single-post .entry-content figure {
  margin: 14px 0 !important;
}

.single-post .post-thumbnail img,
.single-post .entry-content img {
  border-radius: 8px !important;
}

.single-post .entry-content figcaption {
  margin-top: 6px !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}


/* ========================================
4. INLINE NEWSLETTER INSIDE ARTICLE
======================================== */

.single-post .entry-content .wp-block-group,
.single-post .entry-content .ck_form,
.single-post .entry-content .formkit-form,
.single-post .entry-content .kit-form {
  border-radius: 12px !important;
}

.single-post .entry-content .ck_form,
.single-post .entry-content .formkit-form,
.single-post .entry-content .kit-form {
  padding: 14px 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
}


/* ========================================
5. RELATED POSTS
======================================== */

.single-post .kt-related-posts-wrap,
.single-post .entry-related,
.single-post .related-posts,
.single-post .yarpp-related {
  width: calc(100% - 8px) !important;
  max-width: none !important;
  margin: 16px auto 0 !important;
  padding-top: 10px !important;
}

.single-post .kt-related-posts-wrap h3,
.single-post .entry-related h2,
.single-post .related-posts h3,
.single-post .yarpp-related h3 {
  font-size: 17px !important;
  line-height: 1.18 !important;
  margin-bottom: 10px !important;
}

.single-post .kt-related-posts-wrap article,
.single-post .entry-related article,
.single-post .related-posts article,
.single-post .yarpp-related article {
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}


/* ========================================
6. COMMENTS OFF
======================================== */

.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond,
.single-post .wp-block-post-comments,
.single-post .wp-block-post-comments-form {
  display: none !important;
}


/* ========================================
7. MOBILE ONLY
======================================== */

@media (max-width: 767px) {
  .single-post .site-container,
  .single-post .content-area,
  .single-post .site-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-post .entry-header,
  .single-post .hero-container.site-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .single-post .entry-hero-container-inner {
    padding: 10px 0 10px !important;
  }

  .single-post .entry-title,
  .single-post .page-title {
    font-size: 27px !important;
    line-height: 1.06 !important;
  }

  .single-post .entry-content-wrap {
    width: calc(100% - 4px) !important;
    max-width: none !important;
    margin: 8px auto 0 !important;
    padding: 14px 12px !important;
    border-radius: 10px !important;
  }

  .single-post .entry-content {
    font-size: 16px !important;
    line-height: 1.68 !important;
  }

  .single-post .entry-content h2 {
    font-size: 23px !important;
    margin: 1.25em 0 0.38em !important;
  }

  .single-post .entry-content h3 {
    font-size: 19px !important;
    margin: 1.1em 0 0.32em !important;
  }

  .single-post .entry-content h4 {
    font-size: 16.5px !important;
    margin: 0.95em 0 0.28em !important;
  }

  .single-post .entry-content p {
    margin: 0 0 0.9em !important;
  }

  .single-post .post-thumbnail,
  .single-post .entry-content figure {
    margin: 12px 0 !important;
  }
}