/* Additions on top of the mirrored WordPress CSS (static-site only). */

/* Smooth cross-page transitions in supporting browsers (ignored elsewhere) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #FF6210; outline-offset: 2px;
}

/* Contact form honeypot: hidden from people, visible to naive bots */
.hpv-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.hpv-turnstile { min-height: 65px; }

/* Team page portraits: make all four identical at every screen size.
   - Jayesh's photo is square (1024x1024); the others are portrait (~282x300).
   - The WordPress (Spectra) block for Jayesh's image sets width:1024px below 976px,
     so on tablets/phones it stretched to the full column; the others are 282px.
   - Wenbin's block used height:auto on desktop while the others used 300px.
   Selector specificity (0,4,1) beats Spectra's per-block rules (0,3,1) at all breakpoints. */
.wp-block-uagb-image.wp-block-uagb-image .wp-block-uagb-image__figure img:is(.uag-image-557, .uag-image-558, .uag-image-711, .uag-image-830) {
  width: 282px; max-width: 100%; height: auto;
  aspect-ratio: 282 / 300; object-fit: cover; object-position: 50% 20%;
}

/* ---- Contact form: aligned full-width fields in the site's own style -------------------
   (#wpforms-649 + !important to win over the mirrored WPForms "modern" stylesheet) */
#wpforms-649 .hpv-contact-form { max-width: 100%; }
#wpforms-649 .hpv-contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#wpforms-649 .hpv-contact-form .wpforms-field { padding: 0 0 20px !important; margin: 0 !important; }
#wpforms-649 .hpv-contact-form .wpforms-field-label {
  display: block; margin: 0 0 8px !important; padding: 0;
  font: 600 15px/1.3 "DM Sans", sans-serif !important; color: #1C0D0A !important; letter-spacing: .01em;
}
#wpforms-649 .hpv-contact-form .wpforms-required-label { color: #FF6210 !important; font-weight: 600; }
#wpforms-649 .hpv-contact-form .wpforms-field-row {
  display: flex !important; gap: 16px; max-width: none !important; width: 100% !important; margin: 0 !important;
}
#wpforms-649 .hpv-contact-form .wpforms-field-row::before,
#wpforms-649 .hpv-contact-form .wpforms-field-row::after { content: none !important; }
#wpforms-649 .hpv-contact-form .wpforms-field-row-block {
  flex: 1 1 0; min-width: 0; width: auto !important; max-width: none !important;
  float: none !important; margin: 0 !important; padding: 0 !important;
}
#wpforms-649 .hpv-contact-form .wpforms-field-sublabel {
  display: block; margin: 6px 0 0 !important; padding: 0;
  font: 400 13px/1.3 Mulish, sans-serif !important; color: #6b5f59 !important;
}
#wpforms-649 .hpv-contact-form input[type="text"],
#wpforms-649 .hpv-contact-form input[type="email"],
#wpforms-649 .hpv-contact-form textarea {
  display: block; box-sizing: border-box;
  width: 100% !important; max-width: none !important; height: 48px !important; margin: 0 !important;
  padding: 12px 14px !important;
  font: 400 16px/1.45 Mulish, sans-serif !important; color: #1C0D0A !important;
  background: #fff !important; border: 1px solid #d9cec6 !important; border-radius: 2px !important;
  box-shadow: none !important; transition: border-color .15s ease, box-shadow .15s ease;
}
#wpforms-649 .hpv-contact-form textarea { height: auto !important; min-height: 160px; resize: vertical; }
#wpforms-649 .hpv-contact-form input:hover,
#wpforms-649 .hpv-contact-form textarea:hover { border-color: #b9aaa0 !important; }
#wpforms-649 .hpv-contact-form input:focus,
#wpforms-649 .hpv-contact-form textarea:focus {
  outline: none; border-color: #FF6210 !important; box-shadow: 0 0 0 3px rgba(255, 98, 16, .18) !important;
}
#wpforms-649 .hpv-contact-form .hpv-turnstile { padding-bottom: 8px !important; }
#wpforms-649 .hpv-contact-form .wpforms-submit-container { padding: 4px 0 0 !important; margin: 0 !important; }
/* Same look as the site's other buttons (Read More / Explore More) */
#wpforms-649 .hpv-contact-form .wpforms-submit {
  display: inline-block; height: auto !important; margin: 0 !important; padding: 17px 32px !important;
  font: 600 15px/1 "DM Sans", sans-serif !important; text-transform: uppercase; letter-spacing: .02em;
  color: #fff !important; background: #FF6210 !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; cursor: pointer; transition: background-color .15s ease;
}
#wpforms-649 .hpv-contact-form .wpforms-submit:hover,
#wpforms-649 .hpv-contact-form .wpforms-submit:focus-visible { background: #F15808 !important; }
@media (max-width: 480px) {
  #wpforms-649 .hpv-contact-form .wpforms-field-row { flex-direction: column; align-items: stretch; gap: 14px; }
  #wpforms-649 .hpv-contact-form .wpforms-field-row-block { flex: none; width: 100% !important; }
}

.hpv-form-status { margin-top: 16px; font-size: 16px; line-height: 1.5; }
.hpv-form-status:empty { display: none; }
.hpv-form-status.is-success { padding: 15px; border: 1px solid #b4d39b; background: #ebf3e6; color: #2f4d1c; border-radius: 2px; }
.hpv-form-status.is-error { padding: 15px; border: 1px solid #d63637; background: #fcf0f1; color: #8a1f1f; border-radius: 2px; }
.hpv-contact-form .wpforms-submit[disabled] { opacity: .6; cursor: progress; }
