/* Comquat brush strokes: bold splashes of the brand colours across the apps.
   Approved by Neil, 30 November 2026. Decorative: nothing here carries meaning,
   it sits behind the content so text keeps its contrast, and it switches off
   when the page is printed. */
:root{
  --brush-orange:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M6 30C80 10 170 36 260 20S430 6 594 22L590 42C470 54 360 38 250 50S70 56 10 48Z' fill='%23FF8A1F'/%3E%3Cpath d='M30 20C140 10 260 18 380 12' stroke='%23FFC27F' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M120 50C240 44 380 48 520 42' stroke='%23E2650B' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M560 24C575 26 588 30 598 36' stroke='%23FF8A1F' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --brush-green:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M4 34C120 16 220 40 330 24S500 12 596 26L592 44C480 52 380 38 270 52S90 56 8 50Z' fill='%233E9A5F'/%3E%3Cpath d='M60 24C200 16 330 22 470 18' stroke='%2385D19C' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --brush-splash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cpath d='M40 210C70 140 130 90 210 60C240 50 270 58 262 80C250 112 190 130 150 170S90 250 60 250C38 250 30 232 40 210Z' fill='%23FF8A1F'/%3E%3Cpath d='M120 250C160 210 220 190 270 196C286 198 290 214 276 222C240 242 190 246 140 262C118 268 106 262 120 250Z' fill='%233E9A5F'/%3E%3Cpath d='M70 120C100 96 140 80 170 76' stroke='%23E2650B' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M180 40C200 30 226 26 246 30' stroke='%233E9A5F' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='238' cy='120' r='9' fill='%23FF8A1F'/%3E%3Ccircle cx='258' cy='142' r='5' fill='%233E9A5F'/%3E%3Ccircle cx='28' cy='270' r='6' fill='%23E2650B'/%3E%3C/svg%3E");
  --brush-flick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M4 46C70 30 150 16 296 6C230 22 150 40 10 56Z' fill='%23FF8A1F'/%3E%3C/svg%3E");
  --brush-dab:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath d='M10 30C10 12 40 6 66 8S116 14 112 32 80 56 52 54 10 48 10 30Z' fill='%233E9A5F'/%3E%3Cpath d='M26 22C46 16 70 16 92 22' stroke='%2385D19C' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --brush-swish:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M6 70C40 20 120 2 194 14C130 18 60 40 18 76Z' fill='%23E2650B'/%3E%3Cpath d='M40 52C80 28 120 20 160 18' stroke='%23FFC27F' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --brush-splat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Ccircle cx='20' cy='30' r='12' fill='%23FF8A1F'/%3E%3Ccircle cx='48' cy='20' r='6' fill='%233E9A5F'/%3E%3Ccircle cx='66' cy='40' r='8' fill='%23FF8A1F'/%3E%3Ccircle cx='90' cy='24' r='4' fill='%23E2650B'/%3E%3Ccircle cx='106' cy='44' r='5' fill='%233E9A5F'/%3E%3C/svg%3E");
}

/* A big painted sweep under the top bar, orange over green. */
header.top,.cqh{position:relative}
header.top::after,.cqh::after{content:"";position:absolute;left:0;right:0;bottom:-16px;height:20px;background:var(--brush-orange) center/100% 100% no-repeat;pointer-events:none;z-index:2}
header.top::before,.cqh::before{content:"";position:absolute;left:8%;right:22%;bottom:-26px;height:12px;background:var(--brush-green) center/100% 100% no-repeat;pointer-events:none;z-index:2}

/* Page headings: the hand-drawn underline becomes a thick orange brush stroke. */
body.fx:not(.lp) main h1::after{background:var(--brush-orange) left center/100% 100% no-repeat;height:22px;width:min(300px,70%);margin:8px 0 6px}

/* Card headings: a fat green swipe of paint behind the words. */
main .card{position:relative;isolation:isolate}
main .card > h2:first-child, main section.card h2{position:relative;z-index:0}
main .card > h2:first-child::before, main section.card .spread > h2::before{content:"";position:absolute;left:-8px;bottom:-2px;width:min(140px,90%);height:16px;background:var(--brush-green) center/100% 100% no-repeat;opacity:.45;z-index:-1;pointer-events:none}

/* Cards: a brush mark in the top corner, painted on the card behind its content. */
main .card::after{content:"";position:absolute;top:6px;right:14px;width:70px;height:11px;background:var(--brush-orange) center/100% 100% no-repeat;pointer-events:none;z-index:-1}
/* Every card gets a different stroke: different shapes, sizes, colours and angles. */
main .card:nth-child(5n+2)::after{left:auto;right:24px;width:120px;height:18px;top:auto;bottom:12px;background-image:var(--brush-green);transform:rotate(-2deg)}
main .card:nth-child(5n+3)::after{right:30px;width:44px;height:20px;top:6px;background-image:var(--brush-dab);transform:rotate(8deg)}
main .card:nth-child(5n+4)::after{right:12px;width:120px;height:12px;top:5px;background-image:var(--brush-flick);transform:rotate(-3deg)}
main .card:nth-child(5n)::after{left:auto;right:14px;width:70px;height:34px;top:4px;background-image:var(--brush-swish);transform:rotate(-10deg)}
main .card:nth-child(7n+6)::before{content:"";position:absolute;left:14px;bottom:10px;width:60px;height:30px;background:var(--brush-splat) center/contain no-repeat;pointer-events:none;z-index:-1}
main .card .card::after, main .card.tint::after, main form.card::after, main .card .card::before{display:none}
/* Card headings vary too. */
main section.card:nth-child(3n+2) .spread > h2::before, main .card:nth-child(3n+2) > h2:first-child::before{background-image:var(--brush-orange);opacity:.32;width:min(180px,95%)}
main section.card:nth-child(3n) .spread > h2::before, main .card:nth-child(3n) > h2:first-child::before{background-image:var(--brush-flick);opacity:.4;width:min(110px,80%);height:12px}

/* Bold splashes of colour in the page corners, behind everything. */
body::after{content:"";position:fixed;right:-60px;bottom:-60px;width:360px;height:360px;background:var(--brush-splash) center/contain no-repeat;opacity:.5;pointer-events:none;z-index:-1}
html::before{content:"";position:fixed;left:-90px;top:110px;width:300px;height:300px;background:var(--brush-splash) center/contain no-repeat;opacity:.32;transform:rotate(160deg);pointer-events:none;z-index:-1}

@media (max-width:640px){html::before{left:-150px;opacity:.22}body::after{right:0;bottom:0;width:160px;height:160px;background-position:0 0;background-size:220px 220px;opacity:.4}main .card::after{width:50px}}
@media print{header.top::after,header.top::before,.cqh::after,.cqh::before,html::before,body::after,main .card::after,main .card > h2:first-child::before,main section.card .spread > h2::before,main .card::before{display:none}}
