.ts-stories {
  --ts-ink: #122e49;
  --ts-blue: #18589a;
  --ts-muted: #455e72;
  --ts-line: #cfdae2;
  --ts-bg: #f4f7fa;
  direction: rtl;
  background: var(--ts-bg);
  color: var(--ts-ink);
  padding-block: clamp(32px, 4vw, 64px);
  scroll-margin-block-start: 80px;
}
.ts-stories *, .ts-stories { box-sizing: border-box; }
.ts-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.ts-stories .ts-head { border-block-end: 1px solid var(--ts-line); padding-block-end: 20px; margin-block-end: 25px; }
.ts-stories .ts-head h2 { font-size: clamp(1.9rem, 3.3vw, 3.15rem); line-height: 1.18; letter-spacing: -.04em; color: var(--ts-ink); margin: 0; }
.ts-head h2 span { color: var(--ts-blue); }
.ts-stories .ts-head p { margin: .5rem 0 0; color: var(--ts-muted); font-size: 1.02rem; line-height: 1.6; }
.ts-case { display: grid; gap: 18px; }
.ts-facts { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 16px; align-items: baseline; }
.ts-facts .ts-meta { grid-column: 1 / -1; }
.ts-stories .ts-meta { margin: 0 0 4px; font-size: .86rem; color: var(--ts-muted); }
.ts-stories .ts-vehicle { margin: 0; color: var(--ts-ink); font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.28; font-weight: 750; letter-spacing: -.025em; }
.ts-pack { display: block; width: fit-content; color: var(--ts-blue); font-size: .9rem; font-weight: 650; }
.ts-stories .ts-timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px, 1.5vw, 24px); list-style: none; margin: 0; padding: 0; }
.ts-timeline li { display: flex; align-items: baseline; gap: 14px; padding-block: 9px; border-block-start: 1px solid var(--ts-line); }
.ts-number { color: var(--ts-blue); font-variant-numeric: tabular-nums; font-weight: 650; font-size: .86rem; direction: ltr; }
.ts-stories .ts-timeline h4 { margin: 0; font-size: 1.05rem; line-height: 1.48; color: var(--ts-ink); }
.ts-stories .ts-timeline p { margin: 2px 0 0; color: var(--ts-muted); font-size: .94rem; line-height: 1.55; }
.ts-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); }
.ts-gallery figure { margin: 0; min-width: 0; }
.ts-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px; background: var(--ts-line); }
.ts-gallery figcaption { padding-block-start: 7px; color: var(--ts-ink); font-size: .94rem; line-height: 1.45; font-weight: 650; }
.ts-gallery[data-count="1"] { grid-template-columns: minmax(0, 32rem); }
.ts-gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 32rem)); }
.ts-gallery[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-actions { margin-block-start: 18px; }
.ts-stories a.ts-book, #real-work-inspection.rws a.ts-book { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 46px; padding: 9px 19px; border-radius: 10px; background: #174f87; color: white; font-size: 1rem; font-weight: 700; text-decoration: none; }
.ts-stories .ts-book:hover, #real-work-inspection.rws .ts-book:hover { background: #123e6a; }
.ts-stories :focus-visible { outline: 3px solid var(--ts-blue); outline-offset: 4px; }
.ts-picker { display: block; margin: 0 0 16px; }
.ts-picker select { margin-inline: 6px; max-width: 100%; min-height: 44px; color: inherit; background: var(--ts-bg); font: inherit; }
#customer-feedback .ts-review .cfp-meta { display: block; width: fit-content; }
html[data-theme="dark"] .ts-stories { --ts-bg: #102537; --ts-ink: #ecf4fb; --ts-muted: #bfcedb; --ts-blue: #a9d2fc; --ts-line: #344c5d; }
/* On desktop the homepage estimates these three preceding sections at up to
   571px above their measured total. Resolve them before a jump to the story. */
@media (min-width: 800px) {
  html[data-testor-render-priority] body:has(#real-work-inspection.ts-stories)
  main > :is(.home-r7-decision, .r4-intent, .r4-home-areas)[data-testor-render-defer] {
    content-visibility: visible;
  }
}
@media (max-width: 799px) {
  .ts-wrap { width: calc(100% - 32px); }
  .ts-case { gap: 14px; }
  .ts-gallery, .ts-gallery[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-stories .ts-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-stories .ts-head { margin-block-end: 16px; padding-block-end: 15px; }
}
@media (max-width: 520px) {
  .ts-facts { display: block; }
  .ts-stories .ts-timeline { grid-template-columns: 1fr; gap: 0; }
}

#real-work-inspection.rws .ts-book:focus-visible { outline: 3px solid #18589a; outline-offset: 4px; }


/* The photographs and the four written steps are independent records. */
.ts-case:has(.ts-gallery[data-count="2"]) .ts-gallery {
  width: 100%; max-width: 640px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(10px,1.3vw,20px);
}
.ts-gallery[data-count="2"] img { height: auto; aspect-ratio: auto; object-fit: contain; }
@media (min-width: 900px) {
  .ts-case:has(.ts-gallery[data-count="2"]) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "facts pictures" "steps pictures"; gap: 12px clamp(24px,5vw,90px); align-items: start; }
  .ts-case:has(.ts-gallery[data-count="2"]) .ts-facts { grid-area: facts; }
  .ts-case:has(.ts-gallery[data-count="2"]) .ts-gallery { grid-area: pictures; justify-self: start; }
  .ts-case:has(.ts-gallery[data-count="2"]) .ts-timeline { grid-area: steps; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; }
  .ts-case:has(.ts-gallery[data-count="2"]) .ts-timeline li { padding-block: 16px; }
  .ts-case .ts-overview { grid-area: facts; }
  .ts-case .ts-overview .ts-head { border: 0; margin: 0 0 14px; padding: 0; }
  .ts-case .ts-overview .ts-head h2 { font-size: clamp(28px,2.4vw,48px); }
  .ts-case .ts-overview .ts-actions { margin-block: 13px; }
}
@media (min-width: 1250px) {
  #real-work-inspection .ts-case:has(> .ts-overview) { grid-template-columns: minmax(0,.92fr) minmax(0,.80fr) minmax(0,1.25fr);
    grid-template-areas: "facts steps pictures"; grid-template-rows: auto; align-items: center; column-gap: clamp(24px,3vw,72px); }
  #real-work-inspection .ts-case:has(> .ts-overview) .ts-timeline { grid-template-columns: 1fr; gap: 0; }
  #real-work-inspection .ts-case:has(> .ts-overview) .ts-timeline li { padding-block: 12px; }
  #real-work-inspection .ts-case:has(> .ts-overview) .ts-gallery { max-width: 720px; justify-self: end; }
  #real-work-inspection .ts-case:has(> .ts-overview) .ts-head h2 span { display: block; }
}
main#main-content #customer-feedback.cf-section--private .cfp-wrap .cfp-grid { display: flex !important; flex-wrap: wrap; gap: 14px !important; }
#customer-feedback.cf-section--private .cfp-grid > .cfp-card { flex: 1 1 calc((100% - 28px) / 3 - 1px); min-width: 0;
  min-height: 0 !important; padding: clamp(16px,1.5vw,24px); margin: 0; }
#customer-feedback.cf-section--private .cfp-grid .cfp-quote { margin-block: 14px 17px; }
#customer-feedback.cf-section--private .cfp-grid .cfp-quote p { font-size: clamp(18px,1.3vw,23px) !important; line-height: 1.45 !important; }
#customer-feedback.cf-section--private .cfp-card-foot { margin-block-start: auto; }
#customer-feedback .hp-rating-details { grid-column: 1/-1; margin-block: 12px 0; border-block: 1px solid var(--cfp-line); color: var(--cfp-ink); }
#customer-feedback .hp-rating-details summary { width: fit-content; max-width: 100%; padding-block: 12px; min-height: 44px; cursor: pointer; color: var(--cfp-link); font-weight: 650; }
#customer-feedback .hp-rating-details summary:focus-visible { outline: 3px solid var(--cfp-link); outline-offset: 2px; }
#customer-feedback .hp-rating-list { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; }
#customer-feedback .hp-rating-list .cfp-card { flex: 0 1 20rem; min-height: 0; }
@media (min-width: 1000px) {
  #customer-feedback.cf-section--private .cfp-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 20px; align-items: center; }
  #customer-feedback.cf-section--private .cfp-source-summary { justify-content: start; gap: 22px; }
  #customer-feedback.cf-section--private :is(.cfp-grid,.cfp-foot) { grid-column: 1/-1; }
}
@media (min-width: 681px) and (max-width: 1050px) {
  #customer-feedback.cf-section--private .cfp-grid > .cfp-card { flex-basis: calc(50% - 8px); }
}
@media (max-width: 680px) {
  #customer-feedback.cf-section--private .cfp-grid > .cfp-card { flex-basis: 100%; }
}

#main-content .hp-utilities, #main-content .hp-closing { box-sizing: border-box; width: var(--site-canvas,min(92%,2240px));
  display: grid; gap: clamp(14px,1.4vw,24px); margin: clamp(24px,3vw,48px) auto; align-items: stretch; }
#main-content .hp-utilities { grid-template-columns: minmax(0,1.9fr) minmax(270px,.85fr); }
#main-content .hp-utilities .t22-home-lookup-wrap, #main-content .hp-utilities .hp-section-nav {
  box-sizing: border-box; width: 100% !important; max-width: none !important; margin: 0 !important; min-width: 0; }
#main-content .hp-utilities #home-vehicle-lookup { box-sizing: border-box; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  align-content: center; align-items: center; min-height: 100%; width: 100%; gap: 16px clamp(16px,2vw,42px); padding: clamp(22px,2.2vw,38px); margin: 0;
  background: #15364e; color: white; border-radius: 16px; }
#home-vehicle-lookup .tx-lookup-entry { width: 100%; max-width: 32rem; min-width: 0; justify-self: start; }
#main-content .hp-utilities .hero-lookup__row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 8px; }
#main-content .hp-utilities .hero-lookup__plate { flex: 0 1 15rem; min-width: 0; max-width: 100%; width: 100%; }
#main-content .hp-utilities .hero-lookup__input { width: 100%; min-width: 0; }
#main-content .hp-utilities .hero-lookup__submit { flex: 0 1 auto; width: auto; min-height: 48px; }
#main-content .hp-utilities .hero-lookup__tools { display: flex; flex-wrap: wrap; gap: 2px 16px; }
#main-content .hp-utilities .hero-lookup__tools a { display: inline-flex; align-items: center; min-height: 44px; color: white; }
#main-content .hp-utilities .hero-lookup__results { grid-column:1/-1; }
#main-content .hp-utilities nav.hp-section-nav { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: center;
  gap: 3px 14px; padding: clamp(18px,1.7vw,30px); border: 1px solid #cbd9e5; border-radius: 16px; background: #f4f7fa; white-space: normal; overflow: visible; }
#main-content .hp-utilities .hp-section-nav h2 { grid-column: 1/-1; font-size: 18px !important; margin: 0 0 4px; color: #16354c; }
#main-content .hp-utilities .hp-section-nav a { display: flex; align-items: center; min-height: 44px; padding: 5px 0; border-radius: 0; background: transparent; color: #174f87; text-decoration: underline; text-underline-offset: 4px; }
#main-content .hp-closing { grid-template-columns: repeat(2,minmax(0,1fr)); }
#main-content .hp-closing > :is(.hp-contact-card,.tr-footer-promo) { box-sizing: border-box; min-width: 0; width: 100% !important; max-width: none !important;
  display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 0; margin: 0 !important;
  border-radius: 16px; padding: clamp(22px,2vw,36px); }
#main-content .hp-closing .hp-contact-card { background: #edf4f9; border: 1px solid #cbd9e5; color: #12354b; }
#main-content .hp-closing .hp-contact-card h2, #main-content .hp-closing .hp-contact-card .hc-final-copy p { color: #12354b !important; }
#main-content .hp-closing > * h2 { margin: 0; font-size: clamp(23px,2vw,32px) !important; line-height: 1.23 !important; }
#main-content .hp-closing .hc-final-copy p, #main-content .hp-closing .tr-footer-promo p { max-width: 58ch; margin: 8px 0; line-height: 1.65; }
#main-content .hp-closing .hc-final-actions { align-items: flex-start; width: auto; max-width: 100%; margin: auto 0 0; gap: 6px; }
#main-content .hp-closing .hc-final-actions .hc-button { width: auto; min-width: 0; min-height: 46px; padding-inline: 18px; }
#main-content .hp-closing .hp-contact-card .hc-final-actions { display: flex; flex-direction: column; }
#main-content .hp-closing .hp-contact-card .hc-button { display: inline-flex; align-items: center; gap: 12px; border-radius: 8px; background: #174f87; color: white; text-decoration: none; font-weight: 700; }
#main-content .hp-closing .hp-contact-card .hc-button span { color: white; }
#main-content .hp-closing .hc-final-actions span { color: #3d576a; }
#main-content .hp-closing .tr-footer-promo { background: #14334d; color: white; }
#main-content .hp-closing .tr-actions { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; margin: auto 0 0; }
#main-content .hp-closing .tr-actions a { min-height: 44px; display: inline-flex; align-items: center; }
#main-content .hp-closing .tr-footer-promo small { margin: 0; }
@media (max-width: 1050px) {
  #main-content .hp-utilities #home-vehicle-lookup { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  #main-content .hp-utilities, #main-content .hp-closing { width: calc(100% - 32px); grid-template-columns: minmax(0,1fr); gap: 12px; margin-block: 24px; }
  #main-content .hp-utilities #home-vehicle-lookup { padding: 20px; }
  #main-content .hp-utilities .hero-lookup__plate { flex: 1 1 12rem; }
  #main-content .hp-utilities .hero-lookup__submit { flex: 1 1 8rem; }
  #main-content .hp-utilities #home-vehicle-lookup .hero-lookup__row { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 8px; }
  #main-content .hp-utilities #home-vehicle-lookup .hero-lookup__plate { height: 50px !important; max-height: 50px; width: 100%; }
  #main-content .hp-utilities #home-vehicle-lookup .hero-lookup__input { height: 100% !important; }
  #main-content .hp-utilities #home-vehicle-lookup .hero-lookup__submit { width: 100%; height: 46px !important; min-height: 46px; }
}
html[data-theme=dark] #main-content .hp-utilities nav.hp-section-nav, html[data-theme=dark] #main-content .hp-closing .hp-contact-card { background: #1a354a; border-color: #4a6173; }
html[data-theme=dark] #main-content .hp-utilities .hp-section-nav :is(h2,a), html[data-theme=dark] #main-content .hp-closing .hp-contact-card :is(h2,p,span) { color: #eef5fb !important; }
