﻿/* Brand hubs, master Index, and dynamic home page. Scoped to the plugin wrappers. */
.cdvt.cdvt-directory {
  --dir-navy: #012450;
  --dir-teal: #0a7a7e;
  --dir-gold: #c9a227;
  --dir-ink: #1a222b;
  --dir-soft: #4b5965;
  --dir-muted: #6b7682;
  --dir-surface: #f4f6f8;
  --dir-border: #dfe6ec;
  max-width: 1020px;
  margin-inline: auto;
  padding: 32px 26px 58px;
  color: var(--dir-ink);
  font-size: 16px;
  line-height: 1.6;
}
.cdvt-directory .inside-article { padding: 0; border: 0; background: none; box-shadow: none; }
.cdvt-directory .cdvt-content { margin-top: 0; }
.cdvt-directory a { color: var(--dir-teal); text-underline-offset: .16em; }
.cdvt-directory a:hover { color: #075e61; }
.cdvt-directory h1, .cdvt-directory h2, .cdvt-directory h3 { color: var(--dir-navy); line-height: 1.16; text-wrap: balance; }
.cdvt-directory h1 { margin: 5px 0 0; font-size: clamp(31px, 4.8vw, 46px); letter-spacing: -.035em; }
.cdvt-directory h1 em { color: var(--dir-teal); font-style: normal; }
.cdvt-directory h2 { margin: 0 0 5px; font-size: clamp(21px, 2.7vw, 27px); letter-spacing: -.02em; }
.cdvt-directory h3 { font-size: 16px; }
.cdvt-directory p { margin: 0 0 12px; }
.cdvt-directory .cdvt-eyebrow { margin: 0 0 7px; color: var(--dir-teal); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cdvt-directory .cdvt-breadcrumb { margin: 0 0 22px; color: var(--dir-muted); font-size: 12px; }
.cdvt-directory .cdvt-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; padding: 0; list-style: none; }
.cdvt-directory .cdvt-breadcrumb li + li::before { content: "\203a"; margin-right: 10px; color: #82909e; }
.cdvt-directory .cdvt-breadcrumb a { color: var(--dir-muted); text-decoration: none; }
.cdvt-directory .cdvt-lede { max-width: 68ch; margin-top: 13px; color: var(--dir-soft); font-size: 17px; line-height: 1.6; }
.cdvt-directory-header { margin-bottom: 26px; }
.cdvt-directory-stats, .cdvt-glance { display: flex; flex-wrap: wrap; gap: 6px 17px; align-items: center; margin-top: 18px; color: var(--dir-soft); font-size: 13px; }
.cdvt-directory-stats strong, .cdvt-glance strong { color: var(--dir-navy); }
.cdvt-directory-stats span, .cdvt-glance { line-height: 1.9; }
.cdvt-glance .cdvt-grade { vertical-align: middle; }
.cdvt-directory-foot { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--dir-border); color: var(--dir-muted); font-size: 11.5px; }

/* Grade pills shared by brand cards and index rows. */
.cdvt-directory .cdvt-grade { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 33px; padding: 2px 8px; border-radius: 6px; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.65; }
.cdvt-directory .cdvt-grade-a { background: #157347; }
.cdvt-directory .cdvt-grade-b { background: #2f7a43; }
.cdvt-directory .cdvt-grade-c { background: #946200; }
.cdvt-directory .cdvt-grade-d { background: #a94912; }
.cdvt-directory .cdvt-grade-f { background: #a92b22; }
.cdvt-directory .cdvt-grade-none { background: #5b6570; }
.cdvt-directory .cdvt-grade-to { margin-inline: 3px; color: var(--dir-muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Brand hub. */
.cdvt-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.cdvt-brand-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--dir-border); border-radius: 13px; background: #fff; color: var(--dir-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cdvt-brand-card:hover { border-color: var(--dir-teal); box-shadow: 0 2px 12px rgba(1,36,80,.06); color: var(--dir-ink); }
.cdvt-brand-photo { display: flex; flex: 0 0 92px; align-items: center; justify-content: center; width: 92px; height: 62px; overflow: hidden; border-radius: 9px; background: var(--dir-surface); }
.cdvt-brand-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cdvt-car-fallback { display: block; width: 40px; height: 24px; }
.cdvt-brand-body { flex: 1; min-width: 0; }
.cdvt-brand-name { display: block; overflow-wrap: anywhere; color: var(--dir-navy); font-size: 17px; font-weight: 800; line-height: 1.3; }
.cdvt-brand-meta { display: block; margin: 3px 0 9px; color: var(--dir-muted); font-size: 12px; line-height: 1.45; }
.cdvt-brand-grades { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cdvt-brand-models .cdvt-section-intro { color: var(--dir-soft); font-size: 14px; }
.cdvt-brand-faq { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--dir-border); }
.cdvt-directory details { margin-top: 8px; padding: 0 0 8px; border-bottom: 1px solid #edf1f4; }
.cdvt-directory details summary { cursor: pointer; color: var(--dir-navy); font-size: 14px; font-weight: 600; }
.cdvt-directory details p { margin: 9px 0 2px; color: var(--dir-soft); font-size: 14px; }

/* Index controls and directory. */
.cdvt-index-tools { margin: 28px 0 20px; padding: 19px 20px; border: 1px solid var(--dir-border); border-radius: 14px; background: #fff; }
.cdvt-index-tools-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cdvt-index-tools-heading p { color: var(--dir-soft); font-size: 13px; }
.cdvt-index-count { flex: none; margin: 0 !important; padding: 5px 10px; border-radius: 999px; background: var(--dir-surface); color: var(--dir-navy) !important; font-size: 12px !important; font-weight: 700; }
.cdvt-index-controls { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 16px; }
.cdvt-index-controls label { display: block; color: var(--dir-muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.cdvt-index-controls select { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid var(--dir-border); border-radius: 8px; background: #fff; color: var(--dir-ink); font-size: 13px; }
.cdvt-clear-filters { padding: 9px 13px; border: 1px solid var(--dir-border); border-radius: 8px; background: #fff; color: var(--dir-teal); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cdvt-clear-filters:hover { border-color: var(--dir-teal); }
.cdvt-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.cdvt-az a, .cdvt-az span { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; padding: 4px 7px; border: 1px solid var(--dir-border); border-radius: 6px; color: var(--dir-teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.cdvt-az a:hover { border-color: var(--dir-teal); background: #eef7f7; }
.cdvt-az span { color: #a4afb9; opacity: .55; }
.cdvt-index-brand { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--dir-border); }
.cdvt-index-brand-heading { display: flex; align-items: baseline; gap: 10px; }
.cdvt-index-brand-heading h2 { margin: 0; font-size: 19px; }
.cdvt-index-brand-heading h2 a { color: var(--dir-navy); text-decoration: none; }
.cdvt-index-brand-heading h2 a:hover { color: var(--dir-teal); }
.cdvt-index-brand-heading span { color: var(--dir-muted); font-size: 12px; }
.cdvt-index-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.cdvt-index-model { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--dir-border); border-radius: 8px; background: #fff; color: var(--dir-ink); text-decoration: none; }
.cdvt-index-model:hover { border-color: var(--dir-teal); background: #fbfefe; color: var(--dir-ink); }
.cdvt-index-model-copy { min-width: 0; }
.cdvt-index-model-copy strong { display: block; overflow-wrap: anywhere; color: var(--dir-navy); font-size: 14px; line-height: 1.3; }
.cdvt-index-model-copy > span { display: block; margin-top: 2px; color: var(--dir-muted); font-size: 11.5px; line-height: 1.45; }
.cdvt-index-model-grades { display: flex; flex: none; align-items: center; gap: 5px; }
.cdvt-index-empty { padding: 18px; border: 1px dashed var(--dir-border); border-radius: 10px; color: var(--dir-soft); font-size: 14px; text-align: center; }
.cdvt-how { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--dir-border); }
.cdvt-how-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cdvt-how-heading a { flex: none; font-size: 13px; font-weight: 600; }
.cdvt-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 15px; }
.cdvt-how-grid h3 { margin-bottom: 4px; font-size: 14px; }
.cdvt-how-grid p { color: var(--dir-soft); font-size: 13.5px; }

/* Home. */
.cdvt-home-hero { padding: 34px 34px 30px; border-radius: 18px; background: linear-gradient(132deg, #012450 0%, #073a69 62%, #0a5e72 100%); color: #fff; }
.cdvt-home-hero .cdvt-eyebrow { color: #9edcdf; }
.cdvt-home-hero h1 { max-width: 760px; color: #fff; font-size: clamp(32px, 5.4vw, 52px); }
.cdvt-home-hero h1 em { color: #f0cf67; }
.cdvt-home-hero .cdvt-lede { max-width: 62ch; color: #d4e3ee; }
.cdvt-home-lookup { max-width: 750px; margin-top: 24px; padding: 17px; border-radius: 13px; background: #fff; color: var(--dir-ink); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.cdvt-home-lookup-label { margin: 0 0 9px; color: var(--dir-navy); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cdvt-lookup-form { display: grid; grid-template-columns: 1fr 1fr .85fr auto; gap: 8px; align-items: end; }
.cdvt-lookup-form label { display: block; color: var(--dir-muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cdvt-lookup-form select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--dir-border); border-radius: 8px; background: #fff; color: var(--dir-ink); font-size: 13px; }
.cdvt-home-go { min-height: 38px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--dir-gold); color: var(--dir-navy); font-size: 13px; font-weight: 800; cursor: pointer; }
.cdvt-home-go:hover { background: #b38e1e; }
.cdvt-home-lookup-help { margin: 9px 0 0; color: var(--dir-soft); font-size: 12px; }
.cdvt-home-lookup-help a { font-weight: 600; }
.cdvt-home-stats { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 19px; color: #c6d9e7; font-size: 12px; }
.cdvt-home-stats strong { color: #fff; }
.cdvt-home-section, .cdvt-home-picks { margin-top: 34px; }
.cdvt-home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.cdvt-home-section-head h2 { margin: 0; }
.cdvt-home-section-head > a { flex: none; font-size: 13px; font-weight: 700; }
.cdvt-home-picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cdvt-home-rank-group { padding: 17px; border: 1px solid var(--dir-border); border-radius: 13px; background: #fff; }
.cdvt-home-rank-group h3 { margin: 0 0 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cdvt-home-rank-good { color: #157347 !important; }
.cdvt-home-rank-bad { color: #a92b22 !important; }
.cdvt-home-rank { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #eef2f5; color: var(--dir-ink); text-decoration: none; }
.cdvt-home-rank:hover { color: var(--dir-ink); }
.cdvt-home-rank:hover strong { color: var(--dir-teal); }
.cdvt-home-rank-badge { display: flex; flex: 0 0 50px; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10px; color: #fff; }
.cdvt-home-rank-badge.cdvt-grade-a { background: #157347; }
.cdvt-home-rank-badge.cdvt-grade-b { background: #2f7a43; }
.cdvt-home-rank-badge.cdvt-grade-c { background: #946200; }
.cdvt-home-rank-badge.cdvt-grade-d { background: #a94912; }
.cdvt-home-rank-badge.cdvt-grade-f { background: #a92b22; }
.cdvt-home-rank-badge strong { font-size: 19px; line-height: 1; }
.cdvt-home-rank-badge small { margin-top: 4px; font-size: 9px; opacity: .9; }
.cdvt-home-rank-copy { min-width: 0; }
.cdvt-home-rank-copy strong { display: block; overflow-wrap: anywhere; color: var(--dir-navy); font-size: 14px; line-height: 1.35; }
.cdvt-home-rank-copy small { display: block; margin-top: 2px; color: var(--dir-muted); font-size: 11.5px; }
.cdvt-home-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cdvt-home-recent { display: block; padding: 13px; border: 1px solid var(--dir-border); border-radius: 10px; background: #fff; color: var(--dir-ink); text-decoration: none; }
.cdvt-home-recent:hover { border-color: var(--dir-teal); color: var(--dir-ink); }
.cdvt-home-recent-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--dir-muted); font-size: 11px; }
.cdvt-home-recent strong { display: block; overflow-wrap: anywhere; color: var(--dir-navy); font-size: 14px; line-height: 1.35; }
.cdvt-home-recent small { display: block; margin-top: 4px; color: var(--dir-muted); font-size: 11px; }
.cdvt-home-recall-list { border-top: 1px solid var(--dir-border); }
.cdvt-home-recall { padding: 13px 0; border-bottom: 1px solid var(--dir-border); }
.cdvt-home-recall-date { margin: 0 0 4px !important; color: var(--dir-teal) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cdvt-home-recall-date span { color: var(--dir-muted); font-weight: 500; }
.cdvt-home-recall h3 { margin: 0 0 4px; font-size: 15px; }
.cdvt-home-recall > p:last-child { margin: 0; color: var(--dir-muted); font-size: 12px; }
.cdvt-home-index-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 24px 25px; border-radius: 14px; background: #eef7f7; border: 1px solid #cfe6e6; }
.cdvt-home-index-cta h2 { margin-bottom: 4px; }
.cdvt-home-index-cta p:not(.cdvt-eyebrow) { max-width: 60ch; color: var(--dir-soft); font-size: 14px; }
.cdvt-home-cta-button { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 11px 17px; border-radius: 8px; background: var(--dir-navy); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.cdvt-directory .cdvt-home-cta-button { color: #fff; }
.cdvt-directory .cdvt-home-cta-button:hover { background: #073a69; color: #fff; }
.cdvt-directory .cdvt-home-cta-button-secondary { background: var(--dir-gold); color: var(--dir-navy); }
.cdvt-directory .cdvt-home-cta-button-secondary:hover { background: #b38e1e; color: var(--dir-navy); }
.cdvt-home-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cdvt-home-post { display: block; padding: 14px; border: 1px solid var(--dir-border); border-radius: 10px; color: var(--dir-ink); text-decoration: none; }
.cdvt-home-post:hover { border-color: var(--dir-teal); color: var(--dir-ink); }
.cdvt-home-post-meta { display: block; margin-bottom: 6px; color: var(--dir-teal); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cdvt-home-post strong { display: block; color: var(--dir-navy); font-size: 14px; line-height: 1.4; }
.cdvt-home-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 24px 25px; border: 1px dashed #b9d3d5; border-radius: 14px; background: #f6fafb; }
.cdvt-home-newsletter h2 { margin-bottom: 5px; }
.cdvt-home-newsletter p:not(.cdvt-eyebrow) { color: var(--dir-soft); font-size: 14px; }

@media (max-width: 760px) {
  .cdvt.cdvt-directory { padding: 23px 17px 42px; }
  .cdvt-brand-grid, .cdvt-index-models, .cdvt-home-picks-grid { grid-template-columns: 1fr; }
  .cdvt-index-controls { grid-template-columns: 1fr 1fr; }
  .cdvt-clear-filters { grid-column: 1 / -1; }
  .cdvt-how-grid { grid-template-columns: 1fr; gap: 12px; }
  .cdvt-home-hero { padding: 25px 19px 22px; }
  .cdvt-lookup-form { grid-template-columns: 1fr 1fr; }
  .cdvt-lookup-form label:nth-child(3) { grid-column: 1 / 2; }
  .cdvt-home-go { grid-column: 2 / 3; }
  .cdvt-home-recent-grid, .cdvt-home-posts { grid-template-columns: 1fr 1fr; }
  .cdvt-home-index-cta, .cdvt-home-newsletter { align-items: flex-start; flex-direction: column; gap: 15px; }
  .cdvt-home-cta-button { width: 100%; }
  .cdvt-home-section-head, .cdvt-how-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 460px) {
  .cdvt-index-controls { grid-template-columns: 1fr; }
  .cdvt-clear-filters { grid-column: auto; }
  .cdvt-lookup-form { grid-template-columns: 1fr; }
  .cdvt-lookup-form label:nth-child(3), .cdvt-home-go { grid-column: auto; }
  .cdvt-home-recent-grid, .cdvt-home-posts { grid-template-columns: 1fr; }
  .cdvt-home-stats { gap: 4px 12px; }
  .cdvt-brand-photo { flex-basis: 76px; width: 76px; height: 54px; }
}

