/* Shared geometry for contact languages. Minimum sizes allow longer text to grow. */
.contact-page { line-height:1.5; }
.contact-copy { min-width:0; min-height:380px; }
.contact-card { box-sizing:border-box; min-height:480px; }
.contact-card h2 { line-height:1.2; }
.contact-method { box-sizing:border-box; min-height:78px; }
.contact-method:first-child, .contact-method:last-child { min-height:100px; }
.contact-method strong { line-height:20px; }
.contact-method a, .contact-method span { line-height:21px; }
.contact-method > a, .contact-method > span { display:block; }
.contact-method .contact-secondary-email,
.contact-method .contact-secondary-email a { line-height:18px; }
.contact-section > h2 { line-height:32px; }
.contact-form-head { min-height:64px; }
.contact-field label { line-height:20px; }
.contact-field input { height:40px; }
.contact-badge { line-height:18px; }
.contact-verification { min-height:204px; }
.contact-verification button {
    box-sizing:border-box; font-size:14px; line-height:20px; height:26px; padding:2px 6px;
}
.contact-note { line-height:22px; }
.contact-form-actions { min-height:42px; }
.contact-submit { font-size:14px; line-height:18px; }
.contact-form-panel form > p.contact-note { margin:13px 0; min-height:22px; }
.contact-helper { box-sizing:border-box; line-height:24px; min-height:78px; }
/* Contact-only navigation/footer rules leave the other pages' layout unchanged. */
.site-shell:has(.contact-page) .nav-group > a:not(.brand-link) {
    box-sizing:border-box; width:112px; min-height:40px; line-height:20px; font-size:14px;
}
.site-shell:has(.contact-page) .footer-heading { line-height:20px; }
.site-shell:has(.contact-page) .footer-inner > div { min-height:204px; }
@media (max-width:900px) {
    .contact-form-panel form > p.contact-note { min-height:44px; }
}
@media (max-width:720px) {
    .site-shell:has(.contact-page) .nav-group {
        display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .site-shell:has(.contact-page) .nav-group > a:not(.brand-link) {
        width:auto; min-height:56px; overflow-wrap:anywhere;
    }
    .site-shell:has(.contact-page) .brand-link { grid-column:1 / -1; }
}
@media (max-width:620px) {
    .contact-copy { min-height:540px; }
    .contact-method:last-child { min-height:120px; }
    .contact-card { min-height:500px; }
    .contact-form-head { min-height:150px; }
    .contact-verification { min-height:264px; }
    .contact-verification .contact-field > div { min-height:114px; align-content:flex-start; }
    #contact-captcha-image { max-width:100%; object-fit:contain; }
    .contact-form-actions { min-height:82px; align-content:flex-start; }
    .contact-form-panel form > p.contact-note { min-height:66px; }
    .contact-helper { min-height:150px; }
    .site-shell:has(.contact-page) .footer-inner > div:nth-child(-n+2) { min-height:130px; }
    .site-shell:has(.contact-page) .footer-bottom { min-height:60px; }
}
@media (max-width:360px) {
    .contact-copy { min-height:700px; }
    .contact-card h2 { min-height:53px; }
    .contact-method:first-child { min-height:120px; }
    .contact-method:last-child { min-height:164px; }
    .contact-card { min-height:570px; }
    .contact-section-note { min-height:44.8px; }
    .contact-form-head { min-height:175px; }
    .contact-verification { min-height:285px; }
    .contact-form-panel form > p.contact-note { min-height:88px; }
    .contact-helper { min-height:174px; }
    .site-shell:has(.contact-page) .footer-inner > div { min-height:225px; }
    .site-shell:has(.contact-page) .footer-bottom { min-height:78px; }
}
