/*
 * WordPress glue for yetziot.css: core block output inside the article body, markup that differs from the React
 * prototype (icon wrappers, pre-rendered states), the default page template. Hand-written.
 */

/* icon wrappers that rotate (React put the class on the svg) */
.rq__caret { display: inline-flex; margin-top: 8px; transition: transform 0.3s var(--y-ease); }
.rq__item[open] .rq__caret { transform: rotate(180deg); }
.mh__menu span, .bd__pager button span { display: inline-flex; }
.at-fix__toggle svg { transition: transform 0.3s var(--y-ease); }
.at-fix__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }

/* ---- article body: core blocks carrying the prototype classes ---- */
.at-body .wp-block-group, .at-body .wp-block-image, .at-body .wp-block-quote, .at-body .wp-block-table { box-sizing: border-box; }
.at-body .wp-block-heading { font-family: var(--y-display); font-weight: 700; line-height: 0.92; }
.at-body .wp-block-list { margin: 0; }
.at-body .wp-block-image img { height: auto; }
.at-body .wp-element-caption { font-size: 13px; color: var(--y-ink-2); margin: 8px 0 0; line-height: 1.5; text-align: start; }
.at-fig img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.at-quote { border-top: 0; border-bottom: 0; }
.at-quote p { font-family: var(--y-display); font-weight: 700; }
.at-callout > p:first-child { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.at-list ul, .at-list ol { margin: 0; padding: 0; list-style: none; }

/* steps: a numbered list whose items read "<strong>title</strong> text" */
.at-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: yz-step; }
.at-steps li { display: block; position: relative; padding: 14px 0; padding-inline-start: 68px; border-bottom: var(--y-rule); font-size: 17px; line-height: 1.6; counter-increment: yz-step; }
.at-steps li::before { content: counter(yz-step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 12px; font-family: var(--y-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--y-ink-2); }
.at-steps li strong { display: block; font-weight: 500; }

/* compare: Table block = figure > table + figcaption */
.at-compare figcaption { order: -1; font-weight: 500; font-size: 16px; color: var(--y-ink); margin: 0 0 8px; }
.at-compare { display: flex; flex-direction: column; }
.at-compare table { border: 0; }
.at-compare td, .at-compare th { border: 0; border-bottom: var(--y-rule); }
.at-compare thead { border: 0; }
.at-compare tbody td:first-child { font-weight: 500; }

/* claim box: verdict paragraph sits inline */
.at-claim__verdict { width: fit-content; }

/* ---- default page template ---- */
.yz-page { padding-block: 72px 96px; max-width: 900px; }
.yz-page__title { font-size: clamp(64px, 8vw, 128px); margin: 0 0 24px; }
.yz-page__body > * + * { margin-top: 1em; }

/* Elementor sections keep the design's container width */
.elementor .y-wrap { max-width: var(--y-max); }
