/* Shared styles for all pages. */
*{box-sizing:border-box;margin:0;padding:0}
:root{--green:#5AAA47;--green-d:#3E7C33;--dark:#0E2233;--ink:#1D2B36;--muted:#5A6B76;--bg:#fff;--soft:#F2F6F0;--line:#E1E8E0;--radius:18px}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.55}
h1,h2,h3{font-family:'Archivo',sans-serif;color:var(--dark);line-height:1.12}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.demo-bar{background:#0E2233;color:#CFE3C9;text-align:center;padding:8px;font-size:12.5px}
.demo-bar b{color:#8ED07F}
/* HEADER like iGEM: white, logo left, many nav items, green button */
header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:5}
.nav{display:flex;align-items:center;gap:34px;padding-top:16px;padding-bottom:16px}
.logo{display:flex;align-items:center;gap:10px}
.logo-emblem{display:block;height:34px;width:auto;flex:none}
.logo-name{font-family:'Archivo';font-weight:800;font-size:19px;color:var(--dark);line-height:1.05}
.logo-sub{font-size:11px;color:var(--muted);letter-spacing:.08em}
nav.links{display:flex;gap:24px;font-size:14.5px;font-weight:500;color:var(--dark);margin-left:auto}
nav.links a{color:inherit;text-decoration:none}
nav.links a:hover{color:var(--green-d)}
nav.links a[aria-current="page"]{color:var(--green-d);font-weight:700}
.btn{display:inline-block;background:var(--green);color:#fff;font-weight:600;font-size:14.5px;padding:11px 22px;border-radius:999px;text-decoration:none}
.btn:hover{background:var(--green-d)}
.btn.white{background:#fff;color:var(--green-d)}
.btn.outline{background:transparent;border:2px solid var(--dark);color:var(--dark)}
.nav-login{display:inline-flex;align-items:center;gap:7px;margin-right:-14px;font-size:14.5px;font-weight:600;color:var(--dark);text-decoration:none;white-space:nowrap}
.nav-login svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.nav-login:hover{color:var(--green-d)}
.nav-login:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}
/* HERO BANNER full-bleed image, like competition.igem.org ImageBanner */
/* HERO CAROUSEL: Cambridge photo, then world map with partner pins */
.hero{position:relative;height:460px;overflow:hidden;background:#13241B;color:#fff}
.hero-slides,.slide{position:absolute;inset:0}
.slide{margin:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s .8s}
.slide.is-active{opacity:1;visibility:visible;transition:opacity .8s ease}
.slide-photo>img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.slide-cap{position:absolute;left:0;right:0;bottom:0;padding:72px 0 64px;background:linear-gradient(to top,rgba(8,20,14,.82),rgba(8,20,14,.45) 60%,transparent)}
.slide-cap .kicker{color:#9FDB8E;margin-bottom:6px}
.slide-cap h2{color:#fff;font-size:34px;max-width:760px}
.slide-cap p{color:#E4EEE6;font-size:15px;margin-top:8px;max-width:760px}
.slide-cta{margin-top:16px}
.slide-cta[hidden]{display:none}
.slide-map{background:radial-gradient(ellipse at 60% 35%,#1E3A2A,#0F1E16 70%)}
.slide-map .slide-cap{background:linear-gradient(to top,rgba(8,20,14,.9),rgba(8,20,14,.5) 70%,transparent)}
.map-area{position:absolute;left:0;right:0;top:16px;bottom:120px;display:flex;justify-content:center;align-items:center}
.map-box{position:relative;width:min(100%,675px);aspect-ratio:1000/480}
.map-img,.map-arc{position:absolute;inset:0;width:100%;height:100%}
.map-arc path{fill:none;stroke:#F2C14E;stroke-width:2.5;stroke-dasharray:7 7;stroke-linecap:round;animation:arc-flow 1.6s linear infinite}
@keyframes arc-flow{to{stroke-dashoffset:-14}}
.pin{position:absolute;width:0;height:0}
.pin-dot{position:absolute;left:-7px;top:-7px;width:14px;height:14px;border-radius:50%;background:#F2C14E;border:2px solid #fff;box-shadow:0 0 0 0 rgba(242,193,78,.7);animation:pin-pulse 2s ease-out infinite}
@keyframes pin-pulse{to{box-shadow:0 0 0 16px rgba(242,193,78,0)}}
.pin-card{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;border-radius:10px;background:#000;box-shadow:0 6px 18px rgba(0,0,0,.4);font-size:11.5px;font-weight:600;white-space:nowrap;color:#fff}
.pin-card.light{background:#fff;color:var(--dark)}
.pin-card img{display:block;width:110px;height:auto;border-radius:6px}
.pin-uk .pin-card{right:18px;top:0;transform:translateY(-50%)}
.pin-hk .pin-card{left:16px;top:6px}
.pin-global .pin-card{left:0;top:0;transform:translate(-50%,-50%)}
.pin-global .pin-card img{width:96px;padding:4px 2px}
.hero-controls{position:absolute;left:0;right:0;bottom:16px;display:flex;align-items:center;gap:10px}
.hero-controls[hidden]{display:none}
.hero-btn{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.6);background:rgba(0,0,0,.25);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center}
.hero-btn:hover{background:rgba(0,0,0,.5)}
.hero-btn svg{width:12px;height:12px;fill:currentColor}
.hero-dots{display:flex;gap:8px}
.hero-dots button{width:10px;height:10px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.45);cursor:pointer}
.hero-dots button[aria-current="true"]{background:#fff;width:26px;border-radius:5px}
.hero button:focus-visible{outline:3px solid #F2C14E;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.slide,.slide.is-active{transition:none}.map-arc path,.pin-dot{animation:none}}
/* GREEN REGISTRATION STRIP like iGEM RegistrationOpen */
.reg-strip{background:var(--green);color:#fff}
.reg-strip .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:20px;padding-bottom:20px}
.reg-strip h3{color:#fff;font-size:20px}
.reg-strip p{font-size:14px;color:#EAF6E4}
.reg-strip .strip-slogan{font-family:'Archivo',sans-serif;font-weight:800;font-size:28px;line-height:1.15;letter-spacing:.04em;text-transform:uppercase;color:#fff;margin-top:8px}
@media (max-width:640px){.reg-strip .strip-slogan{font-size:22px}}
.strip-slogan[hidden]{display:none}
section{padding:72px 0 8px}
.kicker{color:var(--green-d);font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px}
.sec-title{font-size:40px;font-weight:800;max-width:720px}
.sec-sub{color:var(--muted);font-size:17px;max-width:640px;margin-top:12px}
/* FEATURE CARDS row */
.cards2{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
.fcard{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:#fff}
.fcard img{width:100%;height:260px;object-fit:cover;display:block}
.fcard .body{padding:26px}
.fcard h3{font-size:24px;font-weight:700;margin-bottom:8px}
.fcard p{color:var(--muted);font-size:15px}
.fcard .go{margin-top:16px;color:var(--green-d);font-weight:600;font-size:15px}
/* WINNERS like iGEM GrandPrizeWinners */
.winners{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
.winner{border-radius:var(--radius);overflow:hidden;position:relative;height:420px}
.winner img{width:100%;height:100%;object-fit:cover;display:block}
.winner .cap{position:absolute;left:0;right:0;bottom:0;padding:26px;background:linear-gradient(transparent,rgba(8,20,14,.88) 45%);color:#fff}
.winner .cap h3{color:#fff;font-size:26px}
.winner .cap h4{color:#BFE3B4;font-weight:600;font-size:14.5px;margin:2px 0 8px}
.winner .cap p{font-size:14px;color:#E4EFE0}
/* PROGRAMME ROWS like igem.org programmes: alternating, big stats */
.prog-row{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding:48px 0;border-bottom:1px solid var(--line)}
.prog-row.flip .txt{order:2}
.prog-row h2{font-size:34px;font-weight:800}
.prog-row .date{color:var(--green-d);font-weight:700;font-size:15px;margin-bottom:8px}
.prog-row p{color:var(--muted);margin-top:12px;font-size:16px;max-width:520px}
.stats{display:flex;gap:36px;margin-top:22px}
.stat .n{font-family:'Archivo';font-size:30px;font-weight:800;color:var(--dark)}
.stat .l{font-size:13px;color:var(--muted)}
.learn{margin-top:20px;color:var(--green-d);font-weight:600}
.prog-img{border-radius:var(--radius);height:300px;overflow:hidden}
.prog-img img{width:100%;height:100%;object-fit:cover;display:block}
.prog-img.panel{display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Archivo';font-weight:800;font-size:30px;text-align:center;padding:32px;line-height:1.25}
/* VILLAGES chips */
.villages{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.village{padding:9px 16px;border-radius:999px;font-size:14px;font-weight:600;color:#fff}
/* NEWS */
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:36px}
.ncard{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.ncard .ph{height:170px;width:100%;object-fit:cover;display:block}
.ncard .body{padding:22px}
.ncard h3{font-size:19px;font-weight:700;line-height:1.3}
.ncard p{color:var(--muted);font-size:14px;margin-top:8px}
.ncard .go{color:var(--green-d);font-weight:600;font-size:14px;margin-top:14px}
/* STORIES */
.stories{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:36px}
.story{background:var(--soft);border-radius:var(--radius);padding:28px}
.story .place{color:var(--green-d);font-weight:700;font-size:13px;letter-spacing:.06em}
.story h3{font-size:21px;margin:6px 0 10px}
.story p{color:var(--muted);font-size:14.5px}

/* STORY IMAGES + ORGS + REGISTER */
.story img{width:100%;height:150px;object-fit:cover;border-radius:12px;display:block;margin-bottom:16px}
.orgs{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:36px}
.org{border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.org .region{color:var(--green-d);font-weight:700;font-size:13px;letter-spacing:.06em}
.org h3{font-size:25px;margin:6px 0 10px}
.org p{color:var(--muted);font-size:14.5px}
.org.tba{border-style:dashed;background:var(--soft)}
.reg-wrap{background:var(--soft);border-radius:var(--radius);padding:36px;margin-top:36px}
.reg-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.reg-grid .full{grid-column:1/-1}
.reg-wrap label{display:block;font-weight:600;font-size:13.5px;margin-bottom:6px;color:var(--dark)}
.reg-wrap input,.reg-wrap select,.reg-wrap textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.reg-wrap .submit{margin-top:20px;background:var(--green);color:#fff;border:0;padding:14px 30px;border-radius:999px;font:inherit;font-weight:700;font-size:16px;cursor:pointer}
.reg-note{color:var(--muted);font-size:13.5px;margin-top:14px}
/* SPONSORS */
.sponsors{text-align:left;padding:56px 0 8px}
.spon-row{display:flex;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}
.spon-row .tier{width:170px;color:var(--muted);font-weight:600;font-size:14px}
.spon-box{border:1.5px dashed #B9C9B4;border-radius:12px;padding:18px 30px;font-family:'Archivo';font-weight:700;color:#8AA184;font-size:15px}
/* MAILING banner */
.mail{background:var(--green);border-radius:var(--radius);padding:44px;margin:64px 0 0;display:flex;justify-content:space-between;align-items:center;gap:32px}
.mail h2{color:#fff;font-size:30px;max-width:560px}
.mail p{color:#EAF6E4;margin-top:8px}
/* FOOTER dark like iGEM */
footer{background:#F4F5F4;color:#6B7378;border-top:1px solid var(--line);margin-top:72px;padding:36px 0 32px;font-size:14px}
.sf-top,.sf-bottom{display:flex;justify-content:space-between;gap:24px}
.sf-top{align-items:center}
.sf-bottom{align-items:flex-start;margin-top:24px;padding-top:24px;border-top:1px solid #DDE2DE}
.sf-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:32px}
.sf-cols h4{font-family:'Archivo',sans-serif;font-size:14px;color:var(--dark);margin-bottom:10px}
.sf-cols ul{list-style:none}
.sf-cols li{line-height:2}
.sf-cols a{color:#4A5358;text-decoration:none}
.sf-cols a[href]:hover{color:var(--green-d);text-decoration:underline}
.sf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.social{display:flex;gap:4px;list-style:none}
.social-link{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;color:#7A8288}
.social-link svg{width:20px;height:20px;fill:currentColor}
.social-link[href]:hover{color:var(--dark);background:#E8EBE8}
.sf-news{display:inline-flex;align-items:center;gap:10px;margin-left:8px;padding:10px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 3px rgba(14,34,51,.08);color:var(--dark);font-weight:500;text-decoration:none}
.sf-news svg{width:18px;height:18px}
a[aria-disabled="true"]{cursor:default}
.sf-info p{line-height:1.7}
.sf-info b{color:#4A5358;font-weight:600}
.sf-legal{font-size:12px;color:#8A9296;margin-top:10px;max-width:760px}
.sf-legal a{color:inherit;text-decoration:underline}
.sf-links{display:flex;white-space:nowrap}
.sf-links a{color:#4A5358;text-decoration:none;padding:0 12px;border-left:1px solid #C9CFCB;line-height:1.2}
.sf-links a:first-child{border-left:0}
.sf-links a[href]:hover{color:var(--green-d);text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:860px){
  .sf-top,.sf-bottom{flex-direction:column;align-items:flex-start}
  .sf-actions{justify-content:flex-start}
  .sf-news{margin-left:0}
  .sf-links a:first-child{padding-left:0}
  .sf-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.reg-turnstile{margin:18px 0 4px;min-height:65px}
.reg-status{margin-top:12px;padding:10px 14px;border-radius:10px;background:#FDECEC;color:#8A1C1C;font-size:14px}
.submit:disabled{opacity:.6;cursor:wait}
/* Menu button. The icon is an inline SVG with explicit width/height and
   stroke="currentColor" (iPad Safari showed the old three-span icon as an
   empty box). */
.nav-toggle{display:none;flex:none;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;margin-left:auto;padding:0;
  -webkit-appearance:none;appearance:none;color:var(--dark);background:none;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.nav-ic{display:block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.nav-ic-close,.nav-toggle[aria-expanded="true"] .nav-ic-menu{display:none}
.nav-toggle[aria-expanded="true"] .nav-ic-close{display:block}
.nav-toggle:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media (max-width:860px){
  .nav{gap:10px;padding-top:12px;padding-bottom:12px}
  .nav-toggle{display:flex}
  nav.links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;margin:0;padding:8px 16px 16px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(14,34,51,.08)}
  nav.links.open{display:flex}
  nav.links a{padding:12px 4px;border-bottom:1px solid var(--line)}
  nav.links a:last-child{border-bottom:0}
}
@media (max-width:960px){
  .wrap{padding:0 16px}
  header .btn{padding:10px 16px;font-size:14px}
  .nav-login{margin-right:0}
  .news,.stories,.orgs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prog-row{grid-template-columns:minmax(0,1fr);gap:24px;padding:36px 0}
  .mail{flex-direction:column;align-items:flex-start;padding:32px 24px}
}
@media (max-width:640px){
  section{padding:48px 0 8px}
  .sec-title{font-size:30px}
  .hero{height:440px}
  .slide-cap{padding:56px 0 60px}
  .slide-cap h2{font-size:23px}
  .slide-cap p{font-size:13.5px}
  .map-area{top:12px;bottom:auto}
  .map-box{width:100%}
  .pin-card{font-size:9.5px;padding:4px;gap:2px}
  .pin-card img{width:58px}
  .pin-uk .pin-card{right:12px}
  .pin-hk .pin-card{left:auto;right:-6px;top:12px}
  .pin-global .pin-card img{width:52px;padding:2px 1px}
  .cards2,.winners,.news,.stories,.orgs,.reg-grid{grid-template-columns:minmax(0,1fr)}
  .reg-strip .wrap{flex-direction:column;align-items:flex-start;gap:12px}
  .stats{flex-wrap:wrap;gap:16px 28px}
  .prog-img{height:220px}
  .prog-img.panel{font-size:24px;padding:24px}
  .spon-row{flex-wrap:wrap;gap:12px}
  .spon-row .tier{width:100%}
  .spon-box{padding:14px 20px}
  .mail h2{font-size:24px}
}
/* MOBILE HEADER (<=640px): smaller wordmark, slimmer controls, clear gaps.
   Desktop and tablet headers are untouched. Target height ~60px. */
@media (max-width:640px){
  .nav{gap:12px;padding-top:7px;padding-bottom:7px}
  .logo{gap:8px;min-width:0;margin-right:auto}
  .logo-emblem{height:34px}
  .logo-name{font-size:15px;line-height:1.05;letter-spacing:-.005em;max-width:6.4em}
  .logo-sub{margin-top:1px;font-size:10px;line-height:1.1;letter-spacing:.12em;color:var(--muted);font-weight:500}
  .nav-toggle{width:40px;height:40px;margin-left:0}
  .nav-toggle,.nav-login,header .btn{touch-action:manipulation}
  header .btn{display:inline-flex;align-items:center;min-height:40px;padding:9px 16px;font-size:14px;line-height:1}
  /* Hamburger + account icon sit together as one group, 8px apart. */
  .nav-toggle + nav.links + .nav-login{margin-left:-4px}
}
/* Small phones: the login link becomes an icon button (label kept for screen readers). */
@media (max-width:480px){
  .nav-login{justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;flex:none}
  .nav-login svg{width:20px;height:20px}
  .nav-login span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* Narrowest phones: the account icon moves into the menu so nothing touches. */
@media (max-width:360px){
  .nav{gap:10px}
  .nav > .nav-login{display:none}
  header .btn{padding:9px 14px}
}
.nav-menu-login{display:none}
@media (max-width:860px){nav.links a:has(+ .nav-menu-login){border-bottom:0}}
@media (max-width:360px){nav.links .nav-menu-login{display:block}nav.links a:has(+ .nav-menu-login){border-bottom:1px solid var(--line)}}
/* PLAN SECTIONS (about, glance, eligibility, format, categories, awards, judging, timeline, safeguarding) */
section[id]{scroll-margin-top:84px}
.cta-row{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px}
.note{color:var(--muted);font-size:14.5px;margin-top:18px;font-style:italic}
.note a,.safe a{color:var(--green-d)}
.pillars,.safe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:36px}
.pillar,.safe,.panel,.award{background:var(--soft);border-radius:var(--radius);padding:26px}
.pillar-n,.cat-n,.stage-n{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;font-family:'Archivo';font-weight:800;display:flex;align-items:center;justify-content:center;flex:none}
.pillar h3,.safe h3,.panel h3,.award h3,.stage h3{font-family:'Archivo';font-size:19px;font-weight:800;color:var(--dark);margin:14px 0 8px;line-height:1.25}
.safe h3,.panel h3,.award h3{margin-top:0}
.pillar p,.safe p,.award p,.stage p{color:var(--muted);font-size:15px}
.glance{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-top:32px}
.glance-item{background:var(--soft);border-radius:14px;padding:20px 18px}
.glance-n{font-family:'Archivo';font-size:32px;font-weight:800;color:var(--dark);line-height:1.1;font-variant-numeric:tabular-nums}
.glance-l{color:var(--muted);font-size:13.5px;margin-top:6px}
.glance-bar{margin-top:16px;background:var(--dark);color:#DCE6EE;border-radius:14px;padding:18px 24px;display:flex;flex-wrap:wrap;gap:10px 32px;font-size:15px}
.glance-bar b{color:#8ED07F;margin-right:8px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px}
.ticks{list-style:none;padding:0;display:grid;gap:10px;font-size:15.5px;color:var(--ink)}
.ticks li{padding-left:26px;position:relative}
.ticks li::before{content:'';position:absolute;left:0;top:.45em;width:12px;height:7px;border-left:2.5px solid var(--green);border-bottom:2.5px solid var(--green);transform:rotate(-45deg)}
.panel-note{margin-top:16px;font-size:14.5px;color:var(--muted)}
.stages{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:32px;counter-reset:none}
.stage{background:var(--soft);border-radius:var(--radius);padding:24px;position:relative}
.stage-when{font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--green-d);margin-top:14px}
.stage-final{background:var(--dark)}
/* Section photos (Keith 4): stock photos, see /assets/photos/CREDITS.md. */
.stage-photo{display:block;width:calc(100% + 48px);max-width:none;margin:-24px -24px 18px;aspect-ratio:3/2;height:auto;object-fit:cover;border-radius:var(--radius) var(--radius) 0 0;background:var(--line)}
.wide-photo{display:block;width:100%;height:auto;aspect-ratio:21/8;object-fit:cover;object-position:center 40%;border-radius:var(--radius);margin-top:28px;background:var(--line)}
@media (max-width:640px){.wide-photo{aspect-ratio:3/2}}
.stage-final h3{color:#fff}.stage-final p{color:#C9D6E0}.stage-final .stage-when{color:#8ED07F}
.hubs{list-style:none;padding:0;margin-top:12px;display:grid;gap:6px;font-size:14px;color:var(--ink)}
.hubs b{display:inline-block;min-width:76px;color:var(--dark)}
.advance{margin-top:16px;border:1px solid var(--line);border-radius:14px;padding:18px 22px;display:flex;flex-wrap:wrap;gap:8px 32px;font-size:15px}
.advance b{color:var(--dark);margin-right:6px}
.advance p{flex-basis:100%;color:var(--muted);font-size:14px}
.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:32px}
.cat{display:flex;align-items:center;gap:16px;background:var(--soft);border-radius:14px;padding:20px 22px}
.cat h3{font-family:'Archivo';font-size:17px;font-weight:800;color:var(--dark)}
.cat p{color:var(--muted);font-size:14px}
.awards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:32px}
.award .ticks{margin-top:14px;font-size:15px}
.medals{list-style:none;padding:0;margin-top:16px;display:grid;gap:10px;font-weight:600;color:var(--dark)}
.medals li{display:flex;align-items:center;gap:10px}
.medal{width:22px;height:22px;border-radius:50%;display:inline-block}
.medal.gold{background:#C9A227}.medal.silver{background:#9AA5AE}.medal.bronze{background:#B0774A}
.award-prize{background:var(--dark)}
.award-prize h3{color:#fff}.award-prize p{color:#C9D6E0}
.prize{font-family:'Archivo';font-size:52px;font-weight:800;color:#8ED07F;line-height:1;margin:10px 0 12px;font-variant-numeric:tabular-nums}
.rubric{margin-top:32px;display:grid;gap:22px;max-width:860px}
.rubric-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.rubric-head h3{font-family:'Archivo';font-size:17px;font-weight:800;color:var(--dark)}
.rubric-head span{font-family:'Archivo';font-weight:800;font-size:20px;color:var(--green-d);font-variant-numeric:tabular-nums}
.bar{height:10px;background:var(--soft);border-radius:999px;margin:8px 0;overflow:hidden}
.bar span{display:block;height:100%;background:var(--green);border-radius:999px}
.rubric-row p{color:var(--muted);font-size:14.5px}
.tl{list-style:none;padding:0;margin-top:28px;max-width:860px;border-left:3px solid var(--line);margin-left:8px}
.tl li{position:relative;display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;padding:12px 0 12px 26px;font-size:15.5px}
.tl li::before{content:'';position:absolute;left:-9px;top:17px;width:15px;height:15px;border-radius:50%;background:#fff;border:3px solid var(--green)}
.tl-date{font-weight:700;color:var(--dark)}
.tl-final::before{background:var(--green)!important}
.tl-final .tl-date{color:var(--green-d)}
.fee-unit{font-size:16px;color:var(--muted);font-weight:600}
.age-group-box{background:#fff;border:1px dashed var(--green);border-radius:12px;padding:12px 16px}
.age-group-label{font-weight:600;font-size:13.5px;color:var(--dark)}
.age-group-value{font-family:'Archivo';font-weight:800;font-size:19px;color:var(--green-d);margin-top:2px}
.q{margin-top:18px}
.q label{margin-bottom:2px!important}
.q-help{font-size:13.5px;color:var(--muted);margin-bottom:8px}
.q-stage{margin-bottom:10px;max-width:320px}
.reg-help a{color:var(--green-d)}
@media (max-width:960px){
  .glance{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pillars,.safe-grid,.awards{grid-template-columns:minmax(0,1fr)}
  .cats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .glance{grid-template-columns:repeat(2,minmax(0,1fr))}
  .glance-n{font-size:26px}
  .two-col,.stages,.cats{grid-template-columns:minmax(0,1fr)}
  .tl li{grid-template-columns:minmax(0,1fr);gap:2px}
  .prize{font-size:44px}
}
/* REGISTRATION FORM SECTIONS */
[hidden]{display:none!important}
.reg-wrap textarea{resize:vertical;min-height:96px;line-height:1.5}
.reg-intro{font-size:14.5px;color:var(--muted);margin-bottom:8px}
.req{color:#B3261E;font-weight:700}
.opt{color:var(--muted);font-weight:500;font-size:13px}
.reg-section{border:0;border-top:1px solid var(--line);padding:28px 0 8px;margin:28px 0 0;min-width:0}
.reg-section:first-of-type{border-top:0;padding-top:4px;margin-top:8px}
#members-count{margin:10px 0 0}
.reg-wrap input,.reg-wrap select,.reg-wrap textarea{scroll-margin-top:110px}
.reg-section legend{float:left;width:100%;font-family:'Archivo';font-weight:800;font-size:18px;color:var(--dark);padding:0;margin-bottom:14px}
.reg-section legend+*{clear:both}
.reg-section legend .opt{font-family:'Inter',system-ui,sans-serif}
.reg-help{font-size:13px;color:var(--muted);margin:-6px 0 14px}
.reg-grid .reg-help{margin:6px 0 0}
.member{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:14px}
.member-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.member-title{font-weight:700;color:var(--dark);font-size:14.5px}
.member-remove{background:none;border:0;color:#B3261E;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;padding:6px 8px;border-radius:8px}
.member-remove:hover{background:#FDECEC}
.btn-add{background:#fff;border:1.5px dashed var(--green);color:var(--green-d);font:inherit;font-weight:700;font-size:14.5px;padding:11px 18px;border-radius:12px;cursor:pointer;width:100%}
.btn-add:hover{background:#F4FAF1}
.reg-safety{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.reg-safety-title{font-weight:700;color:var(--dark);font-size:14.5px;margin-bottom:10px}
.reg-safety .reg-help{margin:-4px 0 10px}
.yn{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:10px 0;border-top:1px solid var(--line);font-size:14.5px}
.yn>span{flex:1 1 320px}
.reg-wrap .yn label,.reg-wrap .check{display:flex;align-items:flex-start;gap:8px;font-weight:500;font-size:14.5px;margin:0;cursor:pointer}
.reg-wrap .yn input,.reg-wrap .check input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--green-d)}
.reg-consents .check{margin-bottom:12px}
.reg-consents a{color:inherit;text-decoration:underline}
.reg-wrap :focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* THANK-YOU PAGE */
.logo-link{text-decoration:none;color:inherit}
.ty-home-top{margin-left:auto;padding:9px 18px}
.ty{background:var(--soft);padding:56px 0 72px}
.ty-card{max-width:720px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:48px}
.ty-icon{width:64px;height:64px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:22px}
.ty-title{font-family:'Archivo';font-size:36px;font-weight:800;color:var(--dark);line-height:1.15;text-wrap:balance}
.ty-lead{color:var(--muted);font-size:17px;margin-top:12px}
.ty-ref{margin-top:28px;background:#E7F3E2;border:1px solid var(--green);border-radius:14px;padding:20px 22px}
.ty-ref-label{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green-d)}
.ty-ref-num{font-family:'Archivo';font-size:34px;font-weight:800;color:var(--dark);margin-top:4px;font-variant-numeric:tabular-nums}
.ty-ref-note{font-size:14px;color:var(--ink);margin-top:4px}
.ty-h2{font-family:'Archivo';font-size:20px;font-weight:800;color:var(--dark);margin-top:36px}
.ty-steps{margin:14px 0 0 20px;display:grid;gap:12px;color:var(--ink)}
.ty-steps li{padding-left:4px}
.ty-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.ty-actions .btn.outline{padding:9px 20px}
@media (max-width:640px){
  .ty{padding:24px 0 48px}
  .ty-card{padding:28px 20px}
  .ty-title{font-size:28px}
  .ty-home-top{display:none}
  .ty-actions .btn{flex:1 1 100%;text-align:center}
}
/* DOCUMENT PAGES (privacy policy etc.) */
.draft-bar{background:#FFF4D6;color:#5C4400;text-align:center;padding:9px 16px;font-size:13.5px;border-bottom:1px solid #F0DCA0}
.doc{background:var(--soft);padding:48px 0 72px}
.doc-body{max-width:780px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:48px;font-size:16px;line-height:1.65}
.doc-body h1{font-family:'Archivo';font-size:38px;font-weight:800;color:var(--dark);line-height:1.15}
.doc-body h2{font-family:'Archivo';font-size:21px;font-weight:800;color:var(--dark);margin:40px 0 12px;scroll-margin-top:96px}
.doc-body p,.doc-body ul,.doc-body table{margin-bottom:14px}
.doc-body ul{padding-left:22px}
.doc-body ul ul{margin:6px 0 0}
.doc-body li{margin-bottom:6px}
.doc-body a{color:var(--green-d)}
.doc-meta{color:var(--muted);font-size:14px;margin-top:8px}
.doc-toc{background:var(--soft);border-radius:12px;padding:16px 22px;margin:24px 0 8px;font-size:15px}
.doc-toc ol{padding-left:20px;columns:2;column-gap:28px}
.doc-toc li{margin-bottom:4px;break-inside:avoid}
.doc-facts{list-style:none;padding:0!important;background:var(--soft);border-radius:12px;padding:14px 18px!important}
.tbc{background:#FFF4D6;color:#5C4400;border-radius:4px;padding:0 4px;font-weight:600}
.doc-table{width:100%;border-collapse:collapse;font-size:14.5px}
.doc-table th,.doc-table td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}
.doc-table th{background:var(--soft);color:var(--dark)}
@media (max-width:640px){
  .doc{padding:20px 0 48px}
  .doc-body{padding:26px 18px;font-size:15.5px}
  .doc-body h1{font-size:30px}
  .doc-toc ol{columns:1}
  .doc-table{display:block;overflow-x:auto}
}
.doc-body h3{font-family:'Archivo';font-size:17px;font-weight:800;color:var(--dark);margin:22px 0 8px}
.org-zh{font-size:16px;color:var(--ink);margin-top:6px}
/* SUB-PAGES */
.page-head{background:var(--soft);border-bottom:1px solid var(--line);padding:56px 0 44px}
.page-head h1{font-size:46px;font-weight:800;max-width:820px}
.page-head p{color:var(--muted);font-size:18px;max-width:680px;margin-top:12px}
.subnav{display:flex;flex-wrap:wrap;gap:8px;padding-top:20px;padding-bottom:4px}
.subnav a{font-size:14px;font-weight:600;color:var(--dark);text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:7px 14px;background:#fff}
.subnav a:hover{border-color:var(--green);color:var(--green-d)}
.page-cta{margin-top:40px}
section[id]{scroll-margin-top:90px}
.sg-summary{padding-top:56px;padding-bottom:40px}
.explore{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:32px}
.explore-card{position:relative;display:block;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px 48px;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s,transform .15s}
.explore-card:hover{border-color:var(--green);box-shadow:0 10px 24px rgba(14,34,51,.08);transform:translateY(-2px)}
.explore-card:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.explore-k{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green-d)}
.explore-card h3{font-size:19px;margin-top:8px}
.explore-card p{font-size:14.5px;color:var(--muted);margin-top:8px}
.explore-go{position:absolute;left:22px;bottom:18px;font-size:20px;color:var(--green-d)}
@media (max-width:960px){.explore{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .page-head{padding:36px 0 28px}
  .page-head h1{font-size:32px}
  .page-head p{font-size:16px}
  .explore{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.explore-card{transition:none}.explore-card:hover{transform:none}}
/* SPONSOR PAGE */
.tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.tier-card{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.tier-card.tier-main{background:#fff;border:2px solid var(--green)}
.tier-k{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green-d)}
.tier-card h3{font-size:24px;margin-top:6px}
.tier-card p{color:var(--muted);font-size:15px;margin-top:8px}
.sponsor-done{background:#E7F3E2;border:1px solid var(--green);border-radius:14px;padding:24px 26px;margin-top:8px}
.sponsor-done h3{font-size:22px}
.sponsor-done p{margin-top:8px}
@media (max-width:860px){.tiers{grid-template-columns:minmax(0,1fr)}}
/* HEART SECTION: circuit board with the logo chip in the centre and six
   reveal cards, after docs/design/circuit-preview-v3.html. Traces are drawn by
   js/heart.js. Accent shades are darkened from the reference to pass WCAG AA. */
.heart{--board:#F6FAF6;--dot:#D8E8D8;--trace:#5AAA47;--chip:#101C33;--chip-edge:#1F3358;--pin:#C9A227;
  background-color:var(--board);background-image:radial-gradient(var(--dot) 1.6px,transparent 1.7px);background-size:26px 26px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:64px 0}
.heart-grid{position:relative;display:grid;grid-template-columns:1.3fr 1fr 1.3fr;column-gap:48px;row-gap:50px;
  grid-template-areas:"head . mission" "areas chip ages" "regions responsibly founding"}
.heart-pos-head{grid-area:head}.heart-pos-chip{grid-area:chip}.heart-pos-mission{grid-area:mission}
.heart-pos-areas{grid-area:areas}.heart-pos-ages{grid-area:ages}.heart-pos-regions{grid-area:regions}
.heart-pos-responsibly{grid-area:responsibly}.heart-pos-founding{grid-area:founding}
.heart-traces{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.heart-traces path{fill:none;stroke:var(--trace);stroke-opacity:.45;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.heart-traces circle{fill:var(--trace);fill-opacity:.8}
.heart-traces circle.heart-deco{fill-opacity:.35}
/* Current: a dashed copy of each trace on top, flowing chip -> card. The
   offset moves two dash periods (2 x 36px) per loop, so it repeats seamlessly.
   js/heart.js pauses it while the section is off screen. */
.heart-traces path.heart-pulse{stroke:#3E9A2E;stroke-opacity:.9;stroke-width:4.5;stroke-dasharray:8 28;
  animation:heart-current 1.6s linear infinite}
.heart-traces.is-paused path.heart-pulse{animation-play-state:paused}
@keyframes heart-current{from{stroke-dashoffset:0}to{stroke-dashoffset:-72}}
.heart-head{position:relative;z-index:1;align-self:center;padding-right:28px}
.heart-title{font-size:36px;line-height:1.18;font-weight:800;color:#14231A;text-wrap:balance}
.heart-hl{color:var(--green-d)}
.heart-intro{color:#33473A;font-size:15.5px;line-height:1.55;margin-top:14px}
/* Logo chip: gold pins inset 12% from each corner */
.heart-chip-cell{position:relative;z-index:1;display:grid;place-items:center}
.heart-chip-pins{position:relative;width:min(calc(100% - 28px),260px);aspect-ratio:1;transition:transform .25s ease}
.heart-chip-pins::before,.heart-chip-pins::after{content:"";position:absolute;pointer-events:none}
.heart-chip-pins::before{left:12%;right:12%;top:-14px;bottom:-14px;
  background:repeating-linear-gradient(90deg,var(--pin) 0 8px,transparent 8px 20px) top/100% 14px no-repeat,
             repeating-linear-gradient(90deg,var(--pin) 0 8px,transparent 8px 20px) bottom/100% 14px no-repeat}
.heart-chip-pins::after{top:12%;bottom:12%;left:-14px;right:-14px;
  background:repeating-linear-gradient(0deg,var(--pin) 0 8px,transparent 8px 20px) left/14px 100% no-repeat,
             repeating-linear-gradient(0deg,var(--pin) 0 8px,transparent 8px 20px) right/14px 100% no-repeat}
.heart-chip{position:relative;z-index:1;width:100%;height:100%;background:var(--chip);border:2px solid var(--chip-edge);border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;
  box-shadow:0 10px 28px rgba(10,20,45,.35)}
.heart-chip img{height:52%;width:auto;display:block}
.heart-chip-name{font-family:'Archivo',sans-serif;font-weight:900;font-size:19px;letter-spacing:.02em;color:#fff;line-height:1.15;margin-top:10px}
.heart-chip-year{font-size:11px;font-weight:600;letter-spacing:.2em;color:#8FE3D3;margin-top:3px}
/* Cards: headline only until hover, keyboard focus or tap */
/* Cards are capped at 88% of their grid cell (centred) with tighter padding,
   so they read about 12% smaller; text sizes are unchanged. Translucent
   white with a backdrop blur lets the board show through; more opaque when
   revealed so the opened text is easiest to read. */
.heart-box{--accent:var(--green-d);position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;
  width:100%;max-width:88%;justify-self:center;
  background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-radius:18px;padding:18px 20px 40px;box-shadow:0 6px 22px rgba(20,60,30,.10);
  transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
@media (max-width:1199px){.heart-box{max-width:94%}} /* narrower columns: a smaller cap keeps cards from growing taller */
/* Touch devices and narrow screens: no blur. Re-blurring the animated
   background behind every card on each frame makes phones stutter. */
@media (hover:none),(max-width:960px){.heart-box{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:rgba(255,255,255,.85)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.heart-box{background:rgba(255,255,255,.85)}}
/* Card images (Keith 1). Each card shows its illustration under a white
   veil that is strongest in the middle, where the title sits; revealed
   cards get an even, stronger veil so the description reads cleanly.
   js/heart.js adds .imgs-on when the section nears the viewport, so the
   images never compete with the hero for bandwidth. */
.heart-pos-mission{--card-img:url('/assets/heart-cards/card-mission.webp')}
.heart-pos-areas{--card-img:url('/assets/heart-cards/card-project-areas.webp')}
.heart-pos-ages{--card-img:url('/assets/heart-cards/card-age-divisions.webp')}
.heart-pos-regions{--card-img:url('/assets/heart-cards/card-regions.webp')}
.heart-pos-responsibly{--card-img:url('/assets/heart-cards/card-responsibility.webp')}
.heart-pos-founding{--card-img:url('/assets/heart-cards/card-founding-class.webp')}
.heart-grid.imgs-on .heart-box{background-color:#fff;
  background-image:radial-gradient(ellipse 70% 65% at 50% 50%,rgba(255,255,255,.94) 0%,rgba(255,255,255,.8) 55%,rgba(255,255,255,.45) 100%),var(--card-img);
  background-size:cover;background-position:center;background-repeat:no-repeat}
.heart-grid.imgs-on .heart-box.is-open{background-image:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)),var(--card-img)}
@media (hover:hover) and (pointer:fine){
  .heart-grid.imgs-on .heart-box:hover,.heart-grid.imgs-on .heart-box:has(.heart-toggle:focus-visible){background-image:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)),var(--card-img)}
}
.heart-a1{--accent:#3E7C33}.heart-a2{--accent:#1F6FC0}.heart-a3{--accent:#007C7C}
.heart-a4{--accent:#B35A0F}.heart-a5{--accent:#1E8449}.heart-a6{--accent:#7D5BA6}
.heart-box-title{font-size:24px;line-height:1.2;text-align:center;color:var(--accent)}
.heart-toggle{all:unset;cursor:pointer;display:block;width:100%;text-align:center;color:inherit;font:inherit}
.heart-toggle::after{content:"";position:absolute;inset:0;border-radius:18px}
.heart-box:has(.heart-toggle:focus-visible){outline:3px solid var(--accent);outline-offset:3px}
.heart-plus{position:absolute;right:16px;bottom:14px;width:26px;height:26px;border-radius:50%;background:#EAF4EA;color:#3E7C33;
  transition:transform .3s ease,background-color .3s ease,color .3s ease}
.heart-plus::before,.heart-plus::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:2px;border-radius:1px;
  background:currentColor;transform:translate(-50%,-50%)}
.heart-plus::after{transform:translate(-50%,-50%) rotate(90deg)}
.heart-desc{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .3s ease}
.heart-desc>div{overflow:hidden;min-height:0}
.heart-desc p{padding-top:10px;font-size:14.5px;line-height:1.5;color:#26332A}
.heart-box.is-open{transform:scale(1.03);z-index:5;box-shadow:0 14px 34px rgba(20,60,30,.18);background-color:rgba(255,255,255,.92)}
.heart-box.is-open .heart-desc{grid-template-rows:1fr;opacity:1}
.heart-box.is-open .heart-plus{transform:rotate(45deg);background:#5AAA47;color:#fff}
@media (hover:hover) and (pointer:fine){
  .heart-box:hover,.heart-box:has(.heart-toggle:focus-visible){transform:scale(1.03);z-index:5;box-shadow:0 14px 34px rgba(20,60,30,.18);background-color:rgba(255,255,255,.92)}
  .heart-box:hover .heart-desc{grid-template-rows:1fr;opacity:1}
  .heart-box:hover .heart-plus{transform:rotate(45deg);background:#5AAA47;color:#fff}
  .heart-chip-pins:hover{transform:scale(1.02)}
}
@media (prefers-reduced-motion:reduce){
  .heart-box,.heart-desc,.heart-plus,.heart-chip-pins{transition:none}
  .heart-traces path.heart-pulse{display:none}
  .heart-box:hover,.heart-box.is-open,.heart-box:has(.heart-toggle:focus-visible),.heart-chip-pins:hover{transform:none}
}
@media (max-width:960px){
  .heart{padding:56px 0}
  .heart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;
    grid-template-areas:"head head" "chip chip" "mission areas" "ages regions" "responsibly founding"}
  .heart-head{padding-right:0}
  .heart-chip-pins{width:min(calc(100% - 28px),240px)}
  .heart-box{max-width:92%}
  /* Two-column circuit (js/heart.js drawTwoCol): room below the chip's pins
     for the bus that feeds the first row of cards. */
  .heart-chip-cell{padding-bottom:28px}
}
@media (max-width:640px){
  .heart-grid{grid-template-columns:minmax(0,1fr);gap:18px;
    grid-template-areas:"head" "chip" "mission" "areas" "ages" "regions" "responsibly" "founding"}
  .heart-title{font-size:30px}
  .heart-intro{font-size:15px}
  /* Mobile circuit (after docs/design/mobile-circuit-preview-v2.html): a smaller chip
     heads a centre spine plus two rails that run in the 17px side margins
     left beside the cards. */
  .heart-traces{display:block}
  .heart-chip-pins{width:min(calc(100% - 28px),190px)}
  .heart-chip-name{font-size:16px}
  .heart-chip-cell{padding-bottom:0}
  .heart-box{max-width:none;width:calc(100% - 34px);padding:18px 18px 40px}
  .heart-box-title{font-size:21px}
}
/* MORPH BACKGROUND (homepage): fixed particle layer from js/morph-bg.js.
   It sits above section backgrounds but below all content: on .morph-page
   every content wrapper is lifted to z-index 1. The poster shows until the
   canvas is live (and stays for reduced motion or no WebGL). The layer starts
   fully clipped; js/morph-bg.js reveals it below the green strip. */
.morph-bg{position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:0;pointer-events:none;opacity:.28;overflow:hidden;clip-path:inset(100% 0 0 0)}
.morph-bg{--md:min(75vh,90vw);--mx:calc(50vw - var(--md) / 2);--my:calc(50vh - var(--md) / 2)}
.morph-bg::before{content:"";position:absolute;inset:0;background:no-repeat var(--mx) var(--my)/var(--md) var(--md);transition:opacity .6s ease}
.morph-bg.show-poster::before{background-image:url('/assets/morph/poster.webp?v=2')}
.morph-bg-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .6s ease}
.morph-bg.is-live::before{opacity:0}
.morph-bg.is-live .morph-bg-canvas{opacity:1}
/* The sticky header and the hero are already positioned and later in the DOM. */
.morph-page > .demo-bar,.morph-page .reg-strip > .wrap,.morph-page .heart > .wrap,
.morph-page > .wrap,.morph-page footer > .wrap{position:relative;z-index:1}
/* Phones and tablets (same test as js/morph-bg.js): fainter, so text over it stays easy to read */
@media (pointer:coarse),(max-width:767px){.morph-bg{opacity:.15}}
@media (prefers-reduced-motion:reduce){.morph-bg::before,.morph-bg-canvas{transition:none}}
/* ENTRANT ACCOUNT (Worker-rendered pages under /account, src/account.js) */
.acct{background:var(--soft);padding:36px 0 56px;min-height:60vh}
.acct-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:20px;min-width:0}
.acct-narrow{max-width:480px;margin:0 auto}
.acct-title{font-size:30px;font-weight:800;text-wrap:balance}
.acct-lead{color:var(--muted);margin-top:8px}
.acct-lead a,.acct-help a,.acct-note a{color:var(--green-d);font-weight:600}
.acct-head{margin-bottom:16px}
.acct-h2{font-size:21px;font-weight:800;margin-bottom:12px}
.acct-h3{font-family:'Archivo',sans-serif;font-size:16px;font-weight:800;color:var(--dark);margin:24px 0 8px}
.acct-form label,.acct-label{display:block;font-weight:600;font-size:13.5px;margin:14px 0 6px;color:var(--dark)}
.acct-form input,.acct-form select,.acct-form textarea{width:100%;padding:12px 14px;border:1px solid #C9D4C7;border-radius:10px;font:inherit;font-size:16px;background:#fff;color:var(--ink);min-width:0}
.acct-form textarea{resize:vertical;line-height:1.5}
.acct-form input:disabled,.acct-form select:disabled,.acct-form textarea:disabled{background:var(--soft);color:var(--muted)}
.acct-form :focus-visible,.acct :focus-visible{outline:2px solid var(--green);outline-offset:2px}
.acct-form button{cursor:pointer;font:inherit;font-weight:600}
.acct-form .btn.outline,.acct-logout .btn.outline{padding:9px 20px;border-color:var(--green-d);color:var(--green-d)}
.acct-submit{margin-top:20px;width:100%;border:0;font-size:16px;padding:13px 22px}
.acct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start}
.acct-grid .full{grid-column:1/-1}
.acct-grid .full .btn,.acct-actions{margin-top:16px}
.acct-actions{display:flex;flex-wrap:wrap;gap:12px}
.acct-actions .btn{border:0}
.acct-actions .btn.outline{border:2px solid var(--green-d)}
.acct-help{color:var(--muted);font-size:14px;margin-top:8px}
.acct-help-inline{color:var(--muted);font-size:13.5px;font-weight:400}
.acct-value{margin:0;font-weight:600}
.acct-check{display:flex!important;gap:10px;align-items:flex-start;font-weight:500!important;font-size:14.5px!important}
.acct-check input{width:18px!important;height:18px;flex:none;margin-top:3px;accent-color:var(--green-d)}
.acct-note{border-radius:12px;padding:12px 16px;margin:0 0 16px;border:1px solid;font-size:15px}
.acct-note-ok{background:#E7F3E2;border-color:#9FCF8F}
.acct-note-error{background:#FDECEC;border-color:#E3A0A0;color:#7A1C1C}
.acct-note-warn{background:#FFF6E0;border-color:#E5B45C}
.acct-note-info{background:#EEF4FB;border-color:#A9C4E4}
.acct-ref{color:var(--muted);margin:0 0 12px;font-size:14.5px}
.acct-status{border-radius:var(--radius);padding:22px 26px;margin-bottom:20px;border:2px solid}
.acct-status h2{font-size:22px;font-weight:800}
.acct-status p{margin-top:6px}
.acct-status-due{background:#FFF6E0;border-color:#E5B45C}
.acct-status-ok{background:#E7F3E2;border-color:var(--green)}
.acct-status-off{background:#F1F3F4;border-color:#B0BEC5}
.acct-pay{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px}
.acct-pay .btn{border:0;font:inherit;font-weight:600}
.acct-pay .btn:disabled{background:#B8C5B4;cursor:not-allowed}
.acct-pay span{font-size:14px;color:#6B4E00}
.acct-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.acct-dates{display:grid;gap:12px;margin:0}
.acct-dates dt{font-size:13px;color:var(--muted)}
.acct-dates dd{margin:0;font-weight:600;color:var(--dark)}
.acct-table{width:100%;border-collapse:collapse;font-size:15px}
.acct-table th,.acct-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}
.acct-table th{font-size:12.5px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.acct-row-action{text-align:right!important}
.acct-link-btn{background:none;border:0;color:#A12B2B;font:inherit;font-weight:600;cursor:pointer;padding:6px 4px;text-decoration:underline}
.acct-add{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.acct-add summary{cursor:pointer;font-weight:700;color:var(--green-d);padding:6px 0}
.acct-teams{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.acct-teams a{padding:8px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--dark);font-weight:600;text-decoration:none}
.acct-teams a[aria-current="page"]{background:var(--green);border-color:var(--green);color:#fff}
.acct-submitted{background:#E7F3E2;border-radius:12px;padding:12px 16px;font-weight:600}
.acct-kv{display:grid;gap:12px;margin:16px 0 0}
.acct-kv dt{font-size:13px;color:var(--muted)}
.acct-kv dd{margin:0;overflow-wrap:anywhere}
.acct-kv a{color:var(--green-d)}
.acct-pre{white-space:pre-wrap}
.acct-logout{margin:0}
.acct-logout .btn.outline{background:#fff;font:inherit;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}
@media (max-width:640px){.acct-logout .btn.outline{padding:7px 14px;font-size:13.5px}}
.acct-foot{margin-top:0;padding:24px 0}
.acct-foot .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:center}
.acct-foot p{margin:0}
@media (max-width:900px){.acct-cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .acct{padding:20px 0 40px}
  .acct-card{padding:20px 16px}
  .acct-status{padding:18px 16px}
  .acct-title{font-size:26px}
  .acct-grid{grid-template-columns:minmax(0,1fr)}
  .acct-table thead{display:none}
  .acct-table,.acct-table tbody,.acct-table tr,.acct-table td{display:block;width:100%}
  .acct-table tr{border-bottom:1px solid var(--line);padding:8px 0}
  .acct-table td{border:0;padding:2px 0}
  .acct-table td[data-label]::before{content:attr(data-label) ": ";color:var(--muted);font-size:13px}
  .acct-row-action{text-align:left!important}
  .acct-actions .btn{flex:1 1 100%;text-align:center}
}
/* Thank-you page: account created at registration */
.ty-account{margin-top:28px;border:1px solid var(--line);border-radius:14px;padding:20px 22px}
.ty-account .ty-h2{margin-top:0}
.ty-account p{margin-top:8px}
.ty-account .btn{margin-top:16px}
.ty-secret{margin-top:12px;background:#FFF6E0;border:2px solid #E5B45C;border-radius:12px;padding:14px 16px}
.ty-secret-warn{margin:0!important}
.ty-cred{display:grid;gap:8px;margin:10px 0 0}
.ty-cred dt{font-size:13px;color:var(--muted)}
.ty-cred dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.ty-cred-pw{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:20px;letter-spacing:.04em;user-select:all}
.ty-account-pay{font-size:14.5px}
