/* Candidate pages: /register (open sign-up) and /candidate-terms (personal-link terms). Builds on styles.css. */
.wrap{width:min(840px,100% - 2.5rem);margin-inline:auto}
.reg-hero{padding:clamp(2.6rem,6vw,4.2rem) 0 2.2rem}
.reg-hero h1{font-size:clamp(2.1rem,4.2vw,3.1rem)}
.reg-hero .lede{max-width:none}
.promise-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem;padding:0;list-style:none}
.promise-row li{display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.45rem .95rem;font-size:.92rem;font-weight:600;color:var(--plum)}
.promise-row svg{width:18px;height:18px;color:var(--rose-deep)}
.reg-steps{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.85rem;font-weight:600;color:var(--muted);margin:0 0 1.4rem}
.reg-steps span{display:inline-flex;align-items:center;gap:.4rem}
.reg-steps b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--lavender);color:var(--purple-dark);font-size:.78rem}
.reg-steps .sep{width:24px;height:2px;background:var(--line)}
.terms-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(1.4rem,3vw,2.2rem);box-shadow:0 30px 60px -40px rgba(46,26,71,.4)}
.terms-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.terms-head h2{font-size:clamp(1.5rem,2.6vw,1.95rem);margin:0}
.version{display:inline-block;margin-top:.4rem;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--purple-dark);background:var(--lavender);border-radius:999px;padding:.2rem .7rem}
.terms-meta{font-size:.9rem;color:var(--muted);margin:0 0 1rem}
.glance{background:var(--lavender);border:1px solid #D9CBEA;border-left:5px solid var(--purple);border-radius:16px;padding:1.3rem 1.5rem;margin-bottom:1.4rem}
.glance h3{font-family:var(--sans);font-size:1rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--purple-dark);margin:0 0 .8rem}
.glance ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.7rem 1.4rem}
.glance li{position:relative;padding-left:1.7rem;font-size:.93rem;color:#2F2440;line-height:1.5}
.glance li::before{content:"";position:absolute;left:0;top:.2rem;width:18px;height:18px;border-radius:50%;background:var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
.glance strong{color:var(--plum)}
.terms-tools{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:0 0 .6rem}
.linkbtn{background:none;border:0;padding:.3rem 0;min-height:24px;font:inherit;font-weight:600;font-size:.92rem;color:var(--purple-dark);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.dl{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;font-size:.92rem;color:var(--purple-dark)}
.dl svg{width:18px;height:18px}
details.term{border-top:1px solid var(--line)}
details.term:last-of-type{border-bottom:1px solid var(--line)}
details.term summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.95rem .2rem;font-weight:600;color:var(--plum);min-height:44px}
details.term summary::-webkit-details-marker{display:none}
details.term summary::after{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%235B2A86' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;transition:transform .2s}
details.term[open] summary::after{transform:rotate(180deg)}
details.term summary:focus-visible{outline:3px solid var(--purple);outline-offset:2px;border-radius:6px}
.term-body{padding:0 .2rem 1.1rem;font-size:.95rem;color:#3E3650}
.term-body p{margin:0 0 .7em}
.term-body ul{margin:0 0 .8em;padding-left:1.2rem}
.term-body li{margin-bottom:.3rem}
.terms-foot{margin:1.1rem 0 0;font-size:.92rem;color:var(--muted)}
.form-wrap{margin:2.2rem 0 4rem}
.form-intro{font-size:.95rem;color:var(--muted);margin:0 0 1.6rem}
.req{font-weight:600;color:var(--rose-ink);font-size:.8rem;text-transform:lowercase;margin-left:.3rem}
.cand-form .form-section{padding-bottom:1.6rem;border-bottom:1px solid var(--line)}
.cand-form .form-section:last-of-type{border-bottom:0}
.sec-num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--plum);color:#fff;font-family:var(--sans);font-size:.85rem;font-weight:700;margin-right:.55rem;vertical-align:.15em}
.field input[readonly]{background:var(--sand);color:var(--muted)}
.field input[type=file]{font:inherit;font-size:.95rem;max-width:100%}
.choice-row.three{grid-template-columns:repeat(3,1fr)}
.choice-row.four{grid-template-columns:repeat(4,1fr)}
.choice-row.one{grid-template-columns:1fr}
.choice>.hint{display:block;font-weight:400;color:var(--muted);font-size:.85rem;margin:-.3rem 0 .6rem}
.choice-opt{min-height:44px}
.cand-form .consent{margin:.2rem 0 .8rem}
.cand-form .consent .hint{display:block;margin-top:.3rem;color:var(--muted);font-size:.84rem}
.consent.optional{background:#fff;border:1.5px dashed #D9CBEA}
.sign-box{background:var(--blush);border:1px solid #EBC6D3;border-radius:16px;padding:1.2rem 1.3rem .2rem;margin-top:1.2rem}
.sign-box .field input#f-signature_name{background:#fff;font-family:var(--serif);font-size:1.25rem;font-style:italic}
.sig-note{display:block;margin-top:.35rem;font-size:.85rem;color:var(--purple-dark)}
.submit-note{font-size:.88rem;color:var(--muted);text-align:center;margin:.8rem 0 0}
.cand-form .btn-block{font-size:1.05rem;padding:1.05rem 1.4rem;width:100%}
.cand-form .btn-block[disabled]{opacity:.65;cursor:progress}
/* errors (WCAG 3.3.1, 3.3.3) */
.error-summary{border:3px solid #A32D1F;border-radius:14px;padding:1rem 1.2rem;margin:0 0 1.6rem;background:#fff}
.error-summary h2{font-family:var(--sans);font-size:1.05rem;margin:0 0 .5rem;color:#A32D1F}
.error-summary ul{margin:0;padding-left:1.1rem}
.error-summary a{color:#A32D1F;font-weight:600}
.error-summary:focus{outline:3px solid var(--purple);outline-offset:3px}
.field-error{display:block;color:#A32D1F;font-weight:600;font-size:.88rem;margin:.35rem 0 0}
.choice.has-error .choice-opt{border-color:#A32D1F}
.choice.has-error legend{color:#A32D1F}
.ts-box{margin:1.2rem 0 .4rem;min-height:65px}
.ts-placeholder{display:flex;align-items:center;gap:.6rem;border:1.5px dashed #CEC3D8;border-radius:10px;padding:.9rem 1rem;color:var(--muted);font-size:.88rem;background:#fff;max-width:320px}
.server-error{margin:1rem 0 0;color:#A32D1F;font-weight:600;font-size:.95rem}
/* state cards */
.state{padding:clamp(3rem,7vw,5.5rem) 0 5rem}
.state-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:clamp(1.8rem,4vw,3rem);box-shadow:0 30px 60px -36px rgba(46,26,71,.45)}
.state-badge{width:64px;height:64px;border-radius:50%;background:var(--lavender);display:grid;place-items:center;margin-bottom:1.2rem}
.state-badge.warn{background:var(--blush)}
.state-badge svg{width:34px;height:34px}
.state h1{font-size:clamp(2rem,4vw,2.8rem)}
.state ul{padding-left:1.2rem;color:#3E3650}
.state li{margin-bottom:.45rem}
.state .ref{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;background:var(--sand);border-radius:14px;padding:1rem 1.2rem;font-size:.92rem;margin:1.4rem 0}
.state .ref b{color:var(--plum)}
.state .lede{max-width:none}
.loading-dots{color:var(--muted);font-weight:600}
/* /register layout */
.reg-aside .promise-list{list-style:none;padding:0;margin:0 0 1.6rem;display:grid;gap:.6rem}
.reg-aside .promise-list li{display:flex;gap:.6rem;align-items:flex-start;font-size:.95rem;color:#2F2440}
.reg-aside .promise-list svg{flex:none;width:20px;height:20px;margin-top:.15rem;color:var(--rose-deep)}
@media (max-width:760px){.glance ul,.choice-row.three,.choice-row.four{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.glance ul{grid-template-columns:1fr}.reg-steps .sep{display:none}}
@media print{.site-header,.site-footer,.skip-link,.terms-tools,.nav-toggle{display:none!important}details.term>.term-body{display:block}}
.terms-toc{list-style:none;padding-left:0;columns:2;column-gap:2rem}
.terms-toc li{margin-bottom:.35rem;break-inside:avoid}
@media (max-width:640px){.terms-toc{columns:1}}
.state h1[tabindex="-1"]:focus,#h-form:focus{outline:none}
@media print{.legal .breadcrumb,.legal .dl,nav[aria-label="Sections of these terms"]{display:none!important}.legal{padding:0}body{background:#fff}}

.terms-smallprint{font-size:.78rem;color:var(--muted,#6b6577);margin:1.2rem 0 0;letter-spacing:.01em}
