/* Team rules are scoped so they cannot override the vendored header/footer. */
@scope (.page-shell) {
:root {
  --green-900: #0f2625;
  --green-800: #13302b;
  --green-700: #16352f;
  --gold: #c9a24a;
  --gold-bright: #e2c079;
  --gold-deep: #a8842f;
  --cream: #fbfaf5;
  --ink: #15211f;
  --muted: #5c6b66;
  --muted-on-dark: #a9b8b2;
  --line: rgba(15, 38, 37, 0.12);
  --line-on-dark: rgba(201, 162, 74, 0.22);
  --maxw: 1200px;
  --radius: 14px;
  color-scheme: light;
  font-family: "Mulish", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  background: var(--green-900);
  color: var(--cream);
  border-bottom: 1px solid var(--line-on-dark);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wordmark,
.footer-wordmark {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1;
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-cta:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  transform: translateY(-1px);
}

:scope.directory-page {
  padding-block: clamp(52px, 8vw, 104px) clamp(72px, 9vw, 124px);
}

.directory-intro {
  max-width: 780px;
  margin: 0 auto clamp(64px, 8vw, 104px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #80601f;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.directory-intro h1,
.profile-hero h1,
.error-page h1 {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.directory-section + .directory-section {
  margin-top: clamp(64px, 8vw, 96px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin: 0;
}

.section-heading h2,
.credentials-section h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.05;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.person-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 38, 37, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.person-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 74, 0.55);
  box-shadow: 0 16px 34px rgba(15, 38, 37, 0.12);
}

.card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7e5dc;
}

.card-content {
  padding: 20px 19px 22px;
}

.card-content h3 {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
}

.name-suffix {
  color: var(--gold-deep);
  white-space: nowrap;
}

.card-title {
  margin: 8px 0 0;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.card-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-organization {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-also {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-location {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.language-list,
.state-badges,
.division-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.language-list li,
.state-badges li,
.division-list li {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(22, 53, 47, 0.12);
  border-radius: 999px;
  background: rgba(19, 48, 43, 0.045);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.empty-message {
  margin: 0;
  padding: clamp(56px, 10vw, 112px) 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

:scope.profile-page {
  padding-block: 28px clamp(72px, 9vw, 120px);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 800;
}

.back-link:hover,
.profile-links a:hover,
.footer-links a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  padding: 0 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.profile-portrait-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e5dc;
  box-shadow: 0 18px 42px rgba(15, 38, 37, 0.12);
}

.profile-portrait {
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: cover;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-hero h1 {
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 0.98;
}

.profile-title {
  margin: 16px 0 0;
  color: var(--green-700);
  font-size: 17px;
  font-weight: 800;
}

.profile-organization {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.profile-also,
.profile-meta {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-also span {
  color: var(--green-700);
  font-weight: 800;
}

.profile-headline {
  margin: 26px 0 0;
  padding-left: 19px;
  border-left: 2px solid var(--gold);
  color: var(--green-800);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
}

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.5fr);
  align-items: start;
  gap: 46px clamp(36px, 7vw, 90px);
  padding-top: clamp(42px, 6vw, 72px);
}

.biography {
  min-width: 0;
  max-width: 740px;
  color: #31403b;
  font-size: 17px;
  line-height: 1.85;
}

.biography p {
  margin: 0 0 1.3em;
}

.credentials-section {
  grid-column: 2;
  grid-row: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.credentials-section h2 {
  font-size: 29px;
}

.insurance-licenses {
  margin-top: 22px;
}

.credential-label {
  margin: 0;
  color: var(--green-800);
  font-size: 14px;
  font-weight: 800;
}

.state-badges {
  margin-top: 9px;
}

.license-lines {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.npn-line {
  margin: 18px 0 0;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 800;
}

.division-list {
  margin-top: 18px;
}

.contact-section {
  grid-column: 1 / -1;
  padding-top: 6px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-900);
}

.button-gold:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}

.button-outline {
  border-color: var(--green-700);
  background: transparent;
  color: var(--green-800);
}

.button-outline:hover {
  background: rgba(19, 48, 43, 0.06);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}

.profile-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.profile-links span {
  color: var(--gold-deep);
}

:scope.error-page {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 64px;
}

.error-page > p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px 0 28px;
  color: var(--muted);
}

.site-footer {
  background: var(--green-900);
  color: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  align-items: start;
  gap: 24px 48px;
  padding-block: 48px 36px;
}

.footer-wordmark {
  display: inline-block;
  color: var(--gold-bright);
}

.footer-brand p {
  margin: 13px 0 0;
  color: var(--muted-on-dark);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
}

.disclosure {
  grid-column: 1 / -1;
  max-width: 930px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
  font-size: 11px;
  line-height: 1.75;
}

@media (max-width: 960px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-hero {
    grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
    gap: 34px;
  }

  .profile-content {
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .wordmark {
    font-size: 16px;
    letter-spacing: 0.25em;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .directory-intro {
    margin-bottom: 60px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 7px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-content {
    padding: 16px 14px 18px;
  }

  .card-content h3 {
    font-size: 23px;
  }

  .card-title {
    font-size: 12px;
  }

  :scope.profile-page {
    padding-top: 14px;
  }

  .back-link {
    margin-bottom: 18px;
  }

  .profile-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 42px;
  }

  .profile-portrait-wrap {
    max-width: 520px;
  }

  .profile-portrait {
    aspect-ratio: 1.08;
  }

  .profile-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .credentials-section {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-section {
    grid-column: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 38px 28px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 0 18px;
  }

  .disclosure {
    grid-column: 1;
    margin-top: 4px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 8px;
  }

  .header-cta {
    padding-inline: 9px;
    font-size: 10px;
  }

  .people-grid {
    gap: 10px;
  }

  .card-content {
    padding-inline: 11px;
  }

  .language-list {
    gap: 5px;
  }

  .language-list li {
    padding-inline: 7px;
    font-size: 10px;
  }

  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
}

/* Necessary integration rules; the upstream file is kept byte-for-byte intact. */
html, body { min-width: 320px; }
body { overflow-x: clip; }
.page-shell {
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
  font-size: 16px;
  --radius: 14px;
}
.page-shell .eyebrow { display: block; }
.page-shell .eyebrow::before { content: none; }
.site-header { background: var(--green-900); }
.nav .has-drop.drop-open .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.foot-col { min-width: 0; }
@media (max-width: 980px) {
  .nav:not(.open) { visibility: hidden; pointer-events: none; }
  .nav:not(.open) .drop { visibility: hidden; }
  .nav .nav-cta .btn { white-space: normal; text-align: center; }
  .nav .has-drop .drop { display: none; }
  .nav .has-drop.drop-open .drop { display: block; transform: none; }
}
@media (hover: none), (pointer: coarse) {
  .nav .has-drop:not(.drop-open) .drop { opacity: 0; visibility: hidden; }
}
@media (max-width: 380px) {
  .footer-brand .brand-tag { white-space: normal; line-height: 1.6; }
  .footer-brand .brand-text { min-width: 0; }
}
