:root{--paper:#f7f4e9;--ink:#182b24;--muted:#52645a;--green:#17392f;--light:#fffdf5;--gold:#f3dc8e;--red:#a53829;--border:#d9dace;--round:18px;font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}h1,h2,h3,p{margin:0}a{color:inherit}img{display:block;max-width:100%}button,input,select,textarea{font:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid #be5b1b;outline-offset:4px}
.container{width:min(1280px,calc(100% - 5rem));margin-inline:auto}.mast{background:var(--light)}.mast-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.mark{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;font-size:1.09rem;font-weight:850}.mark img{width:45px;height:51px;object-fit:contain}.mast nav,.languages,.actions,.foot,.host-list{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.5rem}.mast nav a,.foot a{font-size:.88rem;font-weight:750;text-underline-offset:.25rem}.languages{gap:.45rem}.languages a{display:inline-block;padding:.35rem .56rem;border-radius:4px;text-decoration:none}.languages a[aria-current]{background:#e3e9de}
.hero{background:var(--green);color:var(--light)}.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;min-height:440px}.hero-copy{padding:4.55rem 2.9rem 4.55rem 0;align-self:center}.eyebrow{margin:0 0 .85rem;color:var(--red);font-size:.76rem;font-weight:850;letter-spacing:.135em;text-transform:uppercase}.hero .eyebrow{color:var(--gold)}h1,h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.05em;line-height:1.01;font-weight:500}h1{font-size:clamp(3.25rem,6.2vw,6.45rem);max-width:11ch}h1 em{color:var(--gold);font-weight:inherit}.hero-copy>p:not(.eyebrow){font-size:1.08rem;line-height:1.6;margin-top:1.1rem;max-width:47ch;color:#ececdf}.hero-copy .ar-copy{opacity:.9}.hero-media{margin:0;min-width:0;position:relative;overflow:hidden;min-height:100%;background:#24453b}.hero-media img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.hero-media figcaption,.photo-note{position:absolute;inset-inline-start:1rem;bottom:1rem;background:#122b25e8;color:white;font-size:.72rem;line-height:1.2;border-radius:3px;padding:.4rem .6rem}.actions{margin-top:1.45rem;gap:.65rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;text-decoration:none;border:1px solid transparent;padding:.73rem 1.1rem;min-height:44px;border-radius:6px;font-weight:800;font-size:.92rem;cursor:pointer;line-height:1.25}.button.gold{background:var(--gold);color:var(--ink)}.button.green{background:var(--green);color:#fff}.button.line{border-color:currentColor;background:transparent;color:inherit}.button:hover{filter:brightness(.93)}.button:disabled{opacity:.65;cursor:wait}
.section{padding-block:4rem}.section h2{font-size:clamp(2.4rem,5vw,4.5rem)}.section-title{margin-bottom:1.5rem}.section-title p:not(.eyebrow),.section-intro{margin-top:.65rem;max-width:68ch;color:var(--muted);line-height:1.65}.title-ar{font-family:system-ui,sans-serif;font-size:clamp(1.05rem,2vw,1.45rem);letter-spacing:0;margin-top:.37rem;font-weight:750}.editions,.race-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.poster-card{--city:#1c504b;border:1px solid var(--border);background:var(--light);border-radius:var(--round);overflow:hidden;display:grid;grid-template-rows:1fr auto}.poster-card.casablanca{--city:#244b61}.poster-card.tanger{--city:#155e56}.poster-card.rabat{--city:#3f572b}.poster-card.marrakech{--city:#8e3b2d}.poster{min-height:245px;display:flex;flex-direction:column;align-items:flex-start;position:relative;isolation:isolate;padding:1rem;color:white;background:var(--city);overflow:hidden}.poster-bg,.poster::after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.poster::after{content:"";z-index:-1;background:linear-gradient(180deg,#15282128 0%,#13282266 38%,var(--city) 92%)}.city-mark{width:54px;height:54px;object-fit:contain;background:#fffefa;border-radius:7px;padding:3px}.poster-type{margin-top:auto;padding-top:1.2rem}.poster h3{font-size:clamp(1.24rem,2.4vw,2.25rem);line-height:1;letter-spacing:-.06em}.poster .date{font-weight:800;font-size:.96rem;line-height:1.3;margin-top:.55rem}.poster .subdate,.poster .city-ar{font-size:.82rem;margin-top:.18rem;color:#fff3cc}.poster-card footer{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.85rem .9rem}.poster-card footer .button{padding:.54rem .65rem;white-space:nowrap;font-size:.82rem}.poster-card footer small{color:var(--muted);font-size:.79rem}
.growth{background:#e8ede0}.split{display:grid;grid-template-columns:1.08fr .92fr;gap:2.2rem 5rem;align-items:center}.host-list{gap:.55rem}.host-list a{display:inline-block;border:1px solid #b8c5ad;background:var(--light);border-radius:6px;padding:.62rem .83rem;text-decoration:none;font-weight:740}.host-list a:hover{text-decoration:underline}.growth aside .eyebrow{color:#4a654c}.growth .actions{margin-top:1.25rem}
.calendar-intro .hero-grid{min-height:345px}.calendar-intro .hero-copy{padding-block:3.15rem}.calendar-intro h1{font-size:clamp(2.7rem,5.35vw,5.1rem);max-width:16ch}.agenda{padding-top:3.15rem}.filters{display:flex;flex-wrap:wrap;gap:.8rem 1rem;margin:0 0 1rem}.filters label{min-width:12rem}.filters label:first-child{flex:1 1 17rem}.filters label:last-child{flex:0 1 16rem}.filters label,.intake label{font-size:.88rem;font-weight:750;display:grid;gap:.4rem}.filters input,.filters select,.intake input:not([type=checkbox]),.intake textarea{width:100%;padding:.64rem .78rem;background:#fffdf7;color:var(--ink);border:1px solid #a7b3a5;border-radius:5px;min-height:44px}.race-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.race-card{border:1px solid var(--border);border-radius:var(--round);background:var(--light);padding:.93rem 1.12rem 1.07rem;display:flex;flex-direction:column;gap:.52rem}.race-card h3{font-size:1.12rem;line-height:1.2}.race-card p{color:var(--muted);font-size:.89rem;line-height:1.38}.race-card .race-date{color:var(--red);font-weight:820}.race-tag{font-size:.72rem;font-weight:820;letter-spacing:.02em}.textlink{display:inline-flex;align-items:center;gap:.35rem;margin-top:auto;padding-top:.28rem;text-underline-offset:.23em;color:#23503e;font-weight:800;font-size:.86rem}.race-count{min-height:1.35rem;margin-bottom:.55rem;color:var(--muted);font-size:.82rem}.race-card bdi,.poster bdi{unicode-bidi:isolate}
.forms-section{background:#e8ede0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}.form-card{border:1px solid #c6d0bf;padding:1.2rem;background:var(--light);border-radius:12px;scroll-margin-top:1rem}.form-card summary{cursor:pointer;font-size:1.14rem;font-weight:850}.intake{margin-top:1rem;display:grid;grid-template-columns:1fr 1fr;gap:.82rem}.intake .full,.intake .feedback,.intake .trap{grid-column:1/-1}.intake label.check{grid-column:1/-1;display:flex;align-items:flex-start;gap:.55rem}.intake label.check input{margin:.22rem 0 0}.intake .trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.intake button{justify-self:start}.feedback{min-height:1.35rem;color:#1e5c43;font-size:.89rem}.feedback[data-state=error]{color:#972f27}.legal{color:var(--muted);margin-top:1rem;font-size:.85rem;line-height:1.5}.page-footer{padding-block:1.3rem;border-top:1px solid var(--border);background:var(--light)}.page-footer .foot{justify-content:space-between}.page-footer p{font-size:.83rem;color:var(--muted)}.skip{position:absolute;inset-inline-start:.5rem;top:.5rem;z-index:4;background:white;padding:.5rem;transform:translateY(-140%)}.skip:focus{transform:none}
[dir=rtl] h1,[dir=rtl] h2{font-family:system-ui,sans-serif;letter-spacing:0;line-height:1.23;font-weight:800}[dir=rtl] h1 em{font-style:normal}[dir=rtl] .hero-copy{padding-inline:0 2.9rem}[dir=rtl] .eyebrow{letter-spacing:0}[dir=rtl] .textlink span,[dir=rtl] .button span.arrow{transform:scaleX(-1)}
@media(max-width:1000px){.editions{grid-template-columns:repeat(2,minmax(0,1fr))}.race-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.poster{min-height:255px}.hero-grid{min-height:400px}}
@media(max-width:660px){.container{width:calc(100% - 2rem)}.mast-inner{min-height:64px}.mast nav{gap:.4rem .75rem}.mast nav>a{font-size:.76rem}.mark{gap:.35rem;font-size:.91rem}.mark img{width:34px;height:40px}.hero-grid,.split,.form-grid{grid-template-columns:1fr}.hero-copy,.calendar-intro .hero-copy,[dir=rtl] .hero-copy{padding:2.2rem 0}.hero-media{min-height:220px;border-radius:14px 14px 0 0}.section{padding-block:2.65rem}.editions{gap:.64rem}.poster{min-height:178px;padding:.63rem}.city-mark{width:42px;height:42px}.poster h3{font-size:1.22rem}.poster .date{font-size:.82rem}.poster .subdate{font-size:.75rem}.poster-card footer{align-items:flex-start;flex-direction:column;padding:.63rem}.poster-card footer .button{min-height:38px}.poster-card footer small{font-size:.73rem}.race-grid{grid-template-columns:1fr}.form-card{padding:.85rem}.intake{grid-template-columns:1fr}.hero-copy>p:not(.eyebrow){font-size:.98rem}.growth .split{gap:1.6rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.language-link{font-size:.93rem;font-weight:800;text-underline-offset:.25rem}
.poster h3{overflow-wrap:anywhere}
.growth aside h3{font-size:1.15rem;line-height:1.3;margin-bottom:.5rem}
.growth aside>span{display:block;font-size:.9rem;opacity:.8;margin-bottom:.65rem}
.other-cities{margin-top:1.3rem}
.other-cities summary{cursor:pointer;font-size:.9rem;font-weight:800}
.other-cities .host-list{margin-top:.65rem}
.recaps{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-block:1.25rem}
.recaps h2{font:800 1rem/1.35 system-ui,sans-serif;letter-spacing:0}
[dir=rtl] .button .arrow,[dir=rtl] .textlink span{display:inline-block}
@media(max-width:360px){.poster h3{font-size:1.08rem}}

/* Navigation and links on edition cards */
.mast .home-nav{justify-content:center}
.poster-card>footer{display:block}
.poster-registration{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.city-socials{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.7rem;padding-top:.65rem;border-top:1px solid var(--border)}
.city-socials a,.footer-links a{font-size:.83rem;font-weight:750;text-underline-offset:.2em}

/* Featured races, local sites and hosting opportunities */
.featured-races{background:#eee9db;border-block:1px solid var(--border)}
.featured-races .actions .line{border-color:#6c7f70}
.growth .split{align-items:start}
.organise-options{display:grid;gap:.55rem;padding-inline-start:1.25rem;margin:1.1rem 0 0;font-weight:760;line-height:1.5}
.organise-options span{display:block;font-size:.87em;font-weight:550;color:var(--muted)}
.city-directory{margin-top:2.5rem;padding-top:1.7rem;border-top:1px solid #bfcabd}
.city-directory h3{font-size:1.2rem}
.city-directory .title-ar{font-size:.97rem}
.city-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem;margin-top:1rem}
.city-grid>a,.city-grid>.offline-city{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .5rem;min-height:48px;border:1px solid #b8c5ad;border-radius:7px;padding:.55rem .75rem;background:var(--light);font-size:.91rem;font-weight:770;text-decoration:none}
.city-grid>a:hover{background:#dce5d5;text-decoration:underline}
.city-grid .offline-city{background:#eef0e8;color:#46564a;border-color:#ccd3c7}
.offline-city small{width:100%;font-size:.72rem;font-weight:550}
.city-external{margin-inline-start:auto}

/* Video recaps and partner pathways */
.video-grid,.partner-grid{display:grid;gap:1rem}
.video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.video-card,.partner-card{background:var(--light);border:1px solid var(--border);border-radius:var(--round);overflow:hidden}
.video-card iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:var(--green)}
.video-caption{padding:.85rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem}
.video-caption h3{font-size:1rem}
.video-caption .textlink{padding-top:0;margin:0}
.partnership{background:#eee9db}
.partner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.partner-card{display:flex;flex-direction:column;align-items:flex-start;padding:1.25rem;gap:.65rem}
.partner-card h3{font-size:1.2rem}
.partner-card p{color:var(--muted);line-height:1.6}
.partner-card .partner-ar{font-weight:720;margin-top:-.42rem}
.partner-card p[lang=ar]{text-align:right;width:100%}
.partner-card>div{display:grid;gap:.6rem;margin-bottom:.45rem}
.partner-card .button{margin-top:auto}
.partner-docs{margin-top:1.3rem}
.partner-docs a{font-weight:800;text-underline-offset:.24em}
.footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;padding-block:.35rem}
.footer-grid h2{font:800 1rem/1.25 system-ui,sans-serif;letter-spacing:0;margin-bottom:.45rem}
.footer-links{display:flex;flex-wrap:wrap;gap:.45rem 1rem}
@media(max-width:1000px){.city-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){
  .mast .home-nav{order:1;width:100%;justify-content:flex-start;padding-bottom:.75rem}
  .mast-inner:has(.home-nav){flex-wrap:wrap;row-gap:.45rem;padding-top:.55rem}
  .poster-registration{align-items:flex-start;flex-direction:column}
  .city-grid,.partner-grid,.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .partner-grid{grid-template-columns:1fr}
}
@media(max-width:360px){.video-grid,.footer-grid{grid-template-columns:1fr}}
.form-grid{grid-template-columns:minmax(0,1fr);max-width:760px}
.form-card summary span{display:inline}
.form-card summary small{display:block;margin:.4rem 0 0 1.1rem;font-size:.86rem;font-weight:550;line-height:1.5;color:var(--muted)}
.form-card .form-language{display:inline-flex;margin-block:.8rem .15rem;text-underline-offset:.2rem;font-weight:770}
.form-card .intake{margin-top:.5rem}
[dir=rtl] .form-card summary small{margin:.4rem 1.1rem 0 0}
