/* Theme resets + editor tweaks for the cmp_* blocks. compare-blocks.css is generated; this file is not. */
/* Theme leakage resets at low specificity (.cmpb X = 0,1,1): they beat the theme's bare-element rules but every
   design rule (.cmpb.cmpb …, 0,2,1 and up) still wins, so design letter-spacing / line-height / font stay intact. */
.cmpb h1,.cmpb h2,.cmpb h3,.cmpb h4,.cmpb p,.cmpb li,.cmpb td,.cmpb th,.cmpb summary,.cmpb blockquote,.cmpb button{font-family:inherit;text-transform:none}
.cmpb th,.cmpb td{font-size:inherit;line-height:inherit}
.cmpb h1,.cmpb h2,.cmpb h3,.cmpb h4,.cmpb summary{line-height:inherit}
.cmpb button{line-height:normal}
/* Front end only: a Section's inner blocks join the section's own layout (e.g. .intro-body's 18px gap) as in
   the design. The editor keeps the wrapper (InnerBlocks needs it); .cmpb-page exists only on the site template. */
.cmpb-page .cmpb .sec-body{display:contents}
/* Section option "Table tools beside the heading" (site only): the design's .table-head — heading block left, the
   first table's tools (tab bar + Datarails toggle) right, wrapping under the heading (24px) when there's no room,
   then 32px to the table. The table root joins the section's flex layout via display:contents. Applied only when
   the first inner block really is a table with tools (:has guard); otherwise the section keeps its normal layout. */
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)){display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;column-gap:24px}
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > *,.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-body > *,.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-body > .cmpb-table:first-child > *{flex:0 0 100%;min-width:0}
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-head{flex:1 1 420px;margin-bottom:32px}
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-head .sec-intro{font-size:15px;color:var(--muted);margin-top:12px;max-width:none}
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-body > .cmpb-table:first-child{display:contents}
.cmpb-page .cmpb.sec-tools-beside:has(> .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar)) > .sec-body > .cmpb-table:first-child > :is(.glance-tools,.dr-bar){flex:1 1 420px;margin:-8px 0 32px} /* as .table-head > div */
.cmpb.cmpb table{border:0;margin:0}
.cmpb.cmpb th,.cmpb.cmpb td{border-left:0;border-right:0;border-top:0}
.cmpb.cmpb blockquote{border:0;quotes:none;padding:0}
.cmpb.cmpb blockquote::before,.cmpb.cmpb blockquote::after{content:none}
.cmpb.cmpb a{box-shadow:none}
/* numbered steps: an ordered list inside a Section gets the design's .steps-plain look (native
   markers coloured via ::marker, so the list keeps list-style:decimal — a list-style:none reset
   here would hide the numbers) */
.cmpb.cmpb .sec-body > ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.65;max-width:720px}
.cmpb.cmpb .sec-body > ol li{padding-left:6px}
.cmpb.cmpb .sec-body > ol li::marker{color:var(--pink-text);font-weight:600}
/* editor: blocks render one by one, not inside .layout */
.editor-styles-wrapper .cmpb.cmpb{max-width:860px;margin-inline:auto}
.editor-styles-wrapper .cmpb.cmpb [hidden]{display:block!important}
/* Status "ok" (table block select value) styles like the source's .st.yes */
.cmpb.cmpb .st.ok circle{fill:var(--ink)}
.cmpb.cmpb .st.ok path{stroke:var(--bg);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* Fit quiz: step stays right without a label; result text/CTA sit in .res-next */
.cmpb.cmpb .quiz-step{margin-left:auto}
.cmpb.cmpb .res-next .res-text{margin:0 0 8px}
/* Editor-only notice (e.g. a second fit quiz) */
.cmpb.cmpb-note,.cmpb.cmpb .cmpb-note{padding:12px 16px;border:1px dashed #c3c4c7;border-radius:8px;font-size:13px;color:#50575e}
/* Editor-only placeholder for an empty block (dr_cmpb_placeholder()); never printed on the site */
.cmpb.cmpb-empty{padding:10px 14px;border:1px dashed #dcdcde;border-radius:8px;background:#f6f7f7;font-size:13px;line-height:1.4;color:#8c8f94}
/* Breathing room between the last section and the site footer (the design ends at the page edge). */
.cmpb.cmpb-page{padding-bottom:96px}
@media (max-width:640px){.cmpb.cmpb-page{padding-bottom:64px}}
