/* Shared site controls extend the approved homepage without altering its sections. */
.hatwell-site [hidden] { display: none!important; }
body.hatwell-site.hw-dialog-open { overflow: hidden; }
.hatwell-site a:focus-visible,
.hatwell-site button:focus-visible,
.hatwell-site summary:focus-visible { outline: 2px solid #2680b8; outline-offset: 5px; }
.hatwell-site a.hw-logo { width: max-content; max-width: 100%; text-decoration: none; cursor: pointer; }
.hatwell-site a.hw-logo img { transition: opacity 250ms ease, transform 300ms ease; }
.hatwell-site a.hw-logo:focus-visible { outline-color: #6aa4c5; outline-offset: 8px; }
.hatwell-site a.hw-button,
.hatwell-site a.hw-program-link,
.hatwell-site a.hw-linkedin { cursor: pointer; }
.hatwell-site .hw-nav > a { color: #fff; text-decoration: none; }
.hatwell-site .hw-nav > a:not(.hw-linkedin) { position: relative; }
.hatwell-site .hw-nav > a:not(.hw-linkedin)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  opacity: .85; transition: transform 300ms ease;
}
.hatwell-site .hw-nav > a[aria-current="page"]::after,
.hatwell-site .hw-nav > a:focus-visible::after { transform: scaleX(1); }
.hatwell-site .hw-nav > a:focus-visible { outline-color: #b5d7eb; }

/* Same white footer on every page; links inherit the approved navy treatment. */
.hatwell-site .hw-footer { background: #fff; color: var(--hw-navy); padding-top: 52px; }
.hatwell-site .hw-footer-top { padding-bottom: 38px; }
.hatwell-site .hw-footer .hw-logo img {
  width: clamp(210px, 17vw, 260px); height: auto;
  filter: brightness(0) saturate(100%) invert(9%) sepia(46%) saturate(2444%) hue-rotate(181deg) brightness(95%) contrast(109%);
}
.hatwell-site .hw-footer a { color: inherit; }
.hatwell-site .hw-footer-contact > a { text-decoration: none; }
.hatwell-site .hw-footer-contact > a + a { border-left: 1px solid #bbc8d1; padding-left: 40px; }
.hatwell-site .hw-footer-bottom { border-color: var(--hw-rule); color: var(--hw-muted, #526575); }
.hatwell-site .hw-footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hatwell-site .hw-legal-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Team cards remain ordinary details elements if JavaScript is unavailable. */
.hatwell-site .hw-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 28px; align-items: start; }
.hatwell-site .hw-person { min-width: 0; margin: 0; padding: 0; border: 0; }
.hatwell-site .hw-person > summary { display: block; list-style: none; cursor: pointer; }
.hatwell-site .hw-person > summary::-webkit-details-marker { display: none; }
.hatwell-site .hw-person > summary::marker { content: ""; }
.hatwell-site .hw-person-image { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e7edf1; }
.hatwell-site .hw-person-photo { display: block; width: 100%; height: 100%; margin: 0; aspect-ratio: 1; object-fit: cover; object-position: center 32%; transition: transform 600ms ease; }
.hatwell-site .hw-person-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #d7e7f2; background: radial-gradient(ellipse at 80% 20%, #23425a 0, var(--hw-navy, #001a31) 80%); font-size: clamp(38px, 5vw, 74px); font-weight: 400; letter-spacing: -.04em; }
.hatwell-site .hw-person-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 21px; }
.hatwell-site .hw-person-name { font-size: clamp(19px, 1.65vw, 25px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hatwell-site .hw-person-arrow { display: inline-flex; flex-shrink: 0; padding-top: 2px; transition: transform 250ms ease; }
.hatwell-site .hw-person-role { display: block; margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--hw-muted, #526575); }
.hatwell-site .hw-person-location { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--hw-muted, #526575); }
.hatwell-site .hw-operations-heading { margin-top: clamp(64px, 7vw, 112px); }
.hatwell-site .hw-person-read { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 500; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; }
.hatwell-site .hw-person > .hw-person-bio { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hw-rule); }
.hatwell-site .hw-person-bio { min-width: 0; font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
.hatwell-site .hw-person-bio h3 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.hatwell-site .hw-person-bio p { margin: 0 0 18px; }
.hatwell-site .hw-person-bio p:last-child { margin-bottom: 0; }
.hatwell-site .hw-person-bio .hw-person-bio-role { color: var(--hw-muted, #526575); font-size: 15px; }
.hatwell-site .hw-person-bio .hw-person-bio-location { color: var(--hw-muted, #526575); font-size: 14px; margin-top: -10px; }
.hatwell-site .hw-text-link { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.hatwell-site .hw-team-dialog {
  box-sizing: border-box; width: min(1040px, calc(100% - 48px)); max-width: none;
  max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); margin: auto; padding: 32px;
  border: 1px solid var(--hw-rule); border-radius: 2px; background: #fff; color: var(--hw-navy);
  box-shadow: 0 24px 100px rgba(var(--hw-navy-rgb, 0,26,49), 0.219607843); overflow: auto; overscroll-behavior: contain;
  font-family: Manrope, Arial, sans-serif;
}
.hatwell-site .hw-team-dialog::backdrop { background: rgba(var(--hw-navy-rgb, 0,26,49), 0.650980392); }
.hatwell-site .hw-team-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--hw-rule); }
.hatwell-site .hw-team-dialog-top h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.hatwell-site .hw-team-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 10px; margin: 0; border: 1px solid #c2cfd7; border-radius: 0; color: var(--hw-navy); background: #fff; box-shadow: none; line-height: 1; cursor: pointer; }
.hatwell-site .hw-team-dialog-body { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 36px; align-items: start; }
.hatwell-site .hw-team-dialog-body > .hw-person-bio:only-child { grid-column: 1 / -1; }
.hatwell-site .hw-team-dialog-body > .hw-person-image { position: sticky; top: 0; }

/* Form classes match the generated native and AJAX form markup. */
.hatwell-site .hw-contact-form { margin: 0; }
.hatwell-site .hw-contact-form .hw-form-note { margin: 0 0 25px; color: var(--hw-muted, #526575); font-size: 14px; line-height: 1.5; }
.hatwell-site .hw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.hatwell-site .hw-field { min-width: 0; }
.hatwell-site .hw-field--full { grid-column: 1 / -1; }
.hatwell-site .hw-field label { display: block; margin: 0 0 10px; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--hw-navy); }
.hatwell-site .hw-field label > span { color: var(--hw-muted, #526575); font-size: 14px; font-weight: 400; }
.hatwell-site .hw-field input,
.hatwell-site .hw-field select,
.hatwell-site .hw-field textarea {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 54px;
  margin: 0; padding: 13px 15px; border: 1px solid #aebec9; border-radius: 0;
  background: #fff; color: var(--hw-navy); box-shadow: none; font-family: Manrope, Arial, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.55; transition: border-color 200ms ease;
}
.hatwell-site .hw-field textarea { min-height: 174px; resize: vertical; }
.hatwell-site .hw-field select { appearance: auto; height: auto; padding-right: 34px; }
.hatwell-site .hw-field input:focus,
.hatwell-site .hw-field select:focus,
.hatwell-site .hw-field textarea:focus { border-color: #2680b8; outline: 2px solid #2680b8; outline-offset: 2px; box-shadow: none; }
.hatwell-site .hw-field.is-invalid input,
.hatwell-site .hw-field.is-invalid select,
.hatwell-site .hw-field.is-invalid textarea,
.hatwell-site .hw-field [aria-invalid="true"] { border-color: #a92e2e; }
.hatwell-site .hw-field-error { display: block; margin-top: 9px; color: #9b2525; font-size: 14px; line-height: 1.45; }
.hatwell-site .hw-contact-form .hw-form-privacy { margin: 24px 0; font-size: 14px; line-height: 1.6; color: var(--hw-muted, #526575); }
.hatwell-site .hw-form-privacy a { color: var(--hw-navy); text-decoration: underline; text-underline-offset: 3px; }
.hatwell-site .hw-contact-form .hw-form-submit { min-width: 0; max-width: 100%; min-height: 58px; margin: 0; padding: 19px 27px; border: 1px solid var(--hw-blue); background: var(--hw-blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .09em; white-space: normal; box-shadow: none; cursor: pointer; transition: background-color 200ms ease; }
.hatwell-site .hw-contact-form .hw-form-submit:disabled { opacity: .65; cursor: wait; }
.hatwell-site .hw-form-feedback { margin-top: 24px; padding: 18px 20px; border: 1px solid #ddacac; background: #fff5f5; color: #772222; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.hatwell-site .hw-form-feedback.is-success { border-color: #a9cbbd; background: #f0f7f3; color: #1c503c; }
.hatwell-site .hw-form-feedback:focus { outline: 2px solid #2680b8; outline-offset: 4px; }

/* The client-supplied legal drafts stay readable and explicitly marked. */
.hw-subpage .hw-legal { box-sizing: border-box; width: 100%; max-width: 1040px; margin: 0 auto; padding: 90px var(--hw-gutter) 110px; }
.hw-subpage .hw-legal-header { padding-bottom: 44px; margin-bottom: 40px; border-bottom: 1px solid var(--hw-rule); }
.hw-subpage .hw-legal-header h1 { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.12; }
.hw-subpage .hw-eyebrow { margin-bottom: 20px; color: var(--hw-muted, #526575); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.hw-subpage .hw-legal-date { margin-top: 25px; color: var(--hw-muted, #526575); font-size: 15px; line-height: 1.5; }
.hw-subpage .hw-legal-draft-notice { margin-top: 22px; padding: 16px 18px; border-left: 3px solid #a28144; background: #f8f4e9; color: #67532e; font-size: 15px; line-height: 1.6; }
.hw-subpage .hw-legal-body { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.hw-subpage .hw-legal-body h2 { margin: 42px 0 15px; font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.hw-subpage .hw-legal-body h3 { margin: 30px 0 12px; font-size: 22px; line-height: 1.4; }
.hw-subpage .hw-legal-body p + p { margin-top: 20px; }
.hw-subpage .hw-legal-body ul,
.hw-subpage .hw-legal-body ol { margin: 20px 0; padding-left: 24px; }
.hw-subpage .hw-legal-body a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .hatwell-site .hw-nav > a:hover::after { transform: scaleX(1); }
  .hatwell-site a.hw-logo:hover img { opacity: .85; transform: translateY(-1px); }
  .hatwell-site .hw-footer-contact > a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .hatwell-site .hw-footer-legal > a:hover { color: var(--hw-navy); }
  .hatwell-site .hw-person > summary:hover .hw-person-photo { transform: scale(1.035); }
  .hatwell-site .hw-person > summary:hover .hw-person-arrow { transform: translate(3px, -3px); }
  .hatwell-site .hw-team-close:hover { background: #eff4f7; }
  .hatwell-site .hw-contact-form .hw-form-submit:not(:disabled):hover { background: var(--hw-navy); }
}
@media (min-width: 850px) and (max-width: 1200px) {
  .hatwell-site .hw-footer-contact > a + a { padding-left: 24px; }
}
@media (max-width: 1200px) {
  .hatwell-site .hw-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) and (min-width: 850px) {
  .hatwell-site .hw-footer-top { flex-wrap: wrap; gap: 30px; }
  .hatwell-site .hw-footer-contact { margin-left: auto; }
  .hatwell-site .hw-footer-bottom { align-items: flex-start; }
  .hatwell-site .hw-footer-bottom > p { flex-shrink: 0; }
  .hatwell-site .hw-footer-legal { justify-content: flex-end; gap: 10px 20px; }
}
@media (max-width: 849px) {
  .hatwell-site .hw-footer { padding-top: 44px; }
  .hatwell-site .hw-footer-top { padding-bottom: 32px; }
  .hatwell-site .hw-footer .hw-logo img { width: 212px; }
  .hatwell-site .hw-footer-contact > a + a { border-left: 0; padding-left: 0; }
  .hatwell-site .hw-footer-contact > a:first-child { width: 100%; }
  .hatwell-site .hw-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hatwell-site .hw-footer-legal { gap: 10px 20px; }
  .hatwell-site .hw-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .hatwell-site .hw-person-name { font-size: 22px; }
  .hatwell-site .hw-team-dialog-body { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 26px; }
  .hw-subpage .hw-legal { padding-block: 66px 80px; }
}
@media (max-width: 650px) {
  .hatwell-site .hw-team-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 22px; }
  .hatwell-site .hw-team-dialog-top { gap: 16px; margin-bottom: 24px; padding-bottom: 18px; }
  .hatwell-site .hw-team-dialog-top h2 { font-size: 24px; }
  .hatwell-site .hw-team-dialog-body { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .hatwell-site .hw-team-dialog-body > .hw-person-image { position: static; max-width: 300px; }
  .hatwell-site .hw-person-bio { font-size: 16px; }
  .hatwell-site .hw-person-bio h3 { font-size: 26px; }
  .hatwell-site .hw-form-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
}
@media (max-width: 540px) {
  .hatwell-site .hw-team-grid { gap: 36px 20px; }
  .hatwell-site .hw-person-heading { gap: 6px; padding-top: 16px; }
  .hatwell-site .hw-person-name { font-size: 18px; }
  .hatwell-site .hw-person-arrow svg { width: 18px; height: 18px; }
  .hatwell-site .hw-person-role { font-size: 13px; }
  .hatwell-site .hw-person-read { margin-top: 13px; font-size: 11px; }
  .hatwell-site .hw-contact-form .hw-form-submit { width: 100%; padding-inline: 16px; font-size: 12px; }
  .hw-subpage .hw-legal { padding: 54px 24px 68px; }
  .hw-subpage .hw-legal-header { margin-bottom: 30px; padding-bottom: 32px; }
  .hw-subpage .hw-legal-header h1 { font-size: 38px; }
  .hw-subpage .hw-legal-body { font-size: 17px; line-height: 1.7; }
  .hw-subpage .hw-legal-body h2 { margin-top: 34px; font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .hatwell-site .hw-nav > a::after,
  .hatwell-site a.hw-logo img,
  .hatwell-site .hw-person-photo,
  .hatwell-site .hw-person-arrow,
  .hatwell-site .hw-field input,
  .hatwell-site .hw-field select,
  .hatwell-site .hw-field textarea,
  .hatwell-site .hw-contact-form .hw-form-submit { transition: none; }
  .hatwell-site a.hw-logo:hover img,
  .hatwell-site .hw-person > summary:hover .hw-person-photo,
  .hatwell-site .hw-person > summary:hover .hw-person-arrow { transform: none; }
}

/* Comfortable navigation hit areas retain the approved compact header. */
.hatwell-site .hw-nav > a { display:inline-flex;align-items:center;min-height:32px; }
.hatwell-site .hw-cookie-toggle { display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.5; }
.hatwell-site .hw-cookie-toggle input { margin:0;width:18px;height:18px;accent-color:var(--hw-blue); }
