.bm-site .bm-worktypes { background: #fffdf9; }
.bm-site .bm-type-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(20px, 5vw, 80px);
  margin-bottom: clamp(24px, 3vw, 42px);
}
.bm-site .bm-type-head h2 { line-height: 1.03; text-wrap: balance; }
.bm-site .bm-type-head .bm-intro { margin: 0; max-width: 42ch; }
.bm-site .bm-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 22px);
}
.bm-site .bm-type-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #c9d4d3;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.bm-site .bm-type-blue { --type-accent: var(--blue); }
.bm-site .bm-type-red { --type-accent: var(--red); }
.bm-site .bm-type-green { --type-accent: var(--green); }
.bm-site .bm-type-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-bottom: 4px solid var(--type-accent);
}
.bm-site .bm-type-copy { display: grid; align-content: start; gap: 5px; padding: clamp(12px, 1.1vw, 18px); }
.bm-site .bm-type-copy strong { font-size: clamp(1.05rem, 1.5vw, 1.55rem); font-weight: 780; line-height: 1.16; letter-spacing: -.04em; }
.bm-site .bm-type-copy span { color: var(--muted); font-size: .94rem; line-height: 1.35; }
.bm-site .bm-type-card:hover, .bm-site .bm-type-card:focus-visible { background: #eff7fa; border-color: var(--blue-ink); color: var(--blue-ink); }
.bm-site .bm-worktypes .bm-type-invite { color: var(--red); font-size: clamp(1.05rem, 1.3vw, 1.24rem); line-height: 1.45; margin: 1.35rem 0 0; }
.bm-site .bm-type-profile { display: none; scroll-margin-top: 110px; }
.bm-site .bm-type-profile:target {
  display: block;
  max-width: 49rem;
  margin-inline: auto;
  padding: 0;
  border: 0;
}
.bm-site .bm-type-dialog {
  width: min(43rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  margin: auto;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 64px #0c263d44;
}
.bm-site .bm-type-dialog::backdrop { background: rgba(12, 29, 40, .74); }
.bm-site .bm-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.bm-site .bm-profile-heading button { flex: none; }
.bm-site .bm-profile-heading h3, .bm-site .bm-type-profile > h3 {
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
.bm-site .bm-type-profile > h3 { padding-block: 1rem; }
.bm-site :is(.bm-type-dialog, .bm-profile-heading h3, .bm-type-profile):focus { outline: none; }
.bm-site img.bm-profile-hero {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
}
.bm-site :is(.bm-type-dialog, .bm-type-profile) .bm-detailbody {
  padding: clamp(1.2rem, 3.5vw, 2.25rem);
  font-size: 1rem;
  line-height: 1.55;
}
.bm-site :is(.bm-type-dialog, .bm-type-profile) .bm-detailbody > p:first-child { margin-top: 0; }
.bm-site :is(.bm-type-dialog, .bm-type-profile) .bm-detailbody h4 {
  margin: 1.5rem 0 .6rem;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.15;
  color: var(--ink);
}
.bm-site .bm-profile-apply { margin-top: 1.75rem; }
.bm-site .bm-profile-apply .bm-profile-button {
  display: inline-flex;
  background: var(--blue);
  color: var(--night);
  border: 0;
  text-decoration: none;
}
.bm-site .bm-profile-apply .bm-profile-button:is(:hover,:focus-visible) {
  color: #fff;
  background: var(--blue-ink);
}
.bm-site .bm-profile-apply p { margin: .65rem 0 0; }
@media (max-width: 1150px) {
  .bm-site .bm-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .bm-site .bm-type-head { grid-template-columns: 1fr; gap: 14px; }
  .bm-site .bm-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 376px) and (max-width: 750px) {
  .bm-site .bm-type-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .bm-site .bm-type-card:last-child:nth-child(odd) img {
    border-bottom: 0;
    border-right: 4px solid var(--type-accent);
  }
}
@media (max-width: 375px) {
  .bm-site .bm-type-grid { grid-template-columns: 1fr; gap: 10px; }
  .bm-site .bm-type-card { flex-direction: row; align-items: center; }
  .bm-site .bm-type-card img { width: 95px; flex: none; border-bottom: 0; border-right: 3px solid var(--type-accent); }
}
