/* ReadyCMS helpers for the Dealer section and content-block templates.
   Loaded after site.css by the "Dealer Site" page template. */

/* Optional pane containers and optional fields collapse when left empty */
.cms-pane:empty,
.eyebrow:empty,.lead:empty,.more-link:empty,.badge:empty,.caption:empty,
a.btn:empty,small:empty,.hero h1 span:empty,.big-line span:empty,
.disclaimer:empty,.cms-hide-empty:empty{display:none}

/* Text module wrapper should not break layouts */
.text-content > :last-child{margin-bottom:0}

/* Menu module: current page */
.nav-links a.active{color:#fff;box-shadow:inset 0 -2px 0 var(--accent);padding-bottom:6px}

/* Breadcrumb module inside page heroes */
.crumbs ol,.crumbs ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0}
.crumbs li+li::before{content:"/";margin:0 8px;opacity:.6}
.crumbs li:last-child{color:#fff}

/* Bullet lists typed in the rich-text editor, styled like the design lists */
.tick-list ul{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:12px}
.tick-list.two ul{grid-template-columns:1fr 1fr}
.tick-list li{display:flex;gap:12px;align-items:flex-start}
.tick-list li::before{content:"";flex:none;width:22px;height:22px;margin-top:2px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1203' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat}
.chip-list ul{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 0;padding:0;list-style:none}
.chip-list li{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 16px;font-size:.92rem;font-weight:500}
.dark .chip-list li{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:#fff}
.chip-list h3{margin-top:28px}
.chip-list:first-child h3{margin-top:0}
.aside-card p:last-child{margin-bottom:0}

/* FAQ by topic: topic headings sit inside the .faq list */
.faq-topics.faq{margin:0;max-width:none}
.faq-topics h2{font-size:1.5rem;margin:56px 0 4px;scroll-margin-top:100px}
.faq-topics h2:first-child{margin-top:0}
.faq details > div > p,.faq details .faq-answer{color:var(--muted);padding-right:44px}

/* Intro blocks */
.intro-left{max-width:720px}
.split-intro{align-items:end;gap:48px}
.split-intro .lead{margin:0}

.cta-band .lead{margin-left:auto;margin-right:auto}
.callout-band .note{margin-top:0}
.loc.group .bar{display:none}
.code-snip{margin-top:24px}

/* Form module ("Dealer Lead Form" template) */
.lead-form .rdcms-form-message{grid-column:1/-1}
.lead-form .rdcms-form-message:empty{display:none}
.lead-form .rdcms-form-message:not(:empty){background:#FFEFE4;color:var(--accent-ink);border-radius:12px;padding:16px;font-weight:600}
.lead-form label .text-danger,.lead-form label .required{color:var(--accent-strong)}

@media (max-width:680px){
  .tick-list.two ul{grid-template-columns:1fr}
}
