/* WordPress-only styles. Loaded after the static template's CSS (assets/css/…), which stays untouched. */

/* ===== Admin bar (logged-in users): keep the fixed header below it ===== */
.admin-bar header.top{top:32px}
@media (max-width:782px){.admin-bar header.top{top:46px}}
@media (max-width:600px){.admin-bar header.top{top:0}}

/* ===== Fallback template (index.php) ===== */
.af26-default{padding-top:calc(var(--hh, 72px) + 48px);padding-bottom:96px}

/* ===== Contact Form 7 inside the static form markup ===== */
/* CF7 wraps the <form> in div.wpcf7 — make the form itself the layout child again */
.page .wpcf7{display:contents}
.page .wpcf7 form .hidden-fields-container{display:none}
/* …and CF7 wraps every control in a span — let the control be the label's direct child, as in the static markup */
.page .wpcf7-form-control-wrap{display:contents}
.page .wpcf7-not-valid-tip{display:block;margin-top:4px;font-size:11px;line-height:1.3;color:#FF8A80}
.page .wpcf7 form .wpcf7-response-output{margin:0;padding:0;border:0;font-size:16px;color:#C9C2F2}
.page .wpcf7 form.invalid .wpcf7-response-output,
.page .wpcf7 form.failed .wpcf7-response-output,
.page .wpcf7 form.aborted .wpcf7-response-output,
.page .wpcf7 form.spam .wpcf7-response-output{color:#FF8A80}
.page .wpcf7 form.submitting button[type="submit"]{opacity:.6;pointer-events:none}

/* ===== Legacy pages (page.php): Join Us, Terms of Use, Privacy Policy =====
   No Figma design yet — built from the tokens, hero mirrors the Contact page hero. */
.af26-legacy{padding-top:var(--hh,85px);font-family:var(--inter);color:var(--ink)}
.af26-legacy .wrap{max-width:1344px}
.af26-hero{background:var(--navy)}
.af26-hero .wrap{padding-top:120px;padding-bottom:60px;display:flex;flex-direction:column;gap:32px}
.af26-hero h1{margin:0;font-family:var(--cambria);font-weight:400;font-size:clamp(40px,5.6vw,80px);line-height:1.17;color:#fff}
.af26-hero p{margin:0}
.af26-hero p.d{max-width:719px;font-size:20px;line-height:28px;color:var(--line)}

.af26-legal .wrap{padding-top:80px;padding-bottom:96px;display:flex;align-items:flex-start;gap:72px}
.af26-toc{flex:0 0 300px;position:sticky;top:calc(var(--hh,85px) + 24px);max-height:calc(100vh - var(--hh,85px) - 48px);overflow:auto;font-size:14px;line-height:1.4}
.af26-toc ol,.af26-toc ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;color:var(--slate)}
.af26-toc a{color:var(--slate);text-decoration:none}
.af26-toc a:hover,.af26-toc a:focus-visible{color:var(--indigo);text-decoration:underline}
.af26-toc > p{margin:12px 0 0;color:var(--slate)}
.af26-toc > ol + p,.af26-toc > ul + p{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.af26-toc > p a{font-weight:600;color:var(--indigo)}
.af26-prose{flex:1 1 0;min-width:0;max-width:760px;font-size:17px;line-height:1.65;color:var(--slate)}
.af26-prose > :first-child{margin-top:0}
.af26-prose h2{margin:48px 0 16px;font-family:var(--cambria);font-weight:400;font-size:32px;line-height:1.2;color:var(--navy);scroll-margin-top:calc(var(--hh,85px) + 24px)}
.af26-prose h3{margin:32px 0 12px;font-size:20px;font-weight:600;line-height:1.3;color:var(--navy);scroll-margin-top:calc(var(--hh,85px) + 24px)}
.af26-prose p,.af26-prose ul,.af26-prose ol{margin:0 0 16px}
.af26-prose ul,.af26-prose ol{padding-left:22px}
.af26-prose li{margin-bottom:6px}
.af26-prose a{color:var(--indigo)}
.af26-prose strong{color:var(--ink)}

.af26-jobs .wrap{padding-top:80px;padding-bottom:96px}
.af26-jobs ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.af26-jobs li{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 0;border-bottom:1px solid var(--line)}
.af26-jobs h2{margin:0 0 6px;font-family:var(--cambria);font-weight:400;font-size:28px;line-height:1.2;color:var(--navy)}
.af26-jobs p{margin:0;font-size:15px;color:var(--slate)}
.af26-jobs a{flex:none;font-size:16px;font-weight:500;color:var(--indigo);text-decoration:none}
.af26-jobs a:hover,.af26-jobs a:focus-visible{text-decoration:underline}
.af26-legacy .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media (max-width:900px){
.af26-legal .wrap{flex-direction:column;gap:40px;padding-top:56px;padding-bottom:64px}
.af26-toc{position:static;flex:none;max-height:none;width:100%;padding-bottom:32px;border-bottom:1px solid var(--line)}
.af26-jobs .wrap{padding-top:56px;padding-bottom:64px}
}
@media (max-width:760px){
.af26-hero .wrap{padding-top:88px;padding-bottom:48px}
.af26-hero p.d{font-size:18px;line-height:26px}
.af26-hero br{display:none}
}
@media (max-width:560px){
.af26-legacy .wrap{padding-left:16px;padding-right:16px}
.af26-jobs li{flex-direction:column;align-items:flex-start;gap:12px}
.af26-prose h2{font-size:26px}
}
