/*
 * Overrides for the i-speed-to-lead theme's main.css when rendering imported
 * Webflow templates (Coupon Club, Automatch). All rules are scoped to
 * body.body-4 so the rest of the site is unaffected.
 *
 * Theme rules that conflict (with their specificity):
 *   a              { color:#4169e1 }                          (0,0,1)
 *   a:visited      { color:#800080 }                          (0,1,1)
 *   a:hover/focus  { color:#191970 }                          (0,1,1)
 *   .site-header   { position:fixed; width:100%; z-index:999; top:0 }
 */

/* ---------- 1. Body background ---------- */
body.body-4 {
	background-color: #0c121e;
}

/* ---------- 2. Push first content sibling below the fixed .site-header.
 * Padding on body would create a gap above the fixed header itself, so
 * target the first element after #masthead inside #page instead. */
body.body-4 #masthead + * {
	padding-top: 84px;
}

/* ---------- 3. Cancel theme's pseudo-state link colors so Webflow's
 * class-based color rules can apply normally. We only neutralize the
 * pseudo-states; the resting `a { color }` rule has lower specificity than
 * any Webflow class rule and loses naturally. */
body.body-4 a:visited,
body.body-4 a:focus,
body.body-4 a:active {
	color: inherit;
}

/* ---------- 4. CTAs that should always have white text.
 * These buttons keep a coloured background in every state and the visited /
 * hover purple bleed-through is unwanted. */
body.body-4 a.cc-btn,
body.body-4 a.cc-btn:visited,
body.body-4 a.cc-btn:hover,
body.body-4 a.cc-plans-btn-primary,
body.body-4 a.cc-plans-btn-primary:visited,
body.body-4 a.cc-plans-btn-primary:hover,
body.body-4 a.register_link,
body.body-4 a.register_link:visited,
body.body-4 a.register_link:hover {
	color: #fff;
}

/* ---------- 5. f-button-neutral family.
 * Default + visited: white text on dark/red bg.
 * Hover: do NOT override — Webflow inverts these to white-bg / black-text
 * on the .circle-btn / .book_demo variants and we want to keep that. */
body.body-4 a.f-button-neutral,
body.body-4 a.f-button-neutral:visited,
body.body-4 a.f-button-secondary-2,
body.body-4 a.f-button-secondary-2:visited,
body.body-4 a.f-button-neutral-2,
body.body-4 a.f-button-neutral-2:visited,
body.body-4 a.menu_link,
body.body-4 a.menu_link:visited {
	color: #fff;
}

/* ---------- 6. .cc-plans-btn-outline must keep its accent-red text in every
 * state. The :visited pseudo-class neutralizer above sets it to `inherit`
 * (which resolves to the page's default text color and becomes invisible
 * inside the white-pill button). Force the accent here. */
body.body-4 a.cc-plans-btn-outline,
body.body-4 a.cc-plans-btn-outline:visited,
body.body-4 a.cc-plans-btn-outline:focus {
	color: var(--ccp-accent, #c00);
}

/* ---------- 7. Tables: theme/normalize add a 1.5em margin and 12px
 * border-spacing on `table {}`, plus default UA tbody backgrounds in some
 * dark-mode browsers can paint rows white. Force transparent + reset
 * spacing so the .cc-hero-table-card backdrop shows through. */
body.body-4 table,
body.body-4 thead,
body.body-4 tbody,
body.body-4 tfoot,
body.body-4 tr,
body.body-4 th,
body.body-4 td {
	background-color: transparent;
}
body.body-4 .cc-hero-table {
	margin: 0;
	border-spacing: 0;
}
