.branch-heading { padding: 0 0 14px; }
.branch-back { display: inline-block; margin-bottom: 10px; font-size: .8125rem; }
.branch-heading h1 { max-width: 1000px; }
.branch-heading .branch-affiliation { font-size: 1rem; margin: 0 0 8px !important; }
.branch-heading > p:last-child { color: var(--compact-muted); margin-bottom: 0 !important; }
.branch-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; border-bottom: 1px solid var(--compact-line); }
.branch-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--compact-line); border-radius: 5px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.branch-tabs a:hover { background: #f5f7f9; }
.branch-tabs a[aria-selected="true"] { background: #fff9e8; border-color: #b28b32; color: #614b15; }
.site-compact .branch-page .branch-panel { padding: 18px 0 6px !important; scroll-margin-top: calc(var(--site-header-offset) + 12px); }
.branch-panel > h2 { font-size: 1.3rem; margin: 0 0 8px; }
.branch-panel > p { color: var(--compact-muted); font-size: .9375rem; }
.branch-lead { max-width: 920px; }
.branch-focus-grid, .branch-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.branch-focus-grid > article, .branch-contact-grid > article { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--compact-line); border-radius: 6px; }
.branch-focus-grid h3, .branch-contact-grid h3 { font-size: 1rem; margin: 0; }
.branch-focus-grid p, .branch-contact-grid p, .branch-contact-grid address { font-size: .9375rem; margin: 0 !important; }
.branch-focus-grid a, .branch-contact-grid article > a { font-size: .875rem; margin-top: auto; padding-top: 5px; }
.branch-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-left: 3px solid #b28b32; background: #faf9f5; margin-top: 16px; }
.branch-callout h3 { font-size: 1rem; margin: 0 0 5px; }
.branch-callout p { font-size: .9375rem; margin: 0 !important; }
.branch-callout a { flex-shrink: 0; font-size: .875rem; }
.branch-team-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.branch-person { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--compact-line); border-radius: 6px; overflow: hidden; }
.branch-person > img { display: block; width: 100%; height: 150px; object-fit: contain; object-position: center; background: #f5f7f9; }
.branch-person-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 12px; }
.branch-person h3 { font-size: .9375rem; margin: 0; }
.branch-role { font-size: .875rem; color: var(--compact-muted); margin: 0 !important; }
.branch-credentials { font-size: .8125rem !important; color: var(--compact-muted); margin: 0 !important; }
.branch-biography { font-size: .8125rem; line-height: 1.5; margin: 0 !important; }
.branch-person a { font-size: .8125rem; margin-top: auto; padding-top: 6px; }
.branch-profile { margin-top: auto; padding-top: 6px; }
.branch-profile > summary { width: fit-content; font-size: .8125rem; color: #12334f; cursor: pointer; list-style: none; }
.branch-profile > summary::-webkit-details-marker { display: none; }
.branch-profile > summary:hover { color: #88681d; text-decoration: underline; }
.branch-profile > summary:focus-visible { outline: 2px solid #b28b32; outline-offset: 4px; }
.branch-profile[open] > summary { margin-bottom: 8px; }
.branch-projects .compact-project-grid { margin-top: 14px; }
.branch-project-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
@media(max-width: 1000px) {
  .branch-team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 650px) {
  .branch-heading { padding-bottom: 12px; }
  .branch-heading > p:last-child { font-size: .875rem; }
  .branch-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding-bottom: 10px; }
  .branch-tabs a { padding: 8px 6px; font-size: .8125rem; }
  .branch-focus-grid, .branch-contact-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .branch-focus-grid > article, .branch-contact-grid > article { padding: 12px 14px; gap: 5px; }
  .branch-callout { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 14px; }
  .branch-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .branch-person > img { height: 120px; }
  .branch-person-body { padding: 10px; gap: 6px; }
  .branch-person h3 { font-size: .875rem; }
  .branch-role { font-size: .8125rem; }
  .branch-person .branch-credentials { font-size: .75rem !important; }
}
@media print {
  .branch-tabs { display: none; }
  .branch-panel { break-inside: avoid; }
}
