/* News page text — Figma 745:10258. Icon square, then the news text in a narrow centred column; pattern faded at the left. */
.wp-block-post-content > .scico-news-body { margin-block-start: 0; }

.scico-news-body { position: relative; box-sizing: border-box; overflow: hidden; margin-block-start: 0; padding: 8px 96px 104px; background: #fff; }
/* Figma: the left sixth of the pattern, mirrored, 256×456 at the top-left corner. When the column leaves less room
   beside it, the pattern slides off to the left instead of reaching the text. */
/* Brand pattern «rows» (brand-pattern.css, 2026-11-14), continuing the news hero's rows; it also fades out at the bottom. */
.scico-news-body__pattern { top: 0; left: min(0px, calc((100% - var(--news-body-contentWidth, 832px)) / 2 - 272px)); width: 256px; height: 456px; --pattern-row: 200px; }
.scico-news-body__pattern.scico-pattern--rows { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 60%), linear-gradient(to bottom, #000 30%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, transparent 0, #000 60%), linear-gradient(to bottom, #000 30%, transparent 100%); mask-composite: intersect; }
.scico-news-body__inner { position: relative; display: flex; width: min(100%, var(--news-body-contentWidth, 832px)); flex-direction: column; align-items: center; gap: 32px; margin-inline: auto; }

.scico-news-body__icon { display: flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 8px; background: var(--news-body-iconBackground, #f2f2f2); }
.scico-news-body__icon img { display: block; max-width: 24px; max-height: 24px; object-fit: contain; }
.scico-news-body__icon img.is-flipped { transform: scaleY(-1); }

/* The news text: whatever blocks the editor put inside. */
.scico-news-body__text { width: 100%; color: var(--news-body-textColor, #4c504a); font-size: var(--news-body-textSize, 18px); font-weight: var(--news-body-textWeight, 500); line-height: 1.85; text-align: center; }
.scico-news-body.is-align-right .scico-news-body__text { text-align: right; }
.scico-news-body.is-align-justify .scico-news-body__text { text-align: justify; text-align-last: right; }
.scico-news-body__text > * { margin-block: 0; }
.scico-news-body__text > * + * { margin-block-start: .9em; }
.scico-news-body__text > :is(h2, h3, h4) + * { margin-block-start: .6em; }
.scico-news-body__text > * + :is(h2, h3, h4) { margin-block-start: 1.6em; }
.scico-news-body__text :is(h2, h3, h4) { color: var(--news-body-headingColor, #1a1a1a); font-weight: 700; line-height: 1.5; }
.scico-news-body__text h2 { font-size: 1.3em; }
.scico-news-body__text h3 { font-size: 1.15em; }
.scico-news-body__text h4 { font-size: 1em; }
.scico-news-body__text a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.scico-news-body__text a:hover { color: var(--news-body-headingColor, #1a1a1a); }
.scico-news-body__text strong { color: var(--news-body-headingColor, #1a1a1a); font-weight: 700; }
.scico-news-body__text :is(ul, ol) { padding-inline-start: 1.4em; text-align: right; }
.scico-news-body__text li + li { margin-block-start: .35em; }
.scico-news-body__text li::marker { font-size: .8em; }
/* Figma (article 363:3300): a quote is a little larger and semibold, beside a line. */
.scico-news-body__text blockquote { margin-inline: 0; padding: 4px 20px; border-inline-start: 3px solid var(--news-body-textColor, #4c504a); color: var(--news-body-headingColor, #1a1a1a); font-size: 1.1em; font-weight: 600; line-height: 1.7; text-align: right; }
.scico-news-body__text blockquote p { margin: 0; }
.scico-news-body__text figure { margin-inline: 0; }
/* Not the pieces of a chart block placed in the text. */
.scico-news-body__text img:not(.scico-decision-timing-wide img) { max-width: 100%; height: auto; border-radius: 8px; }
.scico-news-body__text figcaption { margin-top: 8px; color: #767676; font-size: .8em; font-weight: 400; text-align: center; }
/* Figma 713:4649: a table of separate rounded cells, dark header, grey cells; the first column takes the spare width.
   The 12px spacing also runs round the outside, so the figure reaches 12px past the text to keep the cells flush.
   A chart (the «area» chart block) or a photo in the text gets more room than a paragraph (Figma 363:3305). */
.scico-news-body__text > * + :is(.wp-block-image, .scico-decision-timing-wide),
.scico-news-body__text > :is(.wp-block-image, .scico-decision-timing-wide) + * { margin-block-start: 2.4em; }
.scico-news-body__text .wp-block-table { overflow-x: auto; margin-inline: -12px; }
.scico-news-body__text > * + .wp-block-table { margin-block-start: calc(1.6em - 12px); }
.scico-news-body__text > .wp-block-table + * { margin-block-start: calc(1.6em - 12px); }
.scico-news-body__text .wp-block-table table { width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 12px; }
.scico-news-body__text .wp-block-table :is(thead, tfoot) { border: 0; }
.scico-news-body__text .wp-block-table :is(th, td) { width: 1%; padding: 12px 24px; border: 0; border-radius: 12px; background: var(--news-body-tableCell, #f3efe5); color: var(--news-body-headingColor, #1a1a1a); font-weight: 600; line-height: 1.6; text-align: center; white-space: nowrap; }
.scico-news-body__text .wp-block-table thead :is(th, td) { padding-block: 10px; background: var(--news-body-tableHead, #4c504a); color: var(--news-body-tableHeadText, #fff); }
.scico-news-body__text .wp-block-table :is(th, td):first-child { width: auto; text-align: right; white-space: normal; }
.scico-news-body__text .wp-block-table figcaption { margin-top: 0; }

/* Below 1024px almost nothing of it would show. */
@media (max-width: 1023px) {
	.scico-news-body__pattern { display: none; }
}

@media (max-width: 1100px) {
	.scico-news-body { padding: 0 32px 88px; }
}

@media (max-width: 600px) {
	.scico-news-body { padding: 0 16px 64px; }
	.scico-news-body__inner { gap: 24px; }
	.scico-news-body__text { font-size: min(var(--news-body-textSize, 18px), 16px); line-height: 1.9; }
	.scico-news-body__text .wp-block-table { margin-inline: -6px; }
	.scico-news-body__text .wp-block-table table { border-spacing: 6px; }
	.scico-news-body__text .wp-block-table :is(th, td) { padding: 10px 12px; font-size: .9em; }
	.scico-news-body__text > * + .wp-block-table,
	.scico-news-body__text > .wp-block-table + * { margin-block-start: calc(1.6em - 6px); }
}
