/* ── PDF / Print button ──────────────────────────────────────── */

.pdf-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  background: #fff;
  border: 1.5px solid var(--brand, #E8441A);
  color: var(--brand, #E8441A);
  border-radius: 6px;
  font-family: var(--font-h, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.pdf-btn:hover,
.pdf-btn:focus-visible {
  background: var(--brand, #E8441A);
  color: #fff;
  outline: none;
}

.pdf-btn__icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}


/* ── Print / PDF styles (@media print) ──────────────────────── */

@media print {

  @page {
    size: A4;
    margin: 2cm 2cm 2.5cm 2cm;
  }

  /* Hide everything except the article */
  .site-header,
  .site-nav,
  .site-footer,
  .breadcrumbs,
  .post-toc,
  .post-rail,
  .post-hero__illustration,
  .post-related,
  .post-footer,
  .post-meta,
  .thefixcar-author-pill,
  .author-pill,
  .pdf-btn-wrap,
  .cookie-banner,
  #cookie-banner,
  .tfc-consent,
  .tfc-consent__fab,
  .tfc-consent__banner,
  .tfc-consent__panel,
  #wpadminbar,
  .wp-block-button,
  nav,
  .skip-link {
    display: none !important;
  }

  /* Print branding header above article title */
  .post-hero::before {
    content: 'TheFixCar.com — Automotive Reference';
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5pt;
    font-weight: 700;
    color: #E8441A;
    margin-bottom: 0.5cm;
    padding-bottom: 0.25cm;
    border-bottom: 1pt solid #E8441A;
  }

  /* Source URL in article footer */
  .post-content[data-url]::after {
    content: 'Source: ' attr(data-url);
    display: block;
    margin-top: 1cm;
    padding-top: 0.3cm;
    border-top: 0.5pt solid #ccc;
    font-size: 8.5pt;
    color: #888;
    font-family: 'Instrument Sans', sans-serif;
  }

  /* Reset layout */
  body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11pt;
    color: #111;
    line-height: 1.55;
    background: #fff !important;
  }

  .container,
  .post-layout,
  .post-layout.has-rail,
  .post-layout.no-rail {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .post-main,
  .post-main--hero,
  .post-main--article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* Typography */
  h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 20pt;
    color: #111;
    margin-bottom: 0.3cm;
    page-break-after: avoid;
  }

  h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 14pt;
    color: #111;
    margin-top: 0.8cm;
    margin-bottom: 0.2cm;
    page-break-after: avoid;
  }

  h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 12pt;
    color: #111;
    page-break-after: avoid;
  }

  p { margin-bottom: 0.35cm; }

  /* Lists */
  ul, ol {
    margin-left: 1.2cm;
    page-break-inside: avoid;
  }

  li { margin-bottom: 0.15cm; }

  /* Checklist items — preserve bold label */
  li strong:first-child {
    font-weight: 700;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
    margin-bottom: 0.5cm;
    font-size: 9.5pt;
  }

  th, td {
    border: 0.5pt solid #bbb;
    padding: 4pt 6pt;
    text-align: left;
    vertical-align: top;
  }

  th {
    background: #f4f4f4 !important;
    font-weight: 700;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tr:nth-child(even) td {
    background: #fafafa !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Links — show URL inline for sources section */
  .post-sources a::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #888;
    word-break: break-all;
  }

  a { color: #111; text-decoration: none; }

  /* SVG illustration — hide it */
  .thefixcar-svg,
  .article-svg,
  figure.svg-wrap,
  img[src*=".svg"] {
    display: none !important;
  }

  /* Avoid orphaned headings */
  h1, h2, h3, h4 { page-break-after: avoid; }
  p, li { page-break-inside: avoid; }
}
