:root {
  --bg: #f5f7fb;
  --ink: #102033;
  --muted: #64748b;
  --card: #ffffff;
  --line: #dde5ef;
  --brand: #13294b;
  --brand-2: #1f66d1;
  --brand-3: #00a88f;
  --accent: #ff8a00;
  --good: #097969;
  --soft-blue: #eaf2ff;
  --soft-green: #eafaf6;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand-2); text-decoration: none; font-weight: 650; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 23, 42, .04);
}
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.nav-cta {
  background: var(--brand-2);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 18px rgba(31, 102, 209, .18);
}
.nav-cta:hover { text-decoration: none; filter: brightness(.96); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(0,168,143,.22), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(31,102,209,.24), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: var(--ink);
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -90px;
  width: 420px;
  height: 220px;
  border-radius: 45% 55% 0 0;
  background: rgba(19,41,75,.08);
  transform: rotate(-8deg);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  margin: 0 0 14px;
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 880px;
}
.hero p {
  font-size: 20px;
  max-width: 760px;
  margin: 0;
  color: #42526a;
}
.searchbox {
  margin-top: 30px;
  background: #fff;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 820px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.searchbox::before {
  content: "Tow ratings  Payload  Trim lookup";
  grid-column: 1 / -1;
  color: var(--brand);
  font-weight: 850;
  font-size: 14px;
  word-spacing: 14px;
}
.searchbox input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px;
  font-size: 16px;
  background: #fbfdff;
}
.searchbox input:focus { outline: 3px solid rgba(31,102,209,.16); border-color: var(--brand-2); }
.searchbox button {
  border: 0;
  background: var(--brand-3);
  color: white;
  border-radius: 12px;
  padding: 0 22px;
  min-height: 54px;
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
}
.searchbox button:hover { filter: brightness(.95); }

.search-results {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.search-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.search-status.is-error { color: #9b2c2c; }
.search-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.search-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd7e6;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--brand);
  font-weight: 800;
}
.search-result-link::after {
  content: "View";
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 850;
}
.search-result-link:hover {
  background: #fff;
  border-color: var(--brand-2);
  text-decoration: none;
}

main { padding: 34px 0 72px; }
h1, h2, h3 { letter-spacing: -0.035em; }
main h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  margin: 8px 0 10px;
}
main h2 { margin-top: 34px; font-size: 28px; }
main h3 { font-size: 19px; }
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c8d7eb;
}
.card h2, .card h3 { margin: 0 0 8px; }
.card h3 a { color: var(--brand); }
.kpi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.05em;
}
.kpi::after {
  content: "Top rating";
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 850;
  color: var(--good);
  background: var(--soft-green);
  border: 1px solid #c5f0e7;
  border-radius: 999px;
  padding: 5px 8px;
}
.muted { color: var(--muted); }
.notice {
  border: 1px solid #b8dfd8;
  border-left: 6px solid var(--brand-3);
  background: linear-gradient(180deg, #ffffff, #f5fffc);
  padding: 17px 20px;
  border-radius: 16px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(9, 121, 105, .05);
}
.year-links {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.year-links a, .pill {
  display: inline-block;
  padding: 9px 13px;
  margin: 5px 5px 5px 0;
  border: 1px solid #cbd7e6;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
}
.year-links a:hover, .pill:hover {
  background: var(--soft-blue);
  text-decoration: none;
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 880px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
  position: sticky;
  top: 72px;
  background: #f0f5fb;
  color: #314056;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 2;
}
tbody tr { background: #fff; }
tbody tr:hover { background: #fbfdff; }
tr:last-child td { border-bottom: 0; }
td strong {
  display: inline-block;
  color: #0f5132;
  background: #edf9f3;
  border: 1px solid #cfeedd;
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 30px 0;
  background: white;
  font-size: 14px;
}
footer .container { display: grid; gap: 8px; }
footer .container::before {
  content: "Towlytics";
  color: var(--brand);
  font-weight: 900;
  font-size: 18px;
}
@media (max-width: 760px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 12px; }
  .nav-links { gap: 12px 16px; }
  .nav-cta { padding: 8px 12px; }
  .hero { padding: 40px 0 32px; }
  .searchbox { grid-template-columns: 1fr; }
  .searchbox button { width: 100%; }
  th { top: 0; }
}


/* Marketplace polish */
.card { position: relative; overflow: hidden; }
.card::before { content:""; position:absolute; left:0; top:0; width:100%; height:4px; background:linear-gradient(90deg,var(--brand-2),var(--brand-3)); }
.card h3 a::after { content:" →"; color:var(--brand-2); }
.section-kicker { color: var(--brand-2); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 30px 0 4px; }
.searchbox button { background: var(--brand-2); }


/* SEO content sections injected from model_content_profiles */
.content-section {
  margin: 30px 0;
}
.vehicle-guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.vehicle-guide > p {
  color: #334155;
  font-size: 16px;
  max-width: 980px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.info-panel {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 20px;
}
.info-panel h3 {
  margin-top: 0;
  color: var(--brand);
}
.feature-list {
  margin: 0;
  padding-left: 20px;
}
.feature-list li {
  margin: 8px 0;
}
.best-for {
  background: #f7fff9;
  border-color: #ccefe4;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--brand);
}
.faq-item p {
  margin: 10px 0 2px;
  color: #475569;
}
@media (max-width: 760px) {
  .vehicle-guide { padding: 18px; }
  .content-grid { grid-template-columns: 1fr; }
}




/* Trailer parts recommendation blocks */
.trailer-parts-section {
  margin-top: 2rem;
}
.parts-profile-badge {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  color: #1f3b63;
  font-weight: 700;
  font-size: 0.92rem;
}
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.part-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.part-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.part-card p {
  margin-bottom: 0;
}
.parts-callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}
.parts-callout h3 {
  margin-top: 0;
}
.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.guide-links a {
  display: inline-block;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #d6e4ff;
  background: #fff;
  font-weight: 700;
}
.guide-page .article-card {
  max-width: 920px;
  margin: 1.5rem auto;
}
.guide-page li { margin-bottom: 0.45rem; }


/* Production SEO enrichment additions */
.related-vehicles, .seo-next-steps, .faq-schema-note, .calculator-section { margin-top: 1.5rem; }
.related-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin-top: 1rem; }
.related-link-card { display: block; border: 1px solid rgba(15,23,42,.12); border-radius: 14px; padding: .9rem; background: #fff; text-decoration: none; }
.related-link-card strong { display: block; margin-bottom: .25rem; }
.guide-hero { padding-top: 1rem; }
.calc-field { display: grid; gap: .35rem; font-weight: 700; }
.calc-field input { padding: .75rem; border: 1px solid rgba(15,23,42,.18); border-radius: 12px; font: inherit; }
.button { margin-top: 1rem; padding: .85rem 1.1rem; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.disclaimer-strip { border-left: 4px solid rgba(15,23,42,.45); padding: .85rem 1rem; background: rgba(15,23,42,.04); border-radius: 12px; margin: 1rem 0; }
.resource-links { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.resource-links a { border:1px solid rgba(15,23,42,.14); border-radius:999px; padding:.55rem .8rem; text-decoration:none; background:#fff; }


/* Towlytics brand logo update */
.logo.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 190px;
  text-decoration: none;
  line-height: 1;
}
.brand-logo-img {
  display: block;
  width: clamp(178px, 18vw, 250px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.logo.brand-link:hover { text-decoration: none; }
@media (max-width: 760px) {
  .logo.brand-link { min-width: 165px; }
  .brand-logo-img { width: 184px; }
}
/* Towing calculator validation */
.calc-instructions { margin-top: 0; }
.calc-field small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.calc-field input:focus { outline: 3px solid rgba(31, 102, 209, .18); border-color: var(--brand-2); }
.calc-field input[aria-invalid="true"] { border-color: #b42318; background: #fff7f6; }
.calc-result ul { margin-bottom: 0; }
.calc-result[role="alert"] { border-left: 5px solid #b42318; background: #fff7f6; }


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
