/* BestAutoProducts Article Style Pro 1.0.0 */
.bap-article,
.bap-article * {
  box-sizing: border-box;
}

.bap-article {
  --bap-navy: #071b3a;
  --bap-blue: #1677ff;
  --bap-blue-dark: #0d5fd4;
  --bap-orange: #ff7a00;
  --bap-green: #16865b;
  --bap-red: #b42318;
  --bap-amber: #b45309;
  --bap-text: #334155;
  --bap-muted: #64748b;
  --bap-line: #dbe4ef;
  --bap-bg: #f5f8fc;
  width: 100%;
  margin: 0 auto;
  color: var(--bap-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.75;
}

.bap-article p {
  margin: 0 0 1.25em;
}

.bap-article a {
  color: var(--bap-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bap-article h2,
.bap-article .bap-section-title {
  margin: 2em 0 .65em;
  padding: 0;
  border: 0;
  background: none;
  color: #0f172a;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.bap-article h3,
.bap-article .bap-subtitle {
  margin: 1.45em 0 .55em;
  color: var(--bap-navy);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.bap-article ul,
.bap-article ol {
  margin: .5em 0 1.35em;
  padding-left: 1.35em;
}

.bap-article li {
  margin: .45em 0;
}

.bap-quick-answer,
.bap-callout,
.bap-safety-warning,
.bap-pro-tip,
.bap-maintenance-note,
.bap-pressure-box,
.bap-final-recommendation {
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: 13px;
}

.bap-quick-answer {
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--bap-blue);
  background: #eff6ff;
}

.bap-callout {
  border: 1px solid var(--bap-line);
  background: #f8fafc;
}

.bap-callout__title,
.bap-quick-answer__title,
.bap-final-recommendation__title {
  display: block;
  margin: 0 0 8px;
  color: var(--bap-navy);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.bap-quick-answer p:last-child,
.bap-callout p:last-child,
.bap-safety-warning p:last-child,
.bap-pro-tip p:last-child,
.bap-maintenance-note p:last-child,
.bap-pressure-box p:last-child,
.bap-final-recommendation p:last-child {
  margin-bottom: 0;
}

.bap-safety-warning {
  border: 1px solid #fecaca;
  border-left: 5px solid var(--bap-red);
  background: #fef2f2;
}

.bap-safety-warning .bap-callout__title {
  color: var(--bap-red);
}

.bap-pro-tip {
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--bap-green);
  background: #f0fdf4;
}

.bap-pro-tip .bap-callout__title {
  color: #166534;
}

.bap-maintenance-note {
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--bap-orange);
  background: #fff7ed;
}

.bap-maintenance-note .bap-callout__title {
  color: #9a3412;
}

.bap-pressure-box {
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
}

.bap-pressure-reading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.bap-pressure-value {
  color: var(--bap-blue-dark);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.bap-fact-grid,
.bap-spec-grid,
.bap-troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}

.bap-fact-card,
.bap-spec-card,
.bap-trouble-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--bap-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(7, 27, 58, .055);
}

.bap-fact-card strong,
.bap-spec-card strong,
.bap-trouble-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bap-navy);
  font-weight: 800;
}

.bap-fact-card p,
.bap-spec-card p,
.bap-trouble-card p {
  margin: 0;
  color: #526174;
  font-size: .92em;
}

.bap-tool-checklist {
  margin: 24px 0;
  padding: 21px 23px;
  border: 1px solid var(--bap-line);
  border-radius: 13px;
  background: var(--bap-bg);
}

.bap-tool-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bap-tool-checklist li {
  position: relative;
  margin: 0;
  padding-left: 27px;
}

.bap-tool-checklist li::before {
  position: absolute;
  top: .15em;
  left: 0;
  width: 19px;
  height: 19px;
  border: 2px solid var(--bap-blue);
  border-radius: 5px;
  content: "";
}

.bap-steps {
  margin: 27px 0;
  padding: 0;
  counter-reset: bap-step;
}

.bap-step {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 20px 20px 70px;
  border: 1px solid var(--bap-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(7, 27, 58, .045);
  counter-increment: bap-step;
}

.bap-step::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: var(--bap-blue);
  color: #fff;
  content: counter(bap-step);
  font-weight: 850;
}

.bap-step h3 {
  margin: 0 0 6px;
  font-size: 1.07rem;
}

.bap-step p:last-child {
  margin-bottom: 0;
}

.bap-table-wrap {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--bap-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(7, 27, 58, .045);
}

.bap-article table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: .92em;
}

.bap-article th {
  padding: 14px 16px;
  border: 0;
  background: var(--bap-navy);
  color: #fff;
  text-align: left;
  font-weight: 800;
}

.bap-article td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--bap-line);
  color: var(--bap-text);
  vertical-align: top;
}

.bap-article tbody tr:last-child td {
  border-bottom: 0;
}

.bap-article tbody tr:nth-child(even) {
  background: #f8fafc;
}

.bap-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}

.bap-pros,
.bap-cons {
  padding: 21px;
  border-radius: 13px;
}

.bap-pros {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.bap-cons {
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.bap-pros h3,
.bap-cons h3 {
  margin-top: 0;
}

.bap-article-image {
  margin: 30px 0;
}

.bap-article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, .10);
}

.bap-image-caption {
  margin: 9px 4px 0 !important;
  color: var(--bap-muted);
  font-size: .78em;
  line-height: 1.5;
  text-align: center;
}

.bap-faq {
  margin: 26px 0;
}

.bap-faq details {
  margin: 0 0 11px;
  overflow: hidden;
  border: 1px solid var(--bap-line);
  border-radius: 12px;
  background: #fff;
}

.bap-faq summary {
  position: relative;
  padding: 17px 50px 17px 18px;
  color: var(--bap-navy);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.bap-faq summary::-webkit-details-marker {
  display: none;
}

.bap-faq summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--bap-blue);
  content: "+";
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

.bap-faq details[open] summary {
  background: #eff6ff;
}

.bap-faq details[open] summary::after {
  content: "−";
}

.bap-faq__answer {
  padding: 16px 18px 4px;
  border-top: 1px solid var(--bap-line);
}

.bap-related-guides {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--bap-line);
  border-radius: 13px;
  background: #f8fafc;
}

.bap-related-guides h2,
.bap-related-guides h3 {
  margin-top: 0;
}

.bap-final-recommendation {
  border: 2px solid #bfdbfe;
  background: #eff6ff;
}

/* GeneratePress: compact featured image and true right sidebar */
.single-post.bap-article-style-active .post-image img,
.single-post.bap-article-style-active .featured-image img,
.single-post.bap-article-style-active img.wp-post-image {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.single-post.bap-article-style-active #right-sidebar .widget {
  margin-bottom: 25px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(7, 27, 58, .06);
}

.bap-author-card {
  text-align: center;
}

.bap-author-card img {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 15px;
  object-fit: cover;
  border: 4px solid #edf4ff;
  border-radius: 50%;
}

.bap-author-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--bap-blue, #1677ff);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.bap-author-card h3 {
  margin: 0 0 10px;
  color: #071b3a;
  font-size: 23px;
}

.bap-author-card p {
  margin: 0 0 17px;
  color: #526174;
  font-size: 15px;
  line-height: 1.65;
}

.bap-author-card a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.bap-author-card a:hover {
  background: #0d5fd4;
  color: #fff;
}

@media (max-width: 768px) {
  .bap-article {
    font-size: 17px;
    line-height: 1.72;
  }

  .bap-quick-answer,
  .bap-callout,
  .bap-safety-warning,
  .bap-pro-tip,
  .bap-maintenance-note,
  .bap-pressure-box,
  .bap-final-recommendation {
    padding: 19px;
  }

  .bap-fact-grid,
  .bap-spec-grid,
  .bap-troubleshooting-grid,
  .bap-pros-cons {
    grid-template-columns: 1fr;
  }

  .bap-tool-checklist ul {
    grid-template-columns: 1fr;
  }

  .bap-step {
    padding: 63px 18px 18px;
  }

  .bap-step::before {
    top: 16px;
    left: 18px;
  }

  .bap-table-wrap {
    border: 0;
    box-shadow: none;
  }

  .bap-article table,
  .bap-article thead,
  .bap-article tbody,
  .bap-article tr,
  .bap-article th,
  .bap-article td {
    display: block;
    width: 100%;
  }

  .bap-article thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .bap-article tbody tr {
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--bap-line);
    border-radius: 11px;
    background: #fff;
  }

  .bap-article td {
    position: relative;
    padding: 12px 13px 12px 44%;
    border-bottom: 1px solid var(--bap-line);
  }

  .bap-article td::before {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 38%;
    color: var(--bap-navy);
    content: attr(data-label);
    font-weight: 800;
  }

  .bap-article-image img {
    max-height: 270px;
    border-radius: 10px;
  }

  .single-post.bap-article-style-active .post-image img,
  .single-post.bap-article-style-active .featured-image img,
  .single-post.bap-article-style-active img.wp-post-image {
    max-height: 240px;
    border-radius: 10px;
  }
}

