/* South African look for the Afrikaans pages (generated by afrikaans-build/make_af_css.py; edit there) */
:root{--sa-green:#007a4d;--sa-gold:#ffb612;--sa-red:#de3831;--sa-blue:#002395;--sa-black:#1b1b1b;--protea:#b8456a;--protea-light:#f7d9e2}

/* flag ribbon under the header and above the footer */
.sa-ribbon{position:relative;height:24px;background:linear-gradient(180deg,var(--sa-red) 0 30%,#fff 30% 38%,var(--sa-green) 38% 62%,#fff 62% 70%,var(--sa-blue) 70%)}
.sa-ribbon::before{content:"";position:absolute;left:0;top:0;bottom:0;width:60px;background:var(--sa-gold);clip-path:polygon(0 0,100% 50%,0 100%)}
.sa-ribbon::after{content:"";position:absolute;left:0;top:4px;bottom:4px;width:46px;background:var(--sa-black);clip-path:polygon(0 0,100% 50%,0 100%)}
.topbar{border-bottom:0}
.sa-ribbon.foot{margin-top:40px}
footer{margin-top:0}
.af-tag{font-family:"Bree Serif",Georgia,serif;color:var(--sa-gold);font-size:19px;margin:0 0 4px}
@media (max-width:600px){.sa-ribbon{height:16px}.sa-ribbon::before{width:40px}.sa-ribbon::after{width:30px;top:3px;bottom:3px}}

/* South African photos (in place of the US farm photos) */
.hero{background-image:url("af-hero-farm.jpg");background-position:center 55%}
.page-head,.sf-hero{background-image:url("af-hero-farm.jpg")}
.house-hero{background-image:url("af-hero-welcome.jpg")}
.page-head.outreach-hero{background-image:url("af-hero-outreach.jpg");height:min(calc(100vw / 2.48), 640px);background-position:center 65%}
.page-head,.sf-hero{border-bottom-color:var(--sa-gold)}
@media (max-width:800px){
  .hero,.page-head{background-image:url("af-hero-farm-sm.jpg")}
  .house-hero{background-image:url("af-hero-welcome-sm.jpg");background-position:center 20%}
  .page-head.outreach-hero{background-image:url("af-hero-outreach-sm.jpg");height:calc(100vw * 1.22);padding-bottom:0;background-position:center top}
}

/* "for South African workers" label on the home page */
.sa-pill{display:inline-flex;align-items:center;gap:8px;background:rgb(255 255 255/.92);color:var(--ink);font-weight:800;font-size:14px;border-radius:99px;padding:6px 14px 6px 8px;margin-bottom:14px;border:2px solid var(--sa-gold);text-shadow:none}
.sa-pill svg{width:30px;height:20px;border-radius:3px;flex:none}
@media (max-width:800px){.sa-pill{font-size:12.5px;padding:5px 12px 5px 7px;white-space:nowrap}.sa-pill svg{width:26px;height:17px}}
@media (max-width:340px){.sa-pill{white-space:normal}}

/* four big buttons: green and gold stitching, flag-colour icons */
.big4 a{border-color:var(--sa-green);outline-color:var(--sa-gold)}
.big4 a:nth-child(1) .ic{background:var(--sa-green)!important}
.big4 a:nth-child(2) .ic{background:var(--sa-blue)!important}
.big4 a:nth-child(3) .ic{background:var(--sa-gold)!important;color:var(--sa-black)}
.big4 a:nth-child(4) .ic{background:var(--sa-red)!important}

/* protea on the small section labels */
.eyebrow{color:var(--protea)}
.eyebrow::before{content:"";display:inline-block;width:20px;height:20px;margin-right:7px;vertical-align:-4px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23d4587c' stroke='%238e2648' stroke-width='1'%3E%3Cpath d='M20 34 C10 30 5 20 8 8 C13 14 15 20 20 26 Z'/%3E%3Cpath d='M20 34 C30 30 35 20 32 8 C27 14 25 20 20 26 Z'/%3E%3Cpath d='M20 32 C13 26 12 14 15 4 C18 11 19 18 20 24 Z'/%3E%3Cpath d='M20 32 C27 26 28 14 25 4 C22 11 21 18 20 24 Z'/%3E%3C/g%3E%3Cpath d='M20 30 C16 24 16 16 20 9 C24 16 24 24 20 30 Z' fill='%23fbe3c4' stroke='%23c98a3a' stroke-width='1'/%3E%3Cpath d='M14 35 Q20 38 26 35' stroke='%232f7a3d' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* home page rights section: green band, gold edges, a protea in each corner */
section.sa-band{position:relative;margin-top:40px;padding:56px 0 50px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%28-30 50 50%29'%3E%3Cpath d='M50 96 Q46 80 50 66' stroke='%233f6b2c' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48 84 Q26 86 16 72 Q34 68 48 80Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cpath d='M52 88 Q74 92 86 78 Q66 72 52 84Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cg stroke='%238e2648' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M50 70 C28 66 14 48 18 26 C30 36 38 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 70 C72 66 86 48 82 26 C70 36 62 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 68 C34 58 28 38 32 16 C40 30 46 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 68 C66 58 72 38 68 16 C60 30 54 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 66 C42 52 40 30 44 8 C48 24 50 40 50 52Z' fill='%23f08fab'/%3E%3Cpath d='M50 66 C58 52 60 30 56 8 C52 24 50 40 50 52Z' fill='%23f08fab'/%3E%3C/g%3E%3Cpath d='M50 62 C42 50 42 34 50 20 C58 34 58 50 50 62Z' fill='%23fbe3c4' stroke='%23c98a3a' stroke-width='1.5'/%3E%3Cpath d='M46 30 L54 30 M45 38 L55 38 M45 46 L55 46 M47 54 L53 54' stroke='%23e8b878' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") left -6px top -4px/110px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%2830 50 50%29 translate%28100 0%29 scale%28-1 1%29'%3E%3Cpath d='M50 96 Q46 80 50 66' stroke='%233f6b2c' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48 84 Q26 86 16 72 Q34 68 48 80Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cpath d='M52 88 Q74 92 86 78 Q66 72 52 84Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cg stroke='%238e2648' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M50 70 C28 66 14 48 18 26 C30 36 38 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 70 C72 66 86 48 82 26 C70 36 62 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 68 C34 58 28 38 32 16 C40 30 46 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 68 C66 58 72 38 68 16 C60 30 54 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 66 C42 52 40 30 44 8 C48 24 50 40 50 52Z' fill='%23f08fab'/%3E%3Cpath d='M50 66 C58 52 60 30 56 8 C52 24 50 40 50 52Z' fill='%23f08fab'/%3E%3C/g%3E%3Cpath d='M50 62 C42 50 42 34 50 20 C58 34 58 50 50 62Z' fill='%23fbe3c4' stroke='%23c98a3a' stroke-width='1.5'/%3E%3Cpath d='M46 30 L54 30 M45 38 L55 38 M45 46 L55 46 M47 54 L53 54' stroke='%23e8b878' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") right -6px top -4px/110px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%28-150 50 50%29 translate%28100 0%29 scale%28-1 1%29'%3E%3Cpath d='M50 96 Q46 80 50 66' stroke='%233f6b2c' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48 84 Q26 86 16 72 Q34 68 48 80Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cpath d='M52 88 Q74 92 86 78 Q66 72 52 84Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cg stroke='%238e2648' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M50 70 C28 66 14 48 18 26 C30 36 38 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 70 C72 66 86 48 82 26 C70 36 62 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 68 C34 58 28 38 32 16 C40 30 46 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 68 C66 58 72 38 68 16 C60 30 54 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 66 C42 52 40 30 44 8 C48 24 50 40 50 52Z' fill='%23f08fab'/%3E%3Cpath d='M50 66 C58 52 60 30 56 8 C52 24 50 40 50 52Z' fill='%23f08fab'/%3E%3C/g%3E%3Cpath d='M50 62 C42 50 42 34 50 20 C58 34 58 50 50 62Z' fill='%23fbe3c4' stroke='%23c98a3a' stroke-width='1.5'/%3E%3Cpath d='M46 30 L54 30 M45 38 L55 38 M45 46 L55 46 M47 54 L53 54' stroke='%23e8b878' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") left -6px bottom -4px/110px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%28150 50 50%29'%3E%3Cpath d='M50 96 Q46 80 50 66' stroke='%233f6b2c' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48 84 Q26 86 16 72 Q34 68 48 80Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cpath d='M52 88 Q74 92 86 78 Q66 72 52 84Z' fill='%234f8a3a' stroke='%232f5a26' stroke-width='1.5'/%3E%3Cg stroke='%238e2648' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M50 70 C28 66 14 48 18 26 C30 36 38 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 70 C72 66 86 48 82 26 C70 36 62 48 50 60Z' fill='%23c9466c'/%3E%3Cpath d='M50 68 C34 58 28 38 32 16 C40 30 46 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 68 C66 58 72 38 68 16 C60 30 54 44 50 56Z' fill='%23e0708f'/%3E%3Cpath d='M50 66 C42 52 40 30 44 8 C48 24 50 40 50 52Z' fill='%23f08fab'/%3E%3Cpath d='M50 66 C58 52 60 30 56 8 C52 24 50 40 50 52Z' fill='%23f08fab'/%3E%3C/g%3E%3Cpath d='M50 62 C42 50 42 34 50 20 C58 34 58 50 50 62Z' fill='%23fbe3c4' stroke='%23c98a3a' stroke-width='1.5'/%3E%3Cpath d='M46 30 L54 30 M45 38 L55 38 M45 46 L55 46 M47 54 L53 54' stroke='%23e8b878' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") right -6px bottom -4px/110px no-repeat,var(--green-dark);border-top:6px solid var(--sa-gold);border-bottom:6px solid var(--sa-gold);outline:2px dashed rgb(255 182 18/.7);outline-offset:-14px}
.sa-band .sec-title{color:#fff}
.sa-band .eyebrow{color:#ffc7d6}
.sa-band .card{box-shadow:0 8px 20px rgb(0 0 0/.25)}
.sa-band .btn.green{background:#fff;color:var(--green-dark)}
.sa-band .btn.copper{border:2px solid #fff}
@media (max-width:800px){section.sa-band{padding:58px 0 60px;background-size:70px,70px,70px,70px}}

/* safe housing card on the home page */
.card.protea{background:var(--protea-light);border-color:var(--protea);outline-color:rgb(184 69 106/.6)}
.card.protea h3{color:#8e2648}
