/* 37. AVT Page Elements. Kit colours written in the kit's own values (plugin 36 needs no copy of this file):
   tyre #1d1d1a, chalk #e3e6e7, cone #de6731, dark cone #b4532a, stone #e2dad1, sand #f7f2e8, linen #f3eee8,
   card #fff, rule #e7e5e4, grey #565653. Green stays on action buttons only. Fonts are the site's own. */

/* 19A step badge */
.avt-pe-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avt-pe-nb { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 5px; margin-right: 10px; vertical-align: middle;
  background: #1d1d1a; color: #e3e6e7; font-size: 15px; font-weight: 700; line-height: 1; border-radius: 4px; box-shadow: inset 0 -3px 0 #de6731; box-sizing: border-box; }

/* 28B heads up */
.avt-pe-hu { margin: 0 0 1.5em; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(29, 29, 26, .1); }
.avt-pe-hu__hd { display: flex; gap: 8px; align-items: center; margin: 0 !important; padding: 8px 14px; background: #1d1d1a; color: #e3e6e7; font-weight: 700; font-size: 15px; line-height: 1.3; }
.avt-pe-hu__icon { width: 18px; height: 18px; flex: none; }
.avt-pe-hu__bd { padding: 12px 16px; }
.avt-pe-hu__bd p { margin: 0 0 .6em; }
.avt-pe-hu__bd p:last-child { margin-bottom: 0; }

/* Related articles (65): two tiles, each with a topic icon (owner's pick C, 18 Nov). Classes are all in the served HTML,
   so WP Rocket's used CSS keeps them. */
.avt-pe-rel--tiles { margin: 1.6em 0; }
.avt-pe-rel__lbl { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #1d1d1a; }
.avt-pe-rel__lbl::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: #de6731; }
.avt-pe-rel__grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avt-pe-rel__grid li { margin: 0 !important; padding: 0 !important; }
.avt-pe-rel__grid li::before { content: none !important; }
.avt-pe-rel__tile { display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 12px 14px 12px 12px; background: #fff; border: 1px solid #e2dad1; border-radius: 10px; box-shadow: 0 4px 8px rgba(29, 29, 26, .06); color: #1d1d1a !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.avt-pe-rel__tile:hover { border-color: #1d1d1a; box-shadow: 0 6px 14px rgba(29, 29, 26, .12); transform: translateY(-1px); }
.avt-pe-rel__tile:focus-visible { outline: 3px solid #de6731; outline-offset: 2px; }
.avt-pe-rel__ic { flex: none; width: 46px; height: 46px; border-radius: 8px; background: #1d1d1a; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -3px 0 #de6731; }
.avt-pe-rel__ic svg { width: 26px; height: 26px; }
.avt-pe-rel__txt { flex: 1; min-width: 0; }
.avt-pe-rel__kick { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #b4532a; }
.avt-pe-rel__t { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.avt-pe-rel__go { flex: none; display: flex; color: #b4532a; }
.avt-pe-rel__go svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .avt-pe-rel__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .avt-pe-rel__tile { transition: none; } .avt-pe-rel__tile:hover { transform: none; } }

/* 37A timeline */
.avt-pe-tl { list-style: none; margin: 0 0 1.5em !important; padding: 0 !important; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); position: relative; font-size: 14.5px; line-height: 1.4; }
.avt-pe-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: #1d1d1a; border-radius: 2px; }
.avt-pe-tl li { position: relative; margin: 0 !important; padding: 30px 10px 0 0 !important; }
.avt-pe-tl li::before { content: none !important; }
.avt-pe-tl__dot { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #de6731; border: 3px solid #fff; box-sizing: border-box; }
.avt-pe-tl b { display: block; }
.avt-pe-tl__what { display: block; }
.avt-pe-tl__d { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 13px; background: #e2dad1; color: #1d1d1a; padding: 2px 6px; border-radius: 3px; }
@media (max-width: 640px) {
  .avt-pe-tl { grid-template-columns: 1fr; gap: 12px; }
  .avt-pe-tl::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .avt-pe-tl li { padding: 0 0 0 30px !important; }
  .avt-pe-tl__dot { top: 1px; }
}

/* L3 complaints */
.avt-pe-cmp { margin: 0 0 1.5em; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(29, 29, 26, .1); padding: 14px 16px; }
.avt-pe-cmp__t { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; color: #1d1d1a; }
.avt-pe-cmp__rows { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.avt-pe-cmp__rows li { display: grid; grid-template-columns: minmax(150px, 36%) 1fr 34px; gap: 10px; align-items: center; margin: 0 !important; padding: 0 !important; font-size: 14px; line-height: 1.3; }
.avt-pe-cmp__rows li::before { content: none !important; }
.avt-pe-cmp__bar { height: 14px; background: #f3eee8; border-radius: 2px; overflow: hidden; }
.avt-pe-cmp__bar span { display: block; height: 100%; background: #c6c6c6; }
.avt-pe-cmp__top { font-weight: 700; }
.avt-pe-cmp__top .avt-pe-cmp__bar span { background: #b4532a; }
.avt-pe-cmp__n { text-align: right; font-variant-numeric: tabular-nums; }
.avt-pe-cmp__src { margin: 10px 0 0 !important; padding-top: 6px; border-top: 1px solid #e7e5e4; font-size: 12.5px; color: #565653; }
@media (max-width: 640px) { .avt-pe-cmp__rows li { grid-template-columns: 1fr 34px; } .avt-pe-cmp__bar { grid-column: 1 / -1; grid-row: 2; } }

/* K7 numbered map */
.avt-pe-pins { margin: 0 0 1.5em; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(29, 29, 26, .1); padding: 14px 16px; }
.avt-pe-pins__t { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; color: #1d1d1a; }
.avt-pe-pins__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.avt-pe-pins__mapbox { border: 1px solid #e7e5e4; border-radius: 6px; padding: 8px; }
.avt-pe-pins__map { display: block; width: 100%; height: auto; }
.avt-pe-pins__map text { font-family: inherit; }
.avt-pe-pins__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.avt-pe-pins__list li { display: flex; gap: 8px; margin: 0 !important; padding: 0 !important; }
.avt-pe-pins__list li::before { content: none !important; }
.avt-pe-pin { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1d1d1a; color: #e3e6e7; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: inset 0 -3px 0 #de6731; }
.avt-pe-pins__more { margin: 12px 0 0 !important; font-size: 14px; }
@media (max-width: 640px) { .avt-pe-pins__body { grid-template-columns: 1fr; } }

/* L5 deadline and L11 recall: a tyre header over a white card */
.avt-pe-dl, .avt-pe-rc { margin: 0 0 1.5em; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(29, 29, 26, .1); }
.avt-pe-dl__hd, .avt-pe-rc__hd { margin: 0 !important; padding: 9px 14px 9px 17px; background: #1d1d1a; color: #e3e6e7; font-weight: 700; font-size: 15px; box-shadow: inset 5px 0 0 #de6731; }
.avt-pe-dl__bd, .avt-pe-rc__bd { padding: 12px 14px 14px; }
.avt-pe-dl__lbl, .avt-pe-rc__lbl { display: block; font-size: 12.5px; font-weight: 700; color: #565653; margin-bottom: 4px; }
.avt-pe-dl__in, .avt-pe-rc__in { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #d4d0c8; border-radius: 6px; background: #fff; color: #000; max-width: 100%; }
.avt-pe-dl__out { margin: 10px 0 0 !important; padding: 10px 12px; background: #f7f2e8; border-radius: 6px; font-size: 15px; }
.avt-pe-rc__row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; }
.avt-pe-rc__row .avt-pe-rc__lbl { flex-basis: 100%; margin: 0; }
.avt-pe-rc__go { font: inherit; font-size: 14.5px; font-weight: 700; padding: 8px 14px; border-radius: 6px; border: 1.5px solid #1d1d1a; background: #fff; color: #1d1d1a; cursor: pointer; }
.avt-pe-rc__go:hover, .avt-pe-rc__go:focus-visible { background: #f7f2e8; }
.avt-pe-rc__go[disabled] { opacity: .6; cursor: progress; }
.avt-pe-rc__out { margin-top: 10px; padding: 10px 12px 10px 14px; background: #fcf0ea; border-left: 5px solid #de6731; border-radius: 6px; font-size: 14.5px; }
.avt-pe-rc__out p { margin: 0 0 .5em !important; }
.avt-pe-rc__out p:last-child { margin-bottom: 0 !important; }
.avt-pe-rc__out ul { margin: 6px 0 0 !important; padding-left: 18px !important; }
.avt-pe-rc__out li { margin: 0 0 8px !important; }
.avt-pe-rc__out li span { display: block; color: #565653; font-size: 13.5px; }
.avt-pe-rc__note { margin: 10px 0 0 !important; font-size: 13px; color: #565653; }

/* Comparison-form links in running text, dark orange (owner, 18 Nov 2026; plugin 37 1.0.3): text links to My Garage
   (class avt-pe-cmplink, added in parts/auto.php, 1.0.4), inside a paragraph or list item; buttons (the bottom-line
   Compare offers button too), cards and the menu keep their look. Affiliate links in running text were orange too
   (1.0.2) and are back to their own look since 1.0.10 (owner, 19 Nov: revert).
   #b4532a is about 5:1 on white (the brighter cone #de6731 would fail for text this size). */
:is(.entry-content, .avt-ah-bl) :is(p, li) a.avt-pe-cmplink {
  color: #b4532a !important;
  text-decoration-color: #b4532a !important;
}
:is(.entry-content, .avt-ah-bl) :is(p, li) a.avt-pe-cmplink:hover,
:is(.entry-content, .avt-ah-bl) :is(p, li) a.avt-pe-cmplink:focus-visible {
  color: #8f4120 !important;
  text-decoration-color: #8f4120 !important;
}

/* Article headings and body text (owner, 30 Nov 2026: "My pick" on the H2 options page,
   https://claude.ai/artifact/VKvTFkzEQEieSvcCLUC7Ht, on every article, no control; plugin 37 1.0.11). Posts only.
   - The H2 drops the dark bar: a plain heading in the site's own font, 24px bold (21px on phones), with the 56 x 3 px
     cone underline the article title already carries (plugin 36 kit, .avt-ah-rule). Only an H2 that is a direct child
     of the content; an H2 inside a component keeps its own look.
   - What follows the H2 (a card, a table, a picture) gets its top corners back, since nothing sits on top of it now.
   - Paragraph and list text 16px (was 15px from plugin 35's body.avt-ah rule); tables stay 14.4px.
   The charts' charcoal is in plugin 26's avt-charts.js (articleCharcoal). Way back: delete this block. */
body.single-post .entry-content > h2.wp-block-heading:not(.widget-title):not(.entry-title):not(.no-background) {
  background: none;
  color: #1d1d1a;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 40px 0 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow: visible;
}
body.single-post .entry-content > h2.wp-block-heading:not(.widget-title):not(.entry-title):not(.no-background)::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: #de6731;
  border-radius: 2px;
}
body.single-post .entry-content > h2.wp-block-heading:not(.no-background) + :not(h3),
body.single-post .entry-content > h2.wp-block-heading:not(.no-background) + .wp-block-image img,
body.single-post .entry-content > h2.wp-block-heading:not(.no-background) + figure.wp-block-video video {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
@media (max-width: 768px) {
  body.single-post .entry-content > h2.wp-block-heading:not(.widget-title):not(.entry-title):not(.no-background) {
    font-size: 21px;
    margin-top: 32px;
  }
}
html body.single-post .entry-content :is(p, li) {
  font-size: 16px;
}
/* Chart titles and subtitles are <p>s, so the 16px rule above reaches them (plugin 35's 15px did too). The title sits
   one step above the text (17px), the grey subtitle one step below (14px); axis labels and tables are unchanged
   (owner, 30 Nov 2026; plugin 37 1.0.12). */
html body.single-post .entry-content .avt-chart-fig p.avt-chart-title {
  font-size: 17px;
}
html body.single-post .entry-content .avt-chart-fig p.avt-chart-sub {
  font-size: 14px;
}
/* The versus offer bars (both variants: .sca-vs-resw on ~54 versus and review posts, #sca-vs-res) follow the charts:
   the leading offer charcoal #57534e (cone edge kept, from the post's own rule), the others #d6d3d1, the offer-range
   gradients likewise. The colours come from a <style> block in each post (written in kit colours by plugin 36), so
   this overrides by specificity; post_content is untouched (owner, 30 Nov 2026; plugin 37 1.0.13). */
html body.single-post .entry-content :is(.sca-vs-resw, #sca-vs-res) .sca-vs-fill {
  background: #d6d3d1;
}
html body.single-post .entry-content :is(.sca-vs-resw, #sca-vs-res) .sca-vs-fill.sca-vs-lead {
  background: #57534e;
}
html body.single-post .entry-content :is(.sca-vs-resw, #sca-vs-res) .sca-vs-fill.sca-vs-range {
  background: linear-gradient(90deg, #d6d3d1 var(--lo), rgba(214, 211, 209, .4) var(--lo));
}
html body.single-post .entry-content :is(.sca-vs-resw, #sca-vs-res) .sca-vs-fill.sca-vs-lead.sca-vs-range {
  background: linear-gradient(90deg, #57534e var(--lo), rgba(87, 83, 78, .4) var(--lo));
}
