/* CompareThem theme: site chrome and page sections. Product, category and
   price components are styled by CompareThem Core's own stylesheet. */

:root {
	--ct-ink: var(--wp--preset--color--ink, #101828);
	--ct-text: var(--wp--preset--color--text, #344054);
	--ct-muted: var(--wp--preset--color--muted, #475467);
	--ct-line: var(--wp--preset--color--line, #D9DEE5);
	--ct-bg: var(--wp--preset--color--canvas, #F4F5F7);
	--ct-blue: var(--wp--preset--color--blue, #1D4ED8);
	--ct-blue-dark: var(--wp--preset--color--blue-dark, #1E3A8A);
	--ct-blue-soft: var(--wp--preset--color--blue-soft, #EAF0FF);
	--ct-amber: var(--wp--preset--color--amber, #F59E0B);
	--ct-font-head: var(--wp--preset--font-family--heading);
	--ct-font-mono: var(--wp--preset--font-family--mono);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid var(--ct-amber);
	outline-offset: 2px;
}
img { height: auto; max-width: 100%; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .ct-main { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Top bar and header ------------------------------------------------ */
.ct-topbar { background: var(--ct-ink); color: #E6EAF0; font-size: 13px; }
.ct-topbar__inner { gap: 4px 24px; padding: 8px 0; }
.ct-topbar__inner > p { margin: 0; }
.ct-header { background: #fff; border-bottom: 1px solid var(--ct-line); }
.ct-header__inner { gap: 12px 32px; padding: 14px 0; min-height: 44px; }
.ct-header .ct-logo { flex: none; }
.ct-nav { flex: 1 1 auto; }
.ct-nav .wp-block-navigation__container { gap: 0 22px; }
.ct-nav .wp-block-navigation-item__content { padding: 11px 0; color: var(--ct-ink); text-decoration: none; }
.ct-nav .wp-block-navigation-item__content:hover { color: var(--ct-blue); }
.ct-nav .current-menu-item > .wp-block-navigation-item__content,
.ct-nav [aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ct-ink); }
.ct-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--ct-line); border-radius: 8px; }
.ct-header__search { flex: none; }
.ct-header__search .wp-block-search__inside-wrapper { border-radius: 8px; }
.ct-header__search .wp-block-search__button { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 8px; background: var(--ct-ink); }
.ct-header__search .wp-block-search__button svg { fill: #fff; }
.ct-header__search .wp-block-search__input { min-height: 44px; border: 1px solid var(--ct-line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; }
.ct-header__search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; padding: 0; }
@media (max-width: 600px) {
	.ct-topbar__stores { display: none !important; }
	.ct-logo { font-size: 22px; }
	.ct-logo__mark { width: 34px; height: 34px; }
	.ct-header__inner { gap: 10px; }
	.ct-nav { flex: 0 0 auto; order: 3; }
	.ct-header__search { order: 2; margin-left: auto; }
}

/* Main ----------------------------------------------------------- */
.ct-main { padding-top: 20px; padding-bottom: 64px; }
.ct-main--home { padding-top: 0; padding-bottom: 0; }
.ct-main--page { padding-top: 32px; }
.ct-page-title { margin: 0 0 16px; font-size: var(--wp--preset--font-size--x-large); }
.ct-main--page .wp-block-post-content { font-size: 17px; color: var(--ct-ink); }
.ct-main--page .wp-block-post-content > * + * { margin-block-start: 1em; }

/* Home: hero --------------------------------------------------------- */
.ct-hero { background: #fff; border-bottom: 1px solid var(--ct-line); padding-top: 64px; padding-bottom: 72px; }
.ct-hero__inner { gap: 48px; align-items: center; }
.ct-hero__text { flex: 1 1 520px; min-width: 0; }
.ct-hero__card { flex: 1 1 400px; min-width: 0; max-width: 520px; }
.ct-hero__card:empty, .ct-hero__card:not(:has(.ct-block)) { display: none; }
.ct-eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ct-muted); }
.ct-hero__title { margin: 0 0 20px; font-size: var(--wp--preset--font-size--huge); line-height: 1.05; letter-spacing: -0.03em; }
.ct-hero__lead { margin: 0 0 32px; font-size: 19px; color: var(--ct-muted); max-width: 560px; }
@media (max-width: 600px) {
	.ct-hero { padding-top: 36px; padding-bottom: 40px; }
	.ct-hero__lead { font-size: 17px; margin-bottom: 24px; }
	.ct-hero__inner { gap: 28px; }
}

/* Home: sections ---------------------------------------------------- */
.ct-section { padding-top: 56px; }
.ct-section--last { padding-bottom: 64px; }
.ct-section--needs-block:not(:has(.ct-block)) { display: none; }
.ct-section__title { margin: 0 0 20px; font-size: clamp(24px, 3vw, 30px); }
.ct-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ct-steps > * { margin: 0 !important; }
.ct-step { padding: 22px; border-top: 3px solid var(--ct-ink); background: #fff; border-radius: 0 0 12px 12px; }
.ct-step--accent { border-top-color: var(--ct-blue); }
.ct-step > * { margin: 0; }
.ct-step__n { font-family: var(--ct-font-mono); font-weight: 600; color: var(--ct-muted); }
.ct-step__title { margin: 8px 0 6px !important; font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.ct-step p:not(.ct-step__n) { color: var(--ct-muted); }
.ct-band { margin-top: 56px; background: var(--ct-ink); color: #fff; padding-top: 56px; padding-bottom: 56px; }
.ct-band__inner { gap: 24px 32px; }
.ct-band__text { flex: 1 1 520px; min-width: 0; }
.ct-band__title { margin: 0 0 12px; color: #fff; font-size: clamp(26px, 3.4vw, 34px); }
.ct-band__text p { margin: 0; font-size: 18px; color: #D0D5DD; max-width: 600px; }
.ct-band__buttons { gap: 12px; }
.ct-btn-amber .wp-block-button__link { background: var(--ct-amber); color: var(--ct-ink); font-weight: 700; padding: 15px 24px; border-radius: 10px; }
.ct-btn-amber .wp-block-button__link:hover { background: #FBBF24; color: var(--ct-ink); }
.ct-btn-line .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #667085; padding: 14px 22px; border-radius: 10px; }
.ct-btn-line .wp-block-button__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.ct-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ct-trust > * { margin: 0 !important; }
.ct-trust__item { padding-left: 16px; border-left: 3px solid var(--ct-line); }
.ct-trust__title { margin: 0 0 4px; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.ct-trust__item p { margin: 0; color: var(--ct-muted); font-size: 15px; }

/* Lists of posts (search, archives) --------------------------------- */
.ct-list .wp-block-post-template { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-list__item { padding: 16px 18px; background: #fff; border: 1px solid var(--ct-line); border-radius: 12px; }
.ct-list__item .wp-block-post-title { margin: 0 0 4px; font-family: inherit; font-weight: 600; letter-spacing: 0; }
.ct-list__item .wp-block-post-title a { color: var(--ct-ink); text-decoration: none; }
.ct-list__item .wp-block-post-title a:hover { color: var(--ct-blue); text-decoration: underline; }
.ct-list__item .wp-block-post-excerpt { margin: 0; color: var(--ct-muted); }
.ct-list__item .wp-block-post-excerpt__excerpt { margin: 0; }
.ct-post-meta { color: var(--ct-muted); font-size: 14px; gap: 12px; }

/* Footer ---------------------------------------------------------- */
.ct-site-footer { margin-top: auto; }
.ct-footer { background: #fff; border-top: 1px solid var(--ct-line); }
.ct-footer__cols { gap: 32px 64px; padding: 40px 0 24px; }
.ct-footer__brand { flex: 1 1 280px; min-width: 0; }
.ct-footer__brand .ct-logo { font-size: 22px; }
.ct-footer__about { margin: 8px 0 0; color: var(--ct-muted); font-size: 15px; max-width: 340px; }
.ct-footer__bottom { padding: 16px 0 32px; border-top: 1px solid #E4E7EC; font-size: 13px; color: var(--ct-muted); }
.ct-footer__bottom > * { margin: 0 0 4px; }
.ct-footer__copy { margin: 0; }

/* Search block elsewhere ------------------------------------------- */
.wp-block-search__input { border-radius: 8px; border-color: #98A2B3; min-height: 44px; }
.wp-block-search__button { border-radius: 8px; }
