/* Character Studies intake. The BAYC gallery invitation retains its own stylesheet. */
body[data-page="ape"] .ape-page{padding-block:0 12px}
body[data-page="ape"] .ape-kicker{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--ink);padding:12px 0 8px}
body[data-page="ape"] .ape-content{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:start;padding-block:clamp(18px,2.3vw,32px) 12px}
body[data-page="ape"] .ape-left,body[data-page="ape"] .ape-right{min-width:0}
body[data-page="ape"] .ape-intro-title{min-width:0}
body[data-page="ape"] .ape-intro-title h1{font-size:clamp(38px,4.2vw,62px);font-weight:760;line-height:.98;letter-spacing:-.04em;margin:8px 0 0}
body[data-page="ape"] .ape-intro-title h1::after{content:"";display:block;width:84px;border-top:5px solid var(--accent);margin-top:25px}
body[data-page="ape"] .ape-study-example{width:min(100%,500px);margin-top:20px}
body[data-page="ape"] .ape-study-example img{display:block;width:100%;height:auto}
body[data-page="ape"] .ape-description{max-width:56ch;font-size:clamp(1rem,1.3vw,1.15rem);line-height:1.55;padding-top:clamp(24px,2.8vw,40px);margin:0}
body[data-page="ape"] .ape-form-area{width:100%;margin-top:clamp(17px,2.2vw,28px);border-top:1px solid var(--ink);padding-top:12px}
body[data-page="ape"] .ape-form-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}
body[data-page="ape"] .ape-form{display:grid;gap:12px}
body[data-page="ape"] .ape-field{display:grid;gap:7px}
body[data-page="ape"] .ape-field label,body[data-page="ape"] .ape-optin label{font:600 .77rem/1.35 var(--mono);letter-spacing:.02em}
body[data-page="ape"] .ape-field input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid var(--ink);border-radius:0;padding:10px 12px;background:transparent;color:var(--ink);font:inherit}
body[data-page="ape"] .ape-field input:focus-visible,body[data-page="ape"] .ape-optin input:focus-visible,body[data-page="ape"] .ape-submit:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body[data-page="ape"] .ape-field input[aria-invalid="true"]{border-color:#a42e16}
body[data-page="ape"] .ape-helper,body[data-page="ape"] .ape-privacy,body[data-page="ape"] .ape-optin-copy{font:400 .78rem/1.45 var(--mono);color:var(--muted);margin:0}
body[data-page="ape"] .ape-field-error{color:#8d2411;font:.78rem/1.4 var(--mono);margin:0}
body[data-page="ape"] .ape-optin{border-top:1px solid var(--ink);padding-top:14px;margin-top:5px}
body[data-page="ape"] .ape-optin-control{display:flex;align-items:flex-start;gap:11px}
body[data-page="ape"] .ape-optin input{width:19px;height:19px;flex:none;margin:0;accent-color:var(--accent)}
body[data-page="ape"] .ape-optin-copy{padding-left:30px;margin-top:6px}
body[data-page="ape"] .ape-submit{justify-self:start;min-height:44px;padding:6px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ink);font:700 .83rem/1.3 var(--mono);cursor:pointer}
body[data-page="ape"] .ape-submit:hover,body[data-page="ape"] .ape-submit:focus-visible{color:var(--accent);border-bottom-color:var(--accent)}
body[data-page="ape"] .ape-submit:disabled{opacity:.55;cursor:wait}
body[data-page="ape"] .ape-status{font:.83rem/1.5 var(--mono);margin:0}
body[data-page="ape"] .ape-success{border-top:3px solid var(--accent);padding-top:18px}
body[data-page="ape"] .ape-success h2{font-size:clamp(1.5rem,3vw,2.25rem);margin:0 0 10px}
body[data-page="ape"] .ape-success p{margin:0;max-width:42ch}
body[data-page="ape"] .ape-success .ape-return{margin-top:22px}
body[data-page="ape"] .ape-return a{display:inline-block;padding-bottom:2px;border-bottom:2px solid transparent;color:var(--ink);font:700 .83rem/1.3 var(--mono);letter-spacing:.02em;text-decoration:none}
body[data-page="ape"] .ape-return a:hover,body[data-page="ape"] .ape-return a:focus-visible{color:var(--accent);border-bottom-color:var(--accent)}
body[data-page="ape"] .ape-return a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body[data-page="ape"] .ape-honeypot,body[data-page="ape"] [hidden]{display:none!important}

/* Extension's desktop three-row shell gives the header, content, and footer
   their established one-screen relationship. Content can still grow naturally. */
@media(min-width:900px){
 body[data-page="ape"]{height:100dvh;min-height:600px;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 body[data-page="ape"]>main{min-height:0;display:block}
 body[data-page="ape"] .ape-page{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);padding:0}
 body[data-page="ape"] .ape-content{min-height:0;padding:12px 0 0}
 body[data-page="ape"] .ape-description{padding-top:32px}
 body[data-page="ape"] .ape-form-area{margin-top:18px;padding-top:10px}
 body[data-page="ape"] .ape-form-heading{margin-bottom:10px}
 body[data-page="ape"] .ape-form{gap:11px}
 body[data-page="ape"] .ape-field{gap:6px}
 body[data-page="ape"] .ape-optin{padding-top:12px;margin-top:2px}
}
@media(max-width:700px){
 body[data-page="ape"] .ape-kicker{flex-wrap:wrap}
 body[data-page="ape"] .ape-content{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "description" "study" "form";gap:24px}
 body[data-page="ape"] .ape-left,body[data-page="ape"] .ape-right{display:contents}
 body[data-page="ape"] .ape-intro-title{grid-area:title}
 body[data-page="ape"] .ape-description{grid-area:description;padding-top:0}
 body[data-page="ape"] .ape-study-example{grid-area:study;width:min(100%,320px);margin-top:0}
 body[data-page="ape"] .ape-form-area{grid-area:form;margin-top:0;padding-top:18px}
}
