/* Brand pattern layers (inc/brand-pattern.php). The outer span is placed by its block and carries the fade;
   the inner span is the colour, masked by the pattern image. */
/* Placement from the block (patternX/Y in px, patternScale): `translate` and `scale` add to any transform the block uses. */
.scico-pattern { position: absolute; display: block; pointer-events: none; opacity: var(--pattern-opacity, .2); translate: var(--pattern-x, 0px) var(--pattern-y, 0px); }
/* Mirror flips the drawing inside the box, so the fade towards the text stays where it is. */
.scico-pattern.is-mirrored .scico-pattern__ink { scale: -1 1; }
/* Phones: half the nudge, so a desktop offset does not push the pattern off the screen. */
@media (max-width: 781px) { .scico-pattern { translate: calc(var(--pattern-x, 0px) * .5) calc(var(--pattern-y, 0px) * .5); } }
.scico-pattern__ink { position: absolute; inset: 0; background: var(--pattern-color, #4c504a);
	-webkit-mask-image: var(--pattern-src); mask-image: var(--pattern-src);
	-webkit-mask-position: var(--pattern-position, left top); mask-position: var(--pattern-position, left top);
	-webkit-mask-size: var(--pattern-size, contain); mask-size: var(--pattern-size, contain);
	-webkit-mask-repeat: var(--pattern-repeat, no-repeat); mask-repeat: var(--pattern-repeat, no-repeat); }

/* Rise: vertical tile from the bottom edge, fading upwards and towards the text on the right. */
.scico-pattern--rise { -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%), linear-gradient(to left, transparent 0, #000 45%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, #000 10%, transparent 90%), linear-gradient(to left, transparent 0, #000 45%); mask-composite: intersect; }
.scico-pattern--rise .scico-pattern__ink { --pattern-position: left bottom; --pattern-size: calc(var(--pattern-tile, 260px) * var(--pattern-scale, 1)) auto; --pattern-repeat: repeat; }

/* Rows: the tile lying down, entering from the left edge and fading before the text. */
.scico-pattern--rows { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 60%); mask-image: linear-gradient(to left, transparent 0, #000 60%); }
.scico-pattern--rows .scico-pattern__ink { --pattern-position: left center; --pattern-size: auto calc(var(--pattern-row, 200px) * var(--pattern-scale, 1)); --pattern-repeat: repeat; }

/* Soft: fades out on all four sides, for a block of rows sitting behind content (no hard rectangular edges). */
.scico-pattern--rows.scico-pattern--soft { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-composite: intersect; }

/* Skylines: the whole stepped shape, cut by the section edge. Size scales the box from its anchored edge. */
.scico-pattern--skyline { scale: var(--pattern-scale, 1); transform-origin: 50% 100%; }
.scico-pattern--skyline-side { scale: var(--pattern-scale, 1); transform-origin: 0 50%; }
.scico-pattern--skyline .scico-pattern__ink, .scico-pattern--skyline-side .scico-pattern__ink { --pattern-position: center; --pattern-size: contain; --pattern-repeat: no-repeat; }
