/*
 * Shared islimi patterns and box tones (design/approved/01-design-system spec 5), unscoped so the home page boxes,
 * the «ظاهر سایت» preview and the panel thumbnails use the same rules as the inner pages.
 * Copied from config/static/themes/garden/inner.css (generated from the approved design); colours are palette
 * variables, so the pattern follows the active palette. --isl is the strength (.06 to .14).
 */
.isl{position:relative;isolation:isolate}
.isl::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:var(--isl-c,var(--p-action));opacity:var(--isl-o,var(--isl));
 -webkit-mask-image:var(--isl-tile),radial-gradient(130% 100% at 50% 45%,#0000008C 20%,#000 78%);
 mask-image:var(--isl-tile),radial-gradient(130% 100% at 50% 45%,#0000008C 20%,#000 78%);
 -webkit-mask-size:var(--isl-size,150px) var(--isl-size,150px),100% 100%;mask-size:var(--isl-size,150px) var(--isl-size,150px),100% 100%;
 -webkit-mask-repeat:repeat,no-repeat;mask-repeat:repeat,no-repeat;
 -webkit-mask-composite:source-in;mask-composite:intersect}
.isl-a{--isl-tile:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 0C60 16 44 22 30 30C16 38 0 44 0 60'/%3E%3Cpath d='M60 0C60 16 76 22 90 30C104 38 120 44 120 60'/%3E%3Cpath d='M60 120C60 104 44 98 30 90C16 82 0 76 0 60'/%3E%3Cpath d='M60 120C60 104 76 98 90 90C104 82 120 76 120 60'/%3E%3Cpath transform='rotate(0 60 0)' d='M60 0C56 5 57 9 60 12C63 9 64 5 60 0Z'/%3E%3Cpath transform='rotate(180 60 120)' d='M60 120C56 125 57 129 60 132C63 129 64 125 60 120Z'/%3E%3Cpath transform='rotate(-90 0 60)' d='M0 60C-4 65 -3 69 0 72C3 69 4 65 0 60Z'/%3E%3Cpath transform='rotate(90 120 60)' d='M120 60C116 65 117 69 120 72C123 69 124 65 120 60Z'/%3E%3Cg transform='rotate(0 60 60)'%3E%3Cpath d='M60 50C54 44 55 36 60 29C65 36 66 44 60 50Z'/%3E%3Cpath d='M60 29C60 21 67 17 72 21C76 25 72 30 68 28C66 27 67 24 69 24'/%3E%3C/g%3E%3Cg transform='rotate(90 60 60)'%3E%3Cpath d='M60 50C54 44 55 36 60 29C65 36 66 44 60 50Z'/%3E%3Cpath d='M60 29C60 21 67 17 72 21C76 25 72 30 68 28C66 27 67 24 69 24'/%3E%3C/g%3E%3Cg transform='rotate(180 60 60)'%3E%3Cpath d='M60 50C54 44 55 36 60 29C65 36 66 44 60 50Z'/%3E%3Cpath d='M60 29C60 21 67 17 72 21C76 25 72 30 68 28C66 27 67 24 69 24'/%3E%3C/g%3E%3Cg transform='rotate(270 60 60)'%3E%3Cpath d='M60 50C54 44 55 36 60 29C65 36 66 44 60 50Z'/%3E%3Cpath d='M60 29C60 21 67 17 72 21C76 25 72 30 68 28C66 27 67 24 69 24'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='2.4'/%3E%3C/g%3E%3C/svg%3E");--isl-size:150px}
.isl-b{--isl-tile:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 37 L64.78 48.45 L76.26 43.74 L71.55 55.22 L83 60 L71.55 64.78 L76.26 76.26 L64.78 71.55 L60 83 L55.22 71.55 L43.74 76.26 L48.45 64.78 L37 60 L48.45 55.22 L43.74 43.74 L55.22 48.45Z'/%3E%3Ccircle cx='60' cy='60' r='5.5'/%3E%3Cpath d='M60 37L60 0'/%3E%3Cpath d='M76.26 43.74L120 0'/%3E%3Cpath d='M83 60L120 60'/%3E%3Cpath d='M76.26 76.26L120 120'/%3E%3Cpath d='M60 83L60 120'/%3E%3Cpath d='M43.74 76.26L0 120'/%3E%3Cpath d='M37 60L0 60'/%3E%3Cpath d='M43.74 43.74L-0 0'/%3E%3Cpath d='M60 -7L67 0L60 7L53 0Z'/%3E%3Cpath d='M60 113L67 120L60 127L53 120Z'/%3E%3Cpath d='M0 53L7 60L0 67L-7 60Z'/%3E%3Cpath d='M120 53L127 60L120 67L113 60Z'/%3E%3Cpath transform='rotate(45 0 0)' d='M9 0C12 -3.5 17 -3.5 20 0C17 3.5 12 3.5 9 0Z'/%3E%3Cpath transform='rotate(135 0 0)' d='M9 0C12 -3.5 17 -3.5 20 0C17 3.5 12 3.5 9 0Z'/%3E%3Cpath transform='rotate(225 0 0)' d='M9 0C12 -3.5 17 -3.5 20 0C17 3.5 12 3.5 9 0Z'/%3E%3Cpath transform='rotate(315 0 0)' d='M9 0C12 -3.5 17 -3.5 20 0C17 3.5 12 3.5 9 0Z'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Cpath transform='rotate(45 120 0)' d='M129 0C132 -3.5 137 -3.5 140 0C137 3.5 132 3.5 129 0Z'/%3E%3Cpath transform='rotate(135 120 0)' d='M129 0C132 -3.5 137 -3.5 140 0C137 3.5 132 3.5 129 0Z'/%3E%3Cpath transform='rotate(225 120 0)' d='M129 0C132 -3.5 137 -3.5 140 0C137 3.5 132 3.5 129 0Z'/%3E%3Cpath transform='rotate(315 120 0)' d='M129 0C132 -3.5 137 -3.5 140 0C137 3.5 132 3.5 129 0Z'/%3E%3Ccircle cx='120' cy='0' r='3'/%3E%3Cpath transform='rotate(45 0 120)' d='M9 120C12 116.5 17 116.5 20 120C17 123.5 12 123.5 9 120Z'/%3E%3Cpath transform='rotate(135 0 120)' d='M9 120C12 116.5 17 116.5 20 120C17 123.5 12 123.5 9 120Z'/%3E%3Cpath transform='rotate(225 0 120)' d='M9 120C12 116.5 17 116.5 20 120C17 123.5 12 123.5 9 120Z'/%3E%3Cpath transform='rotate(315 0 120)' d='M9 120C12 116.5 17 116.5 20 120C17 123.5 12 123.5 9 120Z'/%3E%3Ccircle cx='0' cy='120' r='3'/%3E%3Cpath transform='rotate(45 120 120)' d='M129 120C132 116.5 137 116.5 140 120C137 123.5 132 123.5 129 120Z'/%3E%3Cpath transform='rotate(135 120 120)' d='M129 120C132 116.5 137 116.5 140 120C137 123.5 132 123.5 129 120Z'/%3E%3Cpath transform='rotate(225 120 120)' d='M129 120C132 116.5 137 116.5 140 120C137 123.5 132 123.5 129 120Z'/%3E%3Cpath transform='rotate(315 120 120)' d='M129 120C132 116.5 137 116.5 140 120C137 123.5 132 123.5 129 120Z'/%3E%3Ccircle cx='120' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E");--isl-size:132px}
.isl-c{--isl-tile:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 100C50 30 150 170 200 100'/%3E%3Cpath d='M25.5 81.2C40 70 58 12 88 12A26 26 0 0 1 114 38A23 23 0 0 1 88 61A20 20 0 0 1 68 40A16 16 0 0 1 88 24A12 12 0 0 1 100 37A9 9 0 0 1 90 46'/%3E%3Cpath d='M174.5 118.8C160 130 142 188 112 188A26 26 0 0 1 86 162A23 23 0 0 1 112 139A20 20 0 0 1 132 160A16 16 0 0 1 112 176A12 12 0 0 1 100 163A9 9 0 0 1 110 154'/%3E%3Ccircle cx='90' cy='46' r='1.8'/%3E%3Ccircle cx='110' cy='154' r='1.8'/%3E%3Cpath transform='rotate(-115 47 52)' d='M47 52C51.8 46.5 58.2 46.5 63 52C58.2 57.5 51.8 57.5 47 52Z'/%3E%3Cpath transform='rotate(-40 120 24)' d='M120 24C124.2 19 129.8 19 134 24C129.8 29 124.2 29 120 24Z'/%3E%3Cpath transform='rotate(65 153 148)' d='M153 148C157.8 142.5 164.2 142.5 169 148C164.2 153.5 157.8 153.5 153 148Z'/%3E%3Cpath transform='rotate(140 80 176)' d='M80 176C84.2 171 89.8 171 94 176C89.8 181 84.2 181 80 176Z'/%3E%3Cpath d='M100 100C92 92 92 82 100 76C108 82 108 92 100 100Z'/%3E%3Cpath d='M100 100C108 108 108 118 100 124C92 118 92 108 100 100Z'/%3E%3Cpath transform='rotate(20 150 106)' d='M150 106C153.9 101.5 159.1 101.5 163 106C159.1 110.5 153.9 110.5 150 106Z'/%3E%3Cpath transform='rotate(200 50 94)' d='M50 94C53.9 89.5 59.1 89.5 63 94C59.1 98.5 53.9 98.5 50 94Z'/%3E%3Cpath transform='rotate(-60 178 104)' d='M178 104C181.3 100 185.7 100 189 104C185.7 108 181.3 108 178 104Z'/%3E%3Cpath transform='rotate(120 22 96)' d='M22 96C25.3 92 29.7 92 33 96C29.7 100 25.3 100 22 96Z'/%3E%3C/g%3E%3C/svg%3E");--isl-size:250px}
.isl-none::before{display:none}
.tone-white{background:#FFFFFF}
.tone-white.isl{--isl-o:calc(var(--isl) * .75)}
.tone-light{background:linear-gradient(170deg,var(--p-bg-hi) 0%,var(--p-bg) 46%,var(--p-bg-lo) 100%)}
.tone-sage{background:linear-gradient(170deg,var(--p-sage-hi) 0%,var(--p-sage) 100%);--isl-c:var(--p-deep)}
.tone-sage.isl{--isl-o:calc(var(--isl) * 1.15)}
.tone-deep{background:linear-gradient(170deg,color-mix(in srgb,var(--p-deep) 88%,#FFFFFF) 0%,var(--p-deep) 60%);color:var(--p-deep-text);--isl-c:var(--p-deep-text)}
.tone-deep.isl{--isl-o:calc(var(--isl) * .8)}
.isl-s1{--isl:.06}
.isl-s2{--isl:.10}
.isl-s3{--isl:.14}
