/* Marketing-only additions. Scope everything under .th-root. Use design tokens, no raw hex. */

/* Smooth in-page scrolling for hash navigation (#suppliers, #segments, #how, #why, #access).
   scroll-padding-top offsets the sticky header (.th-header-bar-wrap.is-stuck, ~70px) so the
   section title is not hidden underneath it. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.th-root .tr-mkt-section {
  max-width: 1100px;
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
}

/* ------- Shared inner-page section header (Vehicles, Pricing, Contact, Resources) ------- */
.th-root .th-mkt-head {
  padding: 56px 0 32px;
}
.th-root .th-mkt-head .th-display {
  margin: 8px 0 0;
}
.th-root .th-mkt-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--th-slate);
  max-width: 640px;
  margin: 14px 0 0;
}
.th-root .th-mkt-sub {
  font-family: var(--th-font-mono);
  font-size: 13px;
  color: var(--th-mist);
  margin: 8px 0 0;
}

/* ------- Vehicle make / model card grids ------- */
.th-root .th-mkt-make-grid,
.th-root .th-mkt-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}
.th-root .th-mkt-make-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  text-align: center;
}
.th-root .th-mkt-make-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.th-root .th-mkt-make-card .th-mkt-make-name {
  font-family: var(--th-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--th-ink);
}
.th-root .th-mkt-make-card small {
  font-family: var(--th-font-mono);
  font-size: 11px;
  color: var(--th-mist);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.th-root .th-mkt-model-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.th-root .th-mkt-model-card .th-mkt-model-name {
  font-family: var(--th-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--th-ink);
}
.th-root .th-mkt-model-card .th-mkt-model-years {
  font-family: var(--th-font-mono);
  font-size: 12px;
  color: var(--th-mist);
  white-space: nowrap;
}

/* ------- Vehicle model size lists (built on .th-spec-chip) ------- */
.th-root .th-mkt-sizes-block {
  margin-bottom: 40px;
}
.th-root .th-mkt-sizes-block h2 {
  font-family: var(--th-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--th-ink);
  margin: 0 0 14px;
}
.th-root .th-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-root .th-spec-list .th-spec-chip {
  flex: 0 0 auto;
  font-family: var(--th-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--th-ink);
  padding: 9px 14px;
}
.th-root .th-spec-list .th-spec-chip small {
  color: var(--th-mist);
  font-weight: 500;
  margin-left: 4px;
}

/* ------- Contact page ------- */
.th-root .th-mkt-form {
  max-width: 640px;
  padding-bottom: 72px;
}
.th-root .th-mkt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.th-root .th-mkt-field label {
  font-family: var(--th-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--th-graphite);
}
.th-root .th-mkt-honeypot {
  position: absolute;
  left: -9999px;
}

/* ------- Blog / resources list ------- */
.th-root .th-mkt-article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 72px;
  max-width: 720px;
}
.th-root .th-mkt-article-card {
  display: block;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.th-root .th-mkt-article-card:hover {
  border-color: var(--th-mist);
}
.th-root .th-mkt-article-card .th-mkt-article-title {
  font-family: var(--th-font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--th-ink);
}

/* ------- Article body ------- */
.th-root .th-mkt-article {
  max-width: 720px;
  padding-bottom: 72px;
}
.th-root .th-mkt-article p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--th-slate);
}

.th-root .th-alert-success {
  padding: 12px 16px;
  border-radius: var(--th-r-md, 8px);
  background: var(--th-success-tint);
  color: var(--th-success);
  border: 1px solid var(--th-success);
}

.th-root .th-alert-error {
  padding: 12px 16px;
  border-radius: var(--th-r-md, 8px);
  background: var(--th-danger-tint);
  color: var(--th-danger);
  border: 1px solid var(--th-danger);
}

/* Hide the validation summary when there are no errors (ASP.NET marks it valid). */
.th-root .th-alert-error.validation-summary-valid {
  display: none;
}
