/* אופק: WordPress glue. Native block markup in article bodies → the prototype's article styles (article.css),
   plus the few places where PHP markup differs from React (icons wrapped in spans, admin bar, plain pages).
   Hand-written; ofek.css is generated. */

[hidden] { display: none !important; }

/* admin bar: keep the sticky masthead below it */
body.admin-bar .oh { top: 32px; }
body.admin-bar .oa-progress { top: calc(var(--o-header) + 32px); }
@media (max-width: 782px) { body.admin-bar .oh { top: 46px; } body.admin-bar .oa-progress { top: calc(var(--o-header) + 46px); } }

/* icons printed inside spans */
.osx__arrow { display: inline-flex; transition: transform 0.5s var(--o-ease); }
.og__icon > span, .otm-btn > span[data-icon], .otk__pause > span, .oh-mob > span { display: inline-flex; }
.oab-method__table th svg { display: inline-block; }

/* ---------- article body from blocks ---------- */
.oa-body .wp-block-group { margin: 0; }
.oa-body .wp-block-group__inner-container > * { margin-block: 0; }
.oa-body .oa-sec > .wp-block-group__inner-container > p, .oa-body .oa-sec > p { margin: 0 0 1.1em; }
.oa-body .oa-sec h2.wp-block-heading { margin: 0 0 16px; font-size: clamp(34px, 3vw, 50px); }
.oa-body .oa-sec:first-child p:first-of-type::first-line { font-weight: 650; }
.oa-body .oa-sec > p:first-of-type::first-line { font-weight: inherit; }

.oa-body .wp-block-image.oa-fig { margin: 28px 0; }
.oa-body .wp-block-image.oa-fig img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.oa-body .wp-block-image.oa-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--o-ink-2); text-align: start; }

.oa-body .wp-block-quote.oa-quote { margin: 30px 0; padding-inline-start: 22px; border-inline-start: 4px solid var(--o-accent); border-inline-end: 0; }
.oa-body .wp-block-quote.oa-quote p { margin: 0; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; }
.oa-body .wp-block-quote.oa-quote cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; font-style: normal; color: var(--o-ink-2); }

.oa-body .oa-list__t, .oa-body .oa-note__t { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.oa-body .oa-list ul, .oa-body .oa-callout ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.oa-body .oa-list li::marker { color: var(--o-accent); }
.oa-body .oa-questions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oa-body .oa-questions li { padding: 10px 16px; background: var(--o-stone); border-inline-start: 3px solid var(--o-deep); }
.oa-body .oa-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: oa-step; }
.oa-body .oa-steps li { counter-increment: oa-step; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--o-line); }
.oa-body .oa-steps li::before { content: counter(oa-step, decimal-leading-zero); grid-row: span 2; font-family: var(--o-mono); color: var(--o-accent); font-size: 15px; padding-top: 4px; }
.oa-body .oa-steps li strong { display: block; }

.oa-body .wp-block-table.oa-compare { margin: 26px 0; overflow-x: auto; display: flex; flex-direction: column-reverse; }
.oa-body .wp-block-table.oa-compare table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.oa-body .wp-block-table.oa-compare figcaption { text-align: start; font-weight: 700; font-size: 17px; margin: 0 0 10px; color: var(--o-ink); }
.oa-body .wp-block-table.oa-compare th, .oa-body .wp-block-table.oa-compare td { text-align: start; vertical-align: top; padding: 12px 14px; border: 0; }
.oa-body .wp-block-table.oa-compare thead { border: 0; }
.oa-body .wp-block-table.oa-compare thead th { background: var(--o-deep); color: var(--o-white); font-weight: 650; }
.oa-body .wp-block-table.oa-compare tbody tr:nth-child(even) { background: var(--o-stone); }
.oa-body .wp-block-table.oa-compare tbody td:first-child { font-weight: 650; }

.oa-body .oa-claim p { margin: 0; }
.oa-body .oa-claim .oa-claim__verdict { display: inline-block; }
.oa-body .oa-claim .oa-claim__text { margin: 6px 0 14px; }
.oa-body .oa-claim .oa-claim__why { margin-top: 14px; }
.oa-body .oa-note p { margin: 0; }
.oa-body .oa-note .oa-note__t { margin-bottom: 10px; }
.oa-body .oa-callout .oa-callout__t { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.oa-body .oa-callout p { margin: 0 0 10px; }
.oa-body .oa-callout ul { margin-bottom: 14px; }

.oa-tags a { text-decoration: none; }
.oa-tags a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* plain WordPress pages (page.php) */
.ofk-page { padding-block: clamp(40px, 6vw, 96px); max-width: 900px; }
.ofk-page__title { margin: 0 0 24px; font-size: clamp(48px, 7vw, 110px); }
.ofk-page__body { font-size: 19px; line-height: 1.8; }
