/*
Theme Name: PumpingChops Astra Child
Theme URI: https://pumpingchops.com
Description: Child theme for Astra on PumpingChops
Author: PumpingChops
Template: astra
Version: 0.1.0
Text Domain: astra-child
*/

/* Post layout shell for migrated articles (replaces missing Elementor post header) */
.single-post .entry-content > .pc-post-shell__header {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.single-post .pc-post-shell__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

.single-post .pc-post-shell__categories a {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0d4f8c;
  text-decoration: none;
}

.single-post .pc-post-shell__categories a:hover,
.single-post .pc-post-shell__categories a:focus {
  background: #d8eaff;
  color: #083b68;
}

.single-post .pc-post-shell__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.1;
  text-wrap: balance;
}

.single-post .pc-post-shell__subtitle {
  margin: 0.8rem 0 0;
  color: #3d4b5c;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 70ch;
}

.single-post .pc-post-shell__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #e7edf3;
}

.single-post .pc-post-shell__meta-item {
  margin: 0;
}

.single-post .pc-post-shell__meta-item dt {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66788a;
}

.single-post .pc-post-shell__meta-item dd {
  margin: 0.2rem 0 0;
  color: #18222d;
  font-weight: 500;
}

.single-post .pc-post-shell__meta-item dd a {
  color: #0d4f8c;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.single-post .pc-post-shell__meta-item dd a:hover,
.single-post .pc-post-shell__meta-item dd a:focus {
  color: #083b68;
}

.single-post .pc-post-shell__trust {
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #fcfdff;
}

.single-post .pc-post-shell__trust-copy {
  margin: 0;
  color: #334455;
  font-size: 0.95rem;
  line-height: 1.45;
}

.single-post .pc-post-shell__trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.single-post .pc-post-shell__trust-links a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid #dfe9f3;
  border-radius: 999px;
  background: #ffffff;
  color: #0d4f8c;
  text-decoration: none;
  font-size: 0.85rem;
}

.single-post .pc-post-shell__trust-links a:hover,
.single-post .pc-post-shell__trust-links a:focus {
  background: #f4f8fc;
  border-color: #cfe0f1;
  color: #083b68;
}

.single-post .pc-post-shell__related {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e3ebf3;
}

.single-post .pc-post-shell__related-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66788a;
}

.single-post .pc-post-shell__related-links {
  margin: 0;
  padding-left: 1rem;
}

.single-post .pc-post-shell__related-links li + li {
  margin-top: 0.25rem;
}

.single-post .pc-post-shell__related-links a {
  color: #0d4f8c;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.single-post .pc-post-shell__related-links a:hover,
.single-post .pc-post-shell__related-links a:focus {
  color: #083b68;
}

.single-post .entry-content > .pc-post-shell__related--footer {
  margin: 1.5rem 0 0;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #fbfdff;
}

.single-post .entry-content > .pc-post-shell__related--footer .pc-post-shell__related-label {
  color: #415568;
}

.single-post .entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.single-post .entry-content table tbody,
.single-post .entry-content table thead,
.single-post .entry-content table tfoot {
  display: table;
  width: 100%;
}

.single-post .entry-content .pc-amz-widget-fallback {
  min-width: 140px;
  font-weight: 600;
  color: #924a00;
  background: #fff7e8;
  border-color: #f1d3a7;
}

@media (max-width: 768px) {
  .single-post .entry-content > .pc-post-shell__header {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .single-post .pc-post-shell__meta {
    grid-template-columns: 1fr;
  }
}

.single-post .entry-content .pc-pros-cons-table {
  width: 100%;
  margin: 1rem 0 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  overflow: hidden;
  display: table;
}

.single-post .entry-content .pc-pros-cons-table thead th {
  background: #f4f8fc;
  color: #16212b;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.single-post .entry-content .pc-pros-cons-table th,
.single-post .entry-content .pc-pros-cons-table td {
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid #edf1f6;
  width: 50%;
}

.single-post .entry-content .pc-pros-cons-table td + td,
.single-post .entry-content .pc-pros-cons-table th + th {
  border-left: 1px solid #edf1f6;
}

.single-post .entry-content .pc-pros-cons-table tbody tr:last-child td {
  border-bottom: 0;
}

.single-post .entry-content .pc-pros-cons-table td:empty::before {
  content: "-";
  color: #9aa8b6;
}

@media (max-width: 768px) {
  .single-post .entry-content .pc-pros-cons-table,
  .single-post .entry-content .pc-pros-cons-table thead,
  .single-post .entry-content .pc-pros-cons-table tbody,
  .single-post .entry-content .pc-pros-cons-table tr,
  .single-post .entry-content .pc-pros-cons-table th,
  .single-post .entry-content .pc-pros-cons-table td {
    display: block;
    width: 100%;
  }

  .single-post .entry-content .pc-pros-cons-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .single-post .entry-content .pc-pros-cons-table tr {
    border-bottom: 1px solid #edf1f6;
  }

  .single-post .entry-content .pc-pros-cons-table tr:last-child {
    border-bottom: 0;
  }

  .single-post .entry-content .pc-pros-cons-table td {
    border: 0;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .single-post .entry-content .pc-pros-cons-table td:first-child::before,
  .single-post .entry-content .pc-pros-cons-table td:last-child::before {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #66788a;
  }

  .single-post .entry-content .pc-pros-cons-table td:first-child::before {
    content: "Pros";
  }

.single-post .entry-content .pc-pros-cons-table td:last-child::before {
    content: "Cons";
  }
}

/* UI cleanup iteration: declutter header nav and improve article shell */

body.ast-separate-container {
  background: #f3f5f8;
}

.ast-separate-container #primary {
  margin-top: 1.25rem;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  border-radius: 14px;
  border: 1px solid #e7edf4;
  box-shadow: 0 10px 30px rgba(16, 34, 53, 0.05);
}

.site-header .main-header-bar {
  border-bottom: 1px solid #e6ebf2;
}

.site-header .ast-container {
  max-width: 1240px;
}

.site-header .main-header-menu > .menu-item > .menu-link {
  padding-inline: 0.7rem;
  font-weight: 500;
}

/* Hide trust/admin utility pages from the crowded primary header menu (use footer utility bar instead) */
#primary-menu #menu-item-29374,
#primary-menu #menu-item-29527,
#primary-menu #menu-item-29528,
#primary-menu #menu-item-29529,
#primary-menu #menu-item-29532,
#primary-menu #menu-item-29533,
#primary-menu #menu-item-29535 {
  display: none;
}

.single-post .entry-content {
  color: #202a35;
  line-height: 1.72;
}

.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol {
  max-width: 72ch;
}

.single-post .entry-content > h2 {
  margin-top: 1.8rem;
  padding-top: 0.2rem;
}

.single-post .entry-content > .pc-post-shell__header {
  margin: 0 0 1.35rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.single-post .pc-post-shell__title {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.single-post .pc-post-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.single-post .pc-post-shell__meta-item {
  min-width: 140px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
}

.single-post .pc-post-shell__trust {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
}

.single-post .pc-post-shell__trust-links {
  gap: 0.35rem;
}

.single-post .pc-post-shell__trust-links a {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.pc-site-utility-links {
  margin-top: 1.25rem;
  border-top: 1px solid #e5ebf2;
  background: #f8fafc;
}

.pc-site-utility-links__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
}

.pc-site-utility-links__inner a {
  color: #41576e;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
}

.pc-site-utility-links__inner a:hover,
.pc-site-utility-links__inner a:focus {
  background: #eaf1f8;
  color: #173a5a;
}

@media (max-width: 900px) {
  .pc-site-utility-links__inner {
    justify-content: flex-start;
  }

  .single-post .pc-post-shell__meta-item {
    min-width: calc(50% - 0.4rem);
  }
}
