/* Shared card layout for every service group in the public directory. */
html:root body main#main-content.office-directory-page .office-category {
  margin-block: 0 36px !important;
  padding-block: 0 !important;
}
html:root body main#main-content.office-directory-page .office-category > header {
  margin: 0 0 18px !important;
  padding: 0 !important;
  gap: 16px !important;
  align-items: center !important;
}
html:root body main#main-content.office-directory-page .office-category-label {
  font: 600 10px/1.5 "DM Sans", sans-serif !important;
  letter-spacing: .12em !important;
}
html:root body main#main-content.office-directory-page .office-category h2 {
  margin: 6px 0 0 !important;
  font: 700 clamp(22px, 2vw, 28px)/1.35 "Manrope", sans-serif !important;
  letter-spacing: -.025em !important;
}
html:root body main#main-content.office-directory-page .office-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
html:root body main#main-content.office-directory-page .office-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 22px !important;
  border: 1px solid #e1e6ea !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 30, 65, .045) !important;
  text-align: left !important;
}
html:root body main#main-content.office-directory-page .office-card-topline {
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  font: 500 10px/1.5 "DM Sans", sans-serif !important;
  letter-spacing: .04em !important;
}
html:root body main#main-content.office-directory-page .office-card-topline > span:last-child {
  text-align: right;
  min-width: 0;
}
html:root body main#main-content.office-directory-page .office-card-icon {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f1f4f6 !important;
  box-shadow: none !important;
}
html:root body main#main-content.office-directory-page .office-card-icon svg {
  width: 23px !important;
  height: 23px !important;
}
html:root body main#main-content.office-directory-page .office-card h3 {
  font: 600 18px/1.45 "Manrope", sans-serif !important;
  letter-spacing: -.015em !important;
  margin: 0 0 10px !important;
  text-align: left !important;
}
html:root body main#main-content.office-directory-page .office-card p {
  font: 400 14px/1.65 "DM Sans", sans-serif !important;
  margin: 0 0 12px !important;
  text-align: left !important;
}
html:root body main#main-content.office-directory-page .office-card small {
  font: 400 12px/1.6 "DM Sans", sans-serif !important;
  margin: 0 0 12px !important;
}
html:root body main#main-content.office-directory-page .office-card > a {
  width: auto !important;
  min-height: 40px !important;
  margin-top: auto !important;
  padding: 10px 16px !important;
  align-self: flex-start !important;
  border-radius: 6px !important;
  font: 600 13px/1.5 "DM Sans", sans-serif !important;
  letter-spacing: 0 !important;
}
@media (max-width: 640px) {
  html:root body main#main-content.office-directory-page .office-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  html:root body main#main-content.office-directory-page .office-card {
    padding: 18px !important;
  }
  html:root body main#main-content.office-directory-page .office-card-topline {
    flex-direction: column !important;
    align-items: center !important;
  }
  html:root body main#main-content.office-directory-page .office-card-icon {
    margin-inline: auto !important;
  }
  html:root body main#main-content.office-directory-page .office-card-topline > span:last-child {
    text-align: center;
  }
}
html:root body main#main-content.office-directory-page .office-directory-hero {
  background-image: linear-gradient(90deg, rgba(0,30,65,.9), rgba(0,30,65,.76)), var(--directory-image) !important;
}

/* Quiet, compact directory actions; keep the category selector separate. */
html:root body main#main-content.office-directory-page :is(.office-search-submit, .office-card > a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #f1f4f6 !important;
  color: #164b6b !important;
  -webkit-text-fill-color: #164b6b !important;
  box-shadow: none !important;
  font: 500 12px/1.5 "DM Sans", sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transform: none !important;
}
html:root body main#main-content.office-directory-page .office-search-submit {
  background: #eaf3f8 !important;
  justify-self: start;
}
html:root body main#main-content.office-directory-page :is(.office-search-submit, .office-card > a):hover {
  background: #e2edf3 !important;
}
html:root body main#main-content.office-directory-page :is(.office-search-submit, .office-card > a):focus-visible {
  outline: 2px solid #39779e !important;
  outline-offset: 3px !important;
}
@media (max-width: 640px) {
  html:root body main#main-content.office-directory-page :is(.office-search-submit, .office-card > a) {
    min-height: 40px !important;
    padding: 8px 12px !important;
    margin-inline: auto !important;
    align-self: center !important;
    justify-self: center !important;
  }
  html:root body main#main-content.office-directory-page :is(.office-hero-copy, .office-hero-copy h1, .office-hero-copy p, .office-search-heading, .office-search label, .office-search input, .office-category-trigger, .office-category-menu button, .office-category > header, .office-category > header h2, .office-category > header p, .office-card, .office-card h3, .office-card p, .office-card small, .civic-empty) {
    text-align: center !important;
  }
  html:root body main#main-content.office-directory-page :is(.office-hero-copy, .office-hero-copy p, .office-directory-summary) {
    margin-inline: auto !important;
  }
  html:root body main#main-content.office-directory-page .office-category > header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html:root body main#main-content.office-directory-page .office-search > a {
    justify-self: center;
    margin-inline: auto;
  }
}
