/* A readable minimum at every viewport, including plugin-generated captions. */
html { font-size: 16px; }
body { font-size: 16px; }
body * { font-size: max(14px, 1em); }
body input, body textarea, body select, body button { font-size: 16px; }
body p.footer, body small, body .help-block, body .footer,
body .thumbnail-caption, body .lightbox-text { font-size: 14px; }
body ::placeholder { font-size: 14px; opacity: 1; }
.form-trap { display: none; }
/* Do not let legacy fixed font sizes shrink text below the user preference. */
.logo img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
    header .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 0;
    }
    header .navbar-header::before,
    header .navbar-header::after { display: none; }
    header .logo { flex: 1 1 auto; min-width: 0; margin: 0; }
    header .logo a { display: block; max-width: 480px; }
    header .logo img { display: block; width: 100% !important; }
    header .navbar-toggle {
        display: flex;
        flex: 0 0 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 10px;
    }
    header .navbar-toggle .icon-bar + .icon-bar { margin-top: 0; }
    header .navbar-toggle:focus-visible { outline: 2px solid white; outline-offset: 3px; }
    header .navigation .navbar-nav { margin: 0 !important; padding: 8px 0; }
    header .navigation .navbar-nav > li > a { font-size: 16px; min-height: 44px; }
}

/* Inline contact validation: Bootstrap error colours, feedback icon and message. */
#formID .field-error[hidden],
#formID .validation-icon[hidden] { display: none !important; }
#formID .field-error { display: block; margin: 6px 0 0; font-size: 14px; }
#formID .validation-icon { top: 0; right: 15px; font-size: 16px; }
#formID textarea ~ .validation-icon { top: 3px; }
#formID .has-error .control-label,
#formID .has-error .field-error,
#formID .has-error .validation-icon { color: #b43c3c; }
#formID .has-error .form-control { border-color: #b43c3c; }

/* Full-width map below both contact columns, flush with the white panel edges. */
.contact-map {
    width: calc(100% + 60px);
    margin: 30px -30px -20px;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}
@media (max-width: 767px) {
    .contact-map iframe { height: 320px; }
}
