/* תכלת: WordPress glue. Native block markup in article bodies → the prototype's article blocks (article.css),
   plus the few places where WordPress differs from React (states printed with [hidden], admin bar, plain pages).
   Hand-written; tchelet.css is generated. Loaded on the front end and in the block editor. */

[hidden] { display: none !important; }

/* admin bar: keep the sticky masthead below it */
body.admin-bar .th { top: 32px; }
@media (max-width: 782px) { body.admin-bar .th { top: 46px; } }

/* ---------- article body from blocks (export-content.mjs: boxBlock / content) ---------- */
/* Block-library and layout defaults off: the prototype's article.css sets every margin. */
.ta-body .wp-block-group, .ta-body .wp-block-quote, .ta-body .wp-block-image, .ta-body .wp-block-table { box-sizing: border-box; }
.ta-body :where(.is-layout-flow) > * { margin-block-start: 0; }
.ta-body .ta-sec > p { margin: 0 0 18px; }

/* box titles: paragraph blocks "ta-box__t" / "ta-callout__t" (h3 on the front end, see tch_article_body) */
.ta-body .ta-box__t, .ta-body .ta-callout__t { margin: 0 0 12px; font-family: var(--t-display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--t-ink); }

/* figure: core/image */
.ta-body .wp-block-image.ta-fig { margin: 30px clamp(-80px, -5vw, 0px) 30px; }
.ta-body .wp-block-image.ta-fig img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; vertical-align: bottom; }
.ta-body .wp-block-image.ta-fig figcaption { margin: 0; padding: 10px 8px; font-size: 14px; line-height: inherit; color: var(--t-ink-2); text-align: start; }

/* quote: core/quote, the speaker in <cite> (React: <footer>) */
.ta-body .wp-block-quote.ta-quote { margin: 34px 0; padding: 0; border: 0; }
.ta-body .wp-block-quote.ta-quote p { margin: 0 0 12px; }
.ta-body .wp-block-quote.ta-quote cite { display: block; margin: 0; font-style: normal; font-size: 14px; font-weight: 700; color: var(--t-ink-2); }

/* lines and questions: group + title + core/list */
.ta-body .ta-lines, .ta-body .ta-qs { margin: 28px 0; }
.ta-body .ta-lines ul, .ta-body .ta-qs ul { margin: 0; padding: 0; list-style: none; }

/* steps: group + title + ordered core/list ("<strong>title</strong> text"); the numbered stamps are CSS counters */
.ta-body .ta-steps { margin: 30px 0; }
.ta-body .ta-steps ol { counter-reset: ta-step; margin: 0; padding: 0; list-style: none; }
.ta-body .ta-steps li { counter-increment: ta-step; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; font-size: 17px; line-height: 1.7; color: var(--t-ink-2); }
.ta-body .ta-steps li::before {
  content: counter(ta-step); grid-column: 1; grid-row: 1 / span 2; align-self: start;
  --s: 4px; width: 50px; height: 58px; box-sizing: border-box; padding: var(--s); display: grid; place-items: center;
  background: linear-gradient(var(--t-sea-pale), var(--t-sea-pale)) content-box, var(--t-cobalt);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(farthest-side, #0000 97%, #000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round padding-box;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(farthest-side, #0000 97%, #000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round padding-box;
  font-family: var(--t-display); font-weight: 600; font-size: 22px; line-height: 1; color: var(--t-cobalt); font-variant-numeric: tabular-nums;
  transform: rotate(-4deg);
}
.ta-body .ta-steps li:nth-child(even)::before { transform: rotate(3deg); }
.ta-body .ta-steps li strong { grid-column: 2; grid-row: 1; font-size: 18px; line-height: 30.6px; color: var(--t-ink); }

/* compare: core/table, the title in the figcaption (React: <caption>), first cell of a row = row header */
.ta-body .wp-block-table.ta-compare { margin: 30px 0; display: flex; flex-direction: column; overflow-x: auto; }
.ta-body .wp-block-table.ta-compare figcaption { order: -1; margin: 0; padding: 20px 22px 10px; min-width: 520px; box-sizing: border-box; text-align: start; font-family: var(--t-display); font-weight: 600; font-size: 21px; line-height: 1.7; color: var(--t-ink); }
.ta-body .wp-block-table.ta-compare table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; }
.ta-body .wp-block-table.ta-compare thead { border: 0; }
.ta-body .wp-block-table.ta-compare th, .ta-body .wp-block-table.ta-compare td { border: 0; padding: 12px 22px; text-align: start; vertical-align: top; box-shadow: 0 1px 0 var(--t-sand); }
.ta-body .wp-block-table.ta-compare thead th { font-weight: 700; }
.ta-body .wp-block-table.ta-compare tbody td:first-child { font-weight: 700; }

/* claim: group (message group + verdict paragraph); the round mark's icon per verdict */
.ta-body .ta-claim { margin: 30px 0; }
.ta-body .ta-claim__msg { margin: 0; }
.ta-body .ta-claim__mark::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ta-v) center / contain no-repeat; mask: var(--ta-v) center / contain no-repeat; }
.ta-body .ta-claim__mark, .ta-body .ta-claim__mark.is-depends { --ta-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.730,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z'/%3E%3C/svg%3E"); }
.ta-body .ta-claim__mark.is-yes { --ta-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E"); }
.ta-body .ta-claim__mark.is-part { --ta-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z'/%3E%3C/svg%3E"); }
.ta-body .ta-claim__mark.is-no { --ta-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z'/%3E%3C/svg%3E"); }

/* note: group + title + paragraph */
.ta-body .ta-note { margin: 28px 0; }
.ta-body .ta-note .ta-box__t { font-size: 19px; margin: 0 0 12px; }

/* callout: group + title + intro + core/list + official paragraph; the lemon warning icon is drawn here */
.ta-body .ta-callout { margin: 30px 0; }
.ta-body .ta-callout .ta-callout__t { display: flex; align-items: center; gap: 10px; }
.ta-body .ta-callout .ta-callout__t::before {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2314213d' d='M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z'/%3E%3C/svg%3E") center / 22px no-repeat, var(--t-lemon);
}
.ta-body .ta-callout > p:not(.ta-callout__t) { margin: 0 0 10px; }
.ta-body .ta-callout ul { margin: 0 0 14px; }
.ta-body .ta-callout__official a[target="_blank"]::after { content: ' (נפתח בחלון חדש)'; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .ta-body .wp-block-image.ta-fig { margin-inline: 0; }
}

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